Mercurial > hg > xemacs-beta
annotate modules/sample/external/Makefile.in.in @ 5211:cdca98f2d36f
Move `default-file-system-ignore-case' to C; fix bug in directory hash tables
src/ChangeLog addition:
2010-05-16 Aidan Kehoe <kehoea@parhasard.net>
Move `default-file-system-ignore-case' to C; pay attention to it
in creating the directory hash tables for #'locate-file. Fix a bug
where #'eq was specified when creating directory hash tables in
dired.c.
* config.h.in (DEFAULT_FILE_SYSTEM_IGNORE_CASE): This is 1 on
Darwin.
* dired.c (make_directory_hash_table): If
#'file-system-ignore-case-p gives non-nil for a directory, created
the associated hash table with #'equalp as its test. Never use
#'eq as a directory hash table test.
* fileio.c (vars_of_fileio):
Move `default-file-system-ignore-case' here, so it can be a
constant boolean reflecting a compile-time #define.
* lisp.h: Update the declaration of make_directory_hash_table;
remove the declaration of wasteful_word_to_lisp, which was
#ifdef'd out.
* lread.c (Flocate_file): Take out a debugging statement from
this function.
(locate_file_refresh_hashing): Call make_directory_hash_table with
a Lisp string, not an Ibyte pointer.
(vars_of_lread): If DEFAULT_FILE_SYSTEM_IGNORE_CASE is defined,
use #'equalp as the hash table test for locate-file-hash-table,
not #'equal.
* s/win32-common.h (DEFAULT_FILE_SYSTEM_IGNORE_CASE):
Case should normally be ignored in file names on Win32.
lisp/ChangeLog addition:
2010-05-16 Aidan Kehoe <kehoea@parhasard.net>
* files.el (default-file-system-ignore-case):
Move this to fileio.c, where it's a constant boolean variable
initialised at dump time.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Sun, 16 May 2010 12:33:21 +0100 |
| parents | dce479915b74 |
| children | dd9541c73e70 |
| rev | line source |
|---|---|
| 996 | 1 ## Makefile for the sample module in XEmacs. |
| 2 ## Copyright (C) 2002 Jerry James. | |
|
4737
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
3 ## |
|
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
4 ## This sample Makefile is free; you can redistribute it and/or modify it |
|
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
5 ## under the terms of the GNU General Public License as published by the |
|
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
6 ## Free Software Foundation; either version 2, or (at your option) any |
|
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
7 ## later version. |
| 996 | 8 |
| 9 ## This file is not part of XEmacs. | |
| 10 | |
| 11 ### Specialize this part for your module | |
| 12 MODNAME=sample | |
| 13 MODVER=0.0.1 | |
| 14 MODTITLE="Sample module for XEmacs" | |
| 15 SRCS=sample.c | |
| 16 | |
| 17 ### You should not need to modify anything below this line | |
| 18 SHELL=/bin/sh | |
| 19 RM=rm -f | |
| 20 CFLAGS=@CFLAGS@ | |
| 21 LDFLAGS=@LDFLAGS@ | |
| 22 | |
| 23 srcdir=@srcdir@ | |
| 24 VPATH=@srcdir@ | |
| 25 | |
| 1490 | 26 SRC_SRCS=$(SRCS:%=$(srcdir)/%) |
| 27 OBJS=$(SRCS:.c=.o) | |
| 28 | |
| 996 | 29 ELLCC=@ELLCC@ |
| 30 MODARCHDIR=$(shell @ELLCC@ --mod-archdir) | |
| 31 INSTALLPATH=$(shell @ELLCC@ --mod-site-location) | |
| 32 INSTALL=@INSTALL@ | |
| 33 INSTALL_PROGRAM=@INSTALL_PROGRAM@ | |
| 34 | |
| 35 .PHONY: clean distclean install | |
| 36 all: $(MODNAME).ell | |
| 37 | |
| 38 .c.o: | |
| 39 $(ELLCC) $(CFLAGS) --mode=compile --mod-output=$@ \ | |
| 40 -I$(MODARCHDIR)/include -c $< | |
| 41 | |
| 42 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o | |
| 1489 | 43 $(ELLCC) --mode=link --mod-output=$@ $(OBJS) $(MODNAME)_i.o $(LDFLAGS) |
| 996 | 44 |
| 45 $(MODNAME)_i.c: $(SRCS) | |
| 46 ELLMAKEDOC=$(MODARCHDIR)/make-docfile $(ELLCC) --mode=init \ | |
| 47 --mod-output=$@ --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | |
| 48 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
| 49 | |
| 50 clean: | |
| 51 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ | |
| 52 | |
| 53 distclean: clean | |
| 54 $(RM) Makefile config.* configure | |
| 55 | |
| 56 install: $(MODNAME).ell | |
| 57 $(INSTALL_PROGRAM) $< $(INSTALLPATH) |
