Mercurial > hg > xemacs-beta
annotate nt/tiff.mak @ 5652:cc6f0266bc36
Avoid #'delq in core Lisp, for the sake of style, a very slightly smaller binary
lisp/ChangeLog addition:
2012-05-01 Aidan Kehoe <kehoea@parhasard.net>
Avoid #'delq in core code, for the sake of style and a (very
slightly) smaller binary.
* behavior.el (disable-behavior):
* behavior.el (compute-behavior-group-children):
* buff-menu.el (buffers-tab-items):
* byte-optimize.el (byte-optimize-delay-constants-math):
* byte-optimize.el (byte-optimize-logmumble):
* byte-optimize.el (byte-decompile-bytecode-1):
* byte-optimize.el (byte-optimize-lapcode):
* bytecomp.el:
* bytecomp.el (byte-compile-arglist-warn):
* bytecomp.el (byte-compile-warn-about-unresolved-functions):
* bytecomp.el (byte-compile-lambda):
* bytecomp.el (byte-compile-out-toplevel):
* bytecomp.el (byte-compile-insert):
* bytecomp.el (byte-compile-defalias-warn):
* cl-macs.el (cl-upcase-arg):
* cl-macs.el (cl-transform-lambda):
* cl-macs.el (cl-do-proclaim):
* cl-macs.el (defstruct):
* cl-macs.el (cl-make-type-test):
* cl-macs.el (define-compiler-macro):
* cl-macs.el (delete-duplicates):
* cus-edit.el (widget-face-value-delete):
* cus-edit.el (face-history):
* easymenu.el (easy-menu-remove):
* files.el (files-fetch-hook-value):
* files.el (file-expand-wildcards):
* font-lock.el (font-lock-update-removed-keyword-alist):
* font-lock.el (font-lock-remove-keywords):
* frame.el (frame-initialize):
* frame.el (frame-notice-user-settings):
* frame.el (set-frame-font):
* frame.el (delete-other-frames):
* frame.el (get-frame-for-buffer-noselect):
* gnuserv.el (gnuserv-kill-buffer-function):
* gnuserv.el (gnuserv-check-device):
* gnuserv.el (gnuserv-kill-client):
* gnuserv.el (gnuserv-buffer-done-1):
* gtk-font-menu.el (gtk-reset-device-font-menus):
* gutter-items.el (buffers-tab-items):
* gutter.el (set-gutter-element-visible-p):
* info.el (Info-find-file-node):
* info.el (Info-history-add):
* info.el (Info-build-annotation-completions):
* info.el (Info-index):
* info.el (Info-reannotate-node):
* itimer.el (delete-itimer):
* itimer.el (start-itimer):
* lib-complete.el (lib-complete:cache-completions):
* loadhist.el (unload-feature):
* menubar-items.el (build-buffers-menu-internal):
* menubar.el (delete-menu-item):
* menubar.el (relabel-menu-item):
* msw-font-menu.el (mswindows-reset-device-font-menus):
* mule/make-coding-system.el (fixed-width-generate-helper):
* next-error.el (next-error-find-buffer):
* obsolete.el:
* obsolete.el (find-non-ascii-charset-string):
* obsolete.el (find-non-ascii-charset-region):
* occur.el (multi-occur-by-filename-regexp):
* occur.el (occur-1):
* packages.el (packages-package-hierarchy-directory-names):
* packages.el (package-get-key-1):
* process.el (setenv):
* simple.el (undo):
* simple.el (handle-pre-motion-command-current-command-is-motion):
* sound.el (load-sound-file):
* wid-edit.el (widget-field-value-delete):
* wid-edit.el (widget-checklist-match-inline):
* wid-edit.el (widget-checklist-match-find):
* wid-edit.el (widget-editable-list-delete-at):
* wid-edit.el (widget-editable-list-entry-create):
* window.el (quit-window):
* x-font-menu.el (x-reset-device-font-menus-core):
1. Replace (delq nil (mapcar ....)) with analogous (mapcan ...)
forms; this is in non-dumped files, it was done previously in
dumped files.
2. Replace (delq FOO (copy-sequence BAR)) with (remove* FOO BAR),
where #'eq and #'eql are equivalent
3. Replace (delq FOO BAR) with (delete* FOO BAR), where FOO is not
a non-fixnum number. Saves a little space in the dumped file
(since the compiler macro adds :test #'eq to the delete* call if
it's not clear that FOO is not a non-fixnum number).
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Tue, 01 May 2012 16:17:42 +0100 |
parents | 365bc8cb5894 |
children |
rev | line source |
---|---|
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
1 ## TIFF makefile for Microsoft nmake |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
2 ## Copyright (C) 2001 Ben Wing. |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
3 |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
4 ## This file is part of XEmacs. |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
5 |
5416
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
6 ## XEmacs is free software: you can redistribute it and/or modify it |
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
7 ## under the terms of the GNU General Public License as published by the |
5416
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
8 ## Free Software Foundation, either version 3 of the License, or (at your |
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
9 ## option) any later version. |
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
10 |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
11 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
12 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
13 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
14 ## for more details. |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
15 |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
16 ## You should have received a copy of the GNU General Public License |
5416
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
17 ## along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
18 |
318 | 19 !if !defined(DEBUG_XEMACS) |
20 DEBUG_XEMACS=0 | |
21 !endif | |
22 | |
23 !if $(DEBUG_XEMACS) | |
24 OPT=-Od -Zi | |
25 !else | |
26 OPT=-O2 -G5 | |
27 !endif | |
28 | |
29 WARN_CPP_FLAGS = -W3 | |
30 CFLAGS=-nologo -DFOR_MSW $(WARN_CPP_FLAGS) $(OPT) -c | |
31 | |
32 OUTDIR=.\WinRel | |
33 OBJDIR=.\WinRel | |
34 # the following is because fax3sm.c references "tiff.h" and "tif_fax3.h", | |
35 # under the assumption that those header files are in the same directory | |
36 # as fax3sm.c But, since we're using a special fax3sm.c file, and we | |
37 # can't be sure the user has patch to change "xx" to "..\..\libtiff\xx", | |
38 # let's just copy these header files to this directory. (Symbolic links | |
39 # would be _so_ nice) | |
40 NEED_FOR_COMPILE= tiff.h tif_fax3.h | |
41 | |
42 CPP=cl.exe | |
43 CPP_PROJ= /GX /YX /I "." /I ".." /D "WIN32" /D "NDEBUG" /D\ | |
44 "_WINDOWS" /FR$(OBJDIR)/ /Fp$(OUTDIR)/"libtiff.pch" $(CFLAGS) | |
45 | |
46 BSC32=bscmake.exe | |
47 BSC32_FLAGS=/nologo /o$(OUTDIR)/libtiff.bsc | |
48 | |
49 LIB32=lib.exe | |
50 LIB32_FLAGS=/NOLOGO /OUT:$(OUTDIR)\libtiff.lib | |
51 DEF_FLAGS= | |
52 DEF_FILE= | |
53 | |
54 BSC32_SBRS= \ | |
55 $(OBJDIR)\tif_jpeg.sbr \ | |
56 $(OBJDIR)\tif_dirinfo.sbr \ | |
57 $(OBJDIR)\tif_win32.sbr \ | |
58 $(OBJDIR)\tif_flush.sbr \ | |
59 $(OBJDIR)\tif_thunder.sbr \ | |
60 $(OBJDIR)\tif_compress.sbr \ | |
61 $(OBJDIR)\tif_print.sbr \ | |
62 $(OBJDIR)\tif_dirread.sbr \ | |
63 $(OBJDIR)\tif_getimage.sbr \ | |
64 $(OBJDIR)\tif_fax3.sbr \ | |
65 $(OBJDIR)\tif_version.sbr \ | |
66 $(OBJDIR)\tif_codec.sbr \ | |
67 $(OBJDIR)\tif_dir.sbr \ | |
68 $(OBJDIR)\tif_predict.sbr \ | |
69 $(OBJDIR)\tif_close.sbr \ | |
70 $(OBJDIR)\tif_dumpmode.sbr \ | |
71 $(OBJDIR)\tif_aux.sbr \ | |
72 $(OBJDIR)\tif_error.sbr \ | |
73 $(OBJDIR)\tif_lzw.sbr \ | |
74 $(OBJDIR)\tif_zip.sbr \ | |
75 $(OBJDIR)\tif_read.sbr \ | |
76 $(OBJDIR)\tif_packbits.sbr \ | |
77 $(OBJDIR)\tif_swab.sbr \ | |
78 $(OBJDIR)\tif_dirwrite.sbr \ | |
79 $(OBJDIR)\tif_open.sbr \ | |
80 $(OBJDIR)\tif_warning.sbr \ | |
81 $(OBJDIR)\tif_tile.sbr \ | |
82 $(OBJDIR)\tif_strip.sbr \ | |
83 $(OBJDIR)\tif_next.sbr \ | |
84 $(OBJDIR)\tif_write.sbr \ | |
85 $(OBJDIR)\fax3sm.sbr | |
86 | |
87 LIB32_OBJS= \ | |
88 $(OBJDIR)\tif_jpeg.obj \ | |
89 $(OBJDIR)\tif_dirinfo.obj \ | |
90 $(OBJDIR)\tif_win32.obj \ | |
91 $(OBJDIR)\tif_flush.obj \ | |
92 $(OBJDIR)\tif_thunder.obj \ | |
93 $(OBJDIR)\tif_compress.obj \ | |
94 $(OBJDIR)\tif_print.obj \ | |
95 $(OBJDIR)\tif_dirread.obj \ | |
96 $(OBJDIR)\tif_getimage.obj \ | |
97 $(OBJDIR)\tif_fax3.obj \ | |
98 $(OBJDIR)\tif_version.obj \ | |
99 $(OBJDIR)\tif_codec.obj \ | |
100 $(OBJDIR)\tif_dir.obj \ | |
101 $(OBJDIR)\tif_predict.obj \ | |
102 $(OBJDIR)\tif_close.obj \ | |
103 $(OBJDIR)\tif_dumpmode.obj \ | |
104 $(OBJDIR)\tif_aux.obj \ | |
105 $(OBJDIR)\tif_error.obj \ | |
106 $(OBJDIR)\tif_lzw.obj \ | |
107 $(OBJDIR)\tif_zip.obj \ | |
108 $(OBJDIR)\tif_read.obj \ | |
109 $(OBJDIR)\tif_packbits.obj \ | |
110 $(OBJDIR)\tif_swab.obj \ | |
111 $(OBJDIR)\tif_dirwrite.obj \ | |
112 $(OBJDIR)\tif_open.obj \ | |
113 $(OBJDIR)\tif_warning.obj \ | |
114 $(OBJDIR)\tif_tile.obj \ | |
115 $(OBJDIR)\tif_strip.obj \ | |
116 $(OBJDIR)\tif_next.obj \ | |
117 $(OBJDIR)\tif_write.obj \ | |
118 $(OBJDIR)\fax3sm.obj | |
119 | |
120 # nmake rule | |
121 | |
122 .SUFFIXES: | |
123 .SUFFIXES: .c .obj | |
124 | |
125 {..\..\libtiff}.c{$(OBJDIR)}.obj: | |
126 $(CPP) $(CPP_PROJ) $< -Fo$@ | |
127 | |
128 | |
129 ALL : $(OUTDIR)/libtiff.lib $(OUTDIR)/libtiff.bsc | |
130 | |
131 clean : | |
132 -del tiff.h | |
133 -del tif_fax3.h | |
134 -del t4.h | |
135 -del tiffcomp.h | |
136 -del tiffconf.h | |
137 -del tiffio.h | |
138 -del ..\..\libtiff\libtiff.lib | |
139 -del *.pdb | |
140 -del $(OBJDIR)\*.obj | |
141 -del $(OBJDIR)\*.sbr | |
142 -del $(OUTDIR)\libtiff.lib | |
143 -del $(OUTDIR)\libtiff.bsc | |
144 -del $(OUTDIR)\libtiff.pch | |
145 -rmdir $(OUTDIR) | |
146 | |
147 tiff.h : | |
148 if not exist ./tiff.h copy ..\..\libtiff\tiff.h . | |
149 tif_fax3.h : | |
150 if not exist ./tif_fax3.h copy ..\..\libtiff\tif_fax3.h . | |
151 | |
152 $(OUTDIR) : $(NEED_FOR_COMPILE) | |
153 if not exist $(OUTDIR)/nul mkdir $(OUTDIR) | |
154 | |
155 $(OUTDIR)/libtiff.bsc : $(OUTDIR) $(BSC32_SBRS) | |
156 $(BSC32) @<< | |
157 $(BSC32_FLAGS) $(BSC32_SBRS) | |
158 << | |
159 | |
160 $(OUTDIR)/libtiff.lib : $(OUTDIR) $(DEF_FILE) $(LIB32_OBJS) | |
161 $(LIB32) @<< | |
162 $(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS) | |
163 << | |
164 copy $(OUTDIR)\libtiff.lib ..\..\libtiff\libtiff.lib | |
165 | |
166 DEP_FAX3S=\ | |
167 ..\..\libtiff\tiff.h \ | |
168 ..\..\libtiff\tif_fax3.h | |
169 $(OBJDIR)/fax3sm.obj : $(DEP_FAX3S) $(OBJDIR) | |
170 $(CPP) $(CPP_PROJ) .\fax3sm.c -Fo$@ | |
171 |