55092
|
1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
|
94828
|
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
100958
|
3 # 2008, 2009 Free Software Foundation, Inc.
|
94828
|
4
|
|
5 # This file is part of GNU Emacs.
|
|
6
|
|
7 # GNU Emacs is free software: you can redistribute it and/or modify
|
|
8 # it under the terms of the GNU General Public License as published by
|
|
9 # the Free Software Foundation, either version 3 of the License, or
|
|
10 # (at your option) any later version.
|
|
11
|
|
12 # GNU Emacs is distributed in the hope that it will be useful,
|
|
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 # GNU General Public License for more details.
|
|
16
|
|
17 # You should have received a copy of the GNU General Public License
|
|
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
31631
|
20
|
73561
|
21 ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc emacsclient
|
31631
|
22
|
|
23 .PHONY: $(ALL)
|
|
24
|
103502
|
25 VERSION = 23.1.50
|
74186
|
26
|
31631
|
27 LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \
|
33831
|
28 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \
|
73974
|
29 -I../src
|
31631
|
30
|
74186
|
31 LIBS = $(BASE_LIBS) $(ADVAPI32)
|
31631
|
32
|
|
33 $(BLD)/make-docfile.exe: $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O)
|
|
34 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O) $(LIBS)
|
|
35 $(BLD)/hexl.exe: $(BLD)/hexl.$(O)
|
|
36 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS)
|
|
37 $(BLD)/fakemail.exe: $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O)
|
|
38 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) $(LIBS)
|
71197
|
39 $(BLD)/sorted-doc.exe: $(BLD)/sorted-doc.$(O)
|
|
40 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/sorted-doc.$(O) $(LIBS)
|
|
41 $(BLD)/digest-doc.exe: $(BLD)/digest-doc.$(O)
|
|
42 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/digest-doc.$(O) $(LIBS)
|
|
43 $(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
|
|
44 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/test-distrib.$(O) $(LIBS)
|
31631
|
45
|
74802
|
46 make-docfile: stamp_BLD $(BLD)/make-docfile.exe
|
|
47 ctags: stamp_BLD $(BLD)/ctags.exe
|
|
48 etags: stamp_BLD $(BLD)/etags.exe
|
|
49 ebrowse: stamp_BLD $(BLD)/ebrowse.exe
|
|
50 hexl: stamp_BLD $(BLD)/hexl.exe
|
|
51 movemail: stamp_BLD $(BLD)/movemail.exe
|
|
52 fakemail: stamp_BLD $(BLD)/fakemail.exe
|
|
53 sorted-doc: stamp_BLD $(BLD)/sorted-doc.exe
|
|
54 digest-doc: stamp_BLD $(BLD)/digest-doc.exe
|
|
55 emacsclient: stamp_BLD $(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe
|
71197
|
56
|
74802
|
57 test-distrib: stamp_BLD $(BLD)/test-distrib.exe
|
71197
|
58 "$(BLD)/test-distrib.exe" "$(SRC)/testfile"
|
31631
|
59
|
|
60 GETOPTOBJS = $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O)
|
|
61 GETOPTDEPS = $(GETOPTOBJS) getopt.h
|
|
62 MOVEMAILOBJS = $(BLD)/movemail.$(O) \
|
|
63 $(BLD)/pop.$(O) \
|
|
64 $(BLD)/ntlib.$(O) \
|
|
65 $(GETOPTOBJS)
|
|
66
|
|
67 $(BLD)/movemail.exe: $(MOVEMAILOBJS) getopt.h
|
|
68 # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
|
|
69 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS)
|
|
70
|
74186
|
71 ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR -DVERSION="\"$(VERSION)\""
|
73561
|
72 ECLIENTOBJS = $(BLD)/emacsclient.$(O) \
|
|
73 $(BLD)/getopt.$(O) \
|
|
74 $(BLD)/getopt1.$(O) \
|
|
75 $(BLD)/ntlib.$(O)
|
80482
|
76 CLIENTRES = ../nt/$(BLD)/emacsclient.res
|
74252
|
77
|
80482
|
78 $(CLIENTRES): ../nt/emacsclient.rc
|
|
79 @echo Emacsclient resource file must be built from nt directory
|
|
80 @exit -1
|
73561
|
81
|
|
82 $(BLD)/emacsclient.exe: $(ECLIENTOBJS)
|
|
83 # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
|
78903
|
84 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS)
|
73561
|
85
|
80482
|
86 $(BLD)/emacsclientw.exe: $(ECLIENTOBJS) $(CLIENTRES)
|
73974
|
87 # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
|
80482
|
88 $(LINK) $(LINK_OUT)$@ $(CLIENTRES) -mwindows $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS)
|
73974
|
89
|
74216
|
90 # emacsclient.$(O) depends on makefile.w32-in because makefile.w32-in
|
|
91 # can be edited to define VERSION string, which is part of ECLIENT_CFLAGS.
|
|
92 $(BLD)/emacsclient.$(O): emacsclient.c makefile.w32-in
|
73954
|
93 $(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c
|
73561
|
94
|
31631
|
95 ETAGSOBJ = $(BLD)/etags.$(O) \
|
|
96 $(BLD)/getopt.$(O) \
|
|
97 $(BLD)/getopt1.$(O) \
|
|
98 $(BLD)/ntlib.$(O) \
|
|
99 $(BLD)/regex.$(O)
|
|
100
|
|
101 $(BLD)/etags.exe: $(ETAGSOBJ)
|
|
102 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
|
|
103
|
|
104
|
33831
|
105 EBROWSEOBJ = $(BLD)/ebrowse.$(O) \
|
73974
|
106 $(BLD)/getopt.$(O) \
|
|
107 $(BLD)/getopt1.$(O) \
|
|
108 $(BLD)/ntlib.$(O)
|
33831
|
109
|
|
110 $(BLD)/ebrowse.exe: $(EBROWSEOBJ)
|
34031
|
111 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(EBROWSEOBJ) $(LIBS)
|
33831
|
112
|
31631
|
113 $(BLD)/regex.$(O): ../src/regex.c ../src/regex.h ../src/config.h
|
|
114 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
|
|
115 ../src/regex.c $(CC_OUT)$@
|
|
116
|
|
117 ETAGS_CFLAGS = -DHAVE_GETCWD
|
|
118 $(BLD)/etags.$(O): etags.c
|
|
119 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) $(CC_OUT)$@ etags.c
|
|
120
|
|
121 CTAGSOBJ = $(BLD)/ctags.$(O) \
|
|
122 $(BLD)/getopt.$(O) \
|
|
123 $(BLD)/getopt1.$(O) \
|
|
124 $(BLD)/ntlib.$(O) \
|
|
125 $(BLD)/regex.$(O)
|
|
126
|
|
127 $(BLD)/ctags.exe: $(CTAGSOBJ)
|
|
128 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
|
|
129
|
|
130 ctags.c: etags.c
|
|
131 - $(DEL) ctags.c
|
|
132 $(CP) etags.c ctags.c
|
|
133
|
|
134 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
|
|
135 $(BLD)/ctags.$(O): ctags.c
|
|
136 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c
|
|
137
|
|
138 #
|
58067
|
139 # From ..\src\Makefile.in
|
|
140 # It doesn't matter if the real name is *.obj for the files in this list,
|
|
141 # make-docfile blindly replaces .o with .c anyway. Keep .o in this list
|
|
142 # as it is required by code in doc.c.
|
31631
|
143 #
|
91085
|
144 obj = dosfns.o msdos.o \
|
91060
|
145 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
|
97043
|
146 fontset.o \
|
96328
|
147 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
|
58067
|
148 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o \
|
91060
|
149 font.o w32font.o \
|
58067
|
150 dispnew.o frame.o scroll.o xdisp.o window.o \
|
91060
|
151 charset.o coding.o category.o ccl.o character.o chartab.o \
|
|
152 cm.o term.o terminal.o xfaces.o \
|
58067
|
153 emacs.o keyboard.o macros.o keymap.o sysdep.o \
|
|
154 buffer.o filelock.o insdel.o marker.o \
|
|
155 minibuf.o fileio.o dired.o filemode.o \
|
|
156 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
|
|
157 alloc.o data.o doc.o editfns.o callint.o \
|
|
158 eval.o floatfns.o fns.o print.o lread.o \
|
85714
|
159 syntax.o bytecode.o \
|
58067
|
160 process.o callproc.o \
|
|
161 region-cache.o sound.o atimer.o \
|
|
162 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o
|
|
163
|
31631
|
164 #
|
|
165 # These are the lisp files that are loaded up in loadup.el
|
|
166 #
|
|
167 lispsource = ../lisp/
|
|
168
|
91063
|
169 MOUSE_SUPPORT = \
|
|
170 $(lispsource)select.elc \
|
|
171 $(lispsource)scroll-bar.elc \
|
92119
|
172 $(lispsource)mouse.elc
|
91063
|
173 WINNT_SUPPORT = \
|
|
174 $(lispsource)ls-lisp.elc \
|
|
175 $(lispsource)disp-table.elc \
|
|
176 $(lispsource)w32-fns.elc \
|
|
177 $(lispsource)dos-w32.elc \
|
|
178 $(lispsource)w32-vars.elc \
|
|
179 $(lispsource)term/w32-win.elc
|
|
180 TOOLTIP_SUPPORT = $(lispsource)tooltip.elc
|
|
181 WINDOW_SUPPORT = \
|
|
182 $(lispsource)fringe.elc \
|
|
183 $(lispsource)image.elc \
|
|
184 $(lispsource)international/fontset.elc \
|
|
185 $(lispsource)dnd.elc \
|
|
186 $(lispsource)tool-bar.elc \
|
|
187 $(lispsource)mwheel.elc
|
43515
|
188
|
|
189 # lisp files that are loaded up on other platforms
|
92119
|
190 OTHER_PLATFORM_SUPPORT = \
|
|
191 $(lispsource)dos-fns.elc \
|
|
192 $(lispsource)dos-vars.elc \
|
|
193 $(lispsource)x-dnd.elc \
|
|
194 $(lispsource)term/x-win.elc
|
|
195
|
31631
|
196
|
55452
|
197 lisp1= \
|
43515
|
198 $(lispsource)abbrev.elc \
|
|
199 $(lispsource)buff-menu.elc \
|
43523
|
200 $(lispsource)button.elc \
|
51353
769c2d7bcbc0
(lisp): Fix references to byte-run.el, float-sup.el and map-ynp.el, which are
Juanma Barranquero <lekktu@gmail.com>
diff
changeset
|
201 $(lispsource)emacs-lisp/byte-run.elc \
|
91503
|
202 $(lispsource)composite.elc \
|
67922
|
203 $(lispsource)cus-face.elc \
|
43515
|
204 $(lispsource)cus-start.elc \
|
|
205 $(lispsource)custom.elc \
|
44216
|
206 $(lispsource)emacs-lisp/backquote.elc \
|
43515
|
207 $(lispsource)emacs-lisp/lisp-mode.elc \
|
|
208 $(lispsource)emacs-lisp/lisp.elc \
|
91063
|
209 $(lispsource)env.elc \
|
|
210 $(lispsource)faces.elc \
|
|
211 $(lispsource)files.elc \
|
|
212 $(lispsource)format.elc \
|
67922
|
213 $(lispsource)facemenu.elc \
|
|
214 $(MOUSE_SUPPORT) \
|
|
215 $(lispsource)emacs-lisp/float-sup.elc \
|
51353
769c2d7bcbc0
(lisp): Fix references to byte-run.el, float-sup.el and map-ynp.el, which are
Juanma Barranquero <lekktu@gmail.com>
diff
changeset
|
216 $(lispsource)frame.elc \
|
43515
|
217 $(lispsource)help.elc \
|
|
218 $(lispsource)indent.elc \
|
|
219 $(lispsource)isearch.elc \
|
67922
|
220 $(lispsource)rfn-eshadow.elc \
|
31631
|
221 $(lispsource)loadup.el \
|
|
222 $(lispsource)loaddefs.el \
|
43515
|
223 $(lispsource)bindings.elc \
|
51353
769c2d7bcbc0
(lisp): Fix references to byte-run.el, float-sup.el and map-ynp.el, which are
Juanma Barranquero <lekktu@gmail.com>
diff
changeset
|
224 $(lispsource)emacs-lisp/map-ynp.elc \
|
91063
|
225 $(lispsource)menu-bar.elc \
|
43515
|
226 $(lispsource)international/mule.elc \
|
31631
|
227 $(lispsource)international/mule-conf.el \
|
43515
|
228 $(lispsource)international/mule-cmds.elc \
|
|
229 $(lispsource)international/characters.elc \
|
91063
|
230 $(lispsource)international/charprop.el \
|
55452
|
231 $(lispsource)case-table.elc
|
|
232
|
|
233 lisp2 = \
|
91063
|
234 $(lispsource)language/chinese.el \
|
|
235 $(lispsource)language/cyrillic.el \
|
|
236 $(lispsource)language/indian.el \
|
92101
|
237 $(lispsource)language/sinhala.el \
|
41804
|
238 $(lispsource)language/english.el \
|
43515
|
239 $(lispsource)language/ethiopic.elc \
|
|
240 $(lispsource)language/european.elc \
|
41804
|
241 $(lispsource)language/czech.el \
|
|
242 $(lispsource)language/slovak.el \
|
|
243 $(lispsource)language/romanian.el \
|
|
244 $(lispsource)language/greek.el \
|
|
245 $(lispsource)language/hebrew.el \
|
|
246 $(lispsource)language/japanese.el \
|
|
247 $(lispsource)language/korean.el \
|
|
248 $(lispsource)language/lao.el \
|
92119
|
249 $(lispsource)language/cham.el \
|
91063
|
250 $(lispsource)language/tai-viet.el \
|
41804
|
251 $(lispsource)language/thai.el \
|
43515
|
252 $(lispsource)language/tibetan.elc \
|
91063
|
253 $(lispsource)language/vietnamese.el \
|
41804
|
254 $(lispsource)language/misc-lang.el \
|
43515
|
255 $(lispsource)language/utf-8-lang.el \
|
|
256 $(lispsource)language/georgian.el \
|
92119
|
257 $(lispsource)language/khmer.el \
|
|
258 $(lispsource)language/burmese.el \
|
31631
|
259 $(lispsource)paths.el \
|
43515
|
260 $(lispsource)register.elc \
|
|
261 $(lispsource)replace.elc \
|
|
262 $(lispsource)simple.elc \
|
95428
|
263 $(lispsource)minibuffer.elc \
|
43515
|
264 $(lispsource)startup.elc \
|
|
265 $(lispsource)subr.elc \
|
|
266 $(lispsource)term/tty-colors.elc \
|
45805
4f0eb43475f3
(lisp): Add international/ucs-tables.elc and font-core.elc.
Juanma Barranquero <lekktu@gmail.com>
diff
changeset
|
267 $(lispsource)font-core.elc \
|
67922
|
268 $(lispsource)emacs-lisp/syntax.elc \
|
|
269 $(lispsource)font-lock.elc \
|
|
270 $(lispsource)jit-lock.elc \
|
43515
|
271 $(lispsource)textmodes/fill.elc \
|
|
272 $(lispsource)textmodes/page.elc \
|
|
273 $(lispsource)textmodes/paragraphs.elc \
|
|
274 $(lispsource)textmodes/text-mode.elc \
|
67922
|
275 $(lispsource)emacs-lisp/timer.elc \
|
91063
|
276 $(lispsource)jka-cmpr-hook.elc \
|
43515
|
277 $(lispsource)vc-hooks.elc \
|
|
278 $(lispsource)ediff-hook.elc \
|
94752
|
279 $(lispsource)epa-hook.elc \
|
91063
|
280 $(TOOLTIP_SUPPORT) \
|
31631
|
281 $(WINNT_SUPPORT) \
|
91063
|
282 $(WINDOW_SUPPORT) \
|
43515
|
283 $(lispsource)widget.elc \
|
|
284 $(lispsource)window.elc \
|
31631
|
285 $(lispsource)version.el
|
|
286
|
73672
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
287 # This is needed the first time we build the tree, since temacs.exe
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
288 # does not exist yet, and the DOC rule needs it to rebuild DOC whenever
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
289 # Emacs is rebuilt.
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
290 ../src/$(BLD)/temacs.exe:
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
291 - mkdir "../src/$(OBJDIR)"
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
292 - mkdir "../src/$(BLD)"
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
293 @echo temacs > temacs.exe
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
294 $(CP) temacs.exe ../src/$(BLD)
|
4f7cb3d8f0b1
(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
295 - $(DEL) temacs.exe
|
31631
|
296
|
47753
|
297 DOC = DOC
|
92119
|
298 $(DOC): stamp_BLD $(BLD)/make-docfile.exe ../src/$(BLD)/temacs.exe $(lisp1) $(lisp2) $(OTHER_PLATFORM_SUPPORT)
|
31631
|
299 - $(DEL) $(DOC)
|
48894
|
300 "$(THISDIR)/$(BLD)/make-docfile" -o $(DOC) -d ../src $(obj)
|
55452
|
301 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp1)
|
|
302 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp2)
|
92119
|
303 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(OTHER_PLATFORM_SUPPORT)
|
31631
|
304 $(CP) $(DOC) ../etc/DOC-X
|
|
305 - mkdir "../src/$(OBJDIR)"
|
|
306 - mkdir "../src/$(OBJDIR)/etc"
|
|
307 $(CP) $(DOC) ../src/$(OBJDIR)/etc/DOC-X
|
|
308
|
|
309 {$(BLD)}.$(O){$(BLD)}.exe:
|
|
310 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $*.$(O) $(LIBS)
|
|
311
|
|
312 #
|
|
313 # Build the executables
|
|
314 #
|
74802
|
315 all: stamp_BLD $(ALL) $(DOC)
|
31631
|
316
|
|
317 #
|
|
318 # Assuming INSTALL_DIR is defined, build and install emacs in it.
|
|
319 #
|
|
320 INSTALL_FILES = $(ALL)
|
|
321 install: $(INSTALL_FILES)
|
|
322 - mkdir "$(INSTALL_DIR)/bin"
|
|
323 $(CP) $(BLD)/etags.exe $(INSTALL_DIR)/bin
|
34031
|
324 $(CP) $(BLD)/ebrowse.exe $(INSTALL_DIR)/bin
|
31631
|
325 $(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin
|
|
326 $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin
|
|
327 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin
|
71197
|
328 $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin
|
|
329 $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin
|
73561
|
330 $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin
|
73974
|
331 $(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin
|
31631
|
332 - mkdir "$(INSTALL_DIR)/etc"
|
|
333 $(CP) $(DOC) $(INSTALL_DIR)/etc
|
|
334
|
|
335 #
|
|
336 # Maintenance
|
47753
|
337 #
|
78176
|
338 # We used to delete *~ here, but that might inadvertently remove
|
|
339 # precious files if it happens to match their short 8+3 aliases.
|
31631
|
340 clean:
|
78176
|
341 - $(DEL) DOC* $(COMPILER_TEMP_FILES)
|
31631
|
342 - $(DEL) ctags.c
|
64655
|
343 - $(DEL) getopt.h
|
31631
|
344 - $(DEL_TREE) $(OBJDIR)
|
74816
|
345 - $(DEL) stamp_BLD
|
31631
|
346
|
93923
|
347 distclean: cleanall
|
|
348 - $(DEL) TAGS
|
|
349 - $(DEL) Makefile
|
|
350
|
|
351 maintainer-clean: distclean
|
|
352
|
31631
|
353 cleanall: clean
|
|
354 - $(DEL_TREE) obj
|
|
355 - $(DEL_TREE) obj-spd
|
|
356 - $(DEL_TREE) oo
|
|
357 - $(DEL_TREE) oo-spd
|
|
358
|
|
359 #
|
|
360 # Headers we would preprocess if we could.
|
|
361 #
|
|
362 ../src/config.h: ../nt/$(CONFIG_H)
|
73311
|
363 echo $(CONFIG_H) has changed. Re-run configure.bat.
|
65447
|
364 exit -1
|
|
365
|
64655
|
366 getopt.h: getopt_.h
|
|
367 $(CP) $(ALL_DEPS) $@
|
31631
|
368
|
|
369 ### DEPENDENCIES ###
|
|
370
|
|
371 EMACS_ROOT = ..
|
|
372 SRC = .
|
|
373
|
|
374 $(BLD)/alloca.$(O) : \
|
|
375 $(SRC)/alloca.c \
|
|
376 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
377 $(EMACS_ROOT)/src/m/intel386.h \
|
|
378 $(EMACS_ROOT)/src/config.h \
|
|
379 $(EMACS_ROOT)/src/blockinput.h
|
|
380
|
|
381 $(BLD)/b2m.$(O) : \
|
|
382 $(SRC)/b2m.c \
|
|
383 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
384 $(EMACS_ROOT)/src/m/intel386.h \
|
|
385 $(EMACS_ROOT)/lib-src/../src/config.h
|
|
386
|
|
387 $(BLD)/ctags.$(O) : \
|
|
388 $(SRC)/ctags.c \
|
|
389 $(EMACS_ROOT)/nt/inc/sys/param.h \
|
|
390 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
391 $(EMACS_ROOT)/src/m/intel386.h \
|
|
392 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
393 $(SRC)/ntlib.h \
|
|
394 $(SRC)/getopt.h
|
|
395
|
|
396 $(BLD)/digest-doc.$(O) : \
|
|
397 $(SRC)/digest-doc.c
|
|
398
|
|
399 $(BLD)/emacsclient.$(O) : \
|
|
400 $(SRC)/emacsclient.c \
|
|
401 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
402 $(EMACS_ROOT)/src/m/intel386.h \
|
|
403 $(EMACS_ROOT)/lib-src/../src/config.h
|
|
404
|
|
405 $(BLD)/etags.$(O) : \
|
|
406 $(SRC)/etags.c \
|
|
407 $(EMACS_ROOT)/nt/inc/sys/param.h \
|
|
408 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
409 $(EMACS_ROOT)/src/m/intel386.h \
|
|
410 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
411 $(SRC)/ntlib.h \
|
|
412 $(SRC)/getopt.h
|
|
413
|
|
414 $(BLD)/fakemail.$(O) : \
|
|
415 $(SRC)/fakemail.c \
|
|
416 $(SRC)/ntlib.h \
|
|
417 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
418 $(EMACS_ROOT)/src/m/intel386.h \
|
|
419 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
420 $(EMACS_ROOT)/nt/inc/pwd.h
|
|
421
|
|
422 $(BLD)/getdate.$(O) : \
|
|
423 $(SRC)/getdate.c \
|
|
424 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
425 $(EMACS_ROOT)/src/m/intel386.h \
|
|
426 $(EMACS_ROOT)/src/config.h \
|
|
427 $(MSTOOLS_SYS)/types.h
|
|
428
|
|
429 $(BLD)/getopt.$(O) : \
|
|
430 $(SRC)/getopt.c \
|
|
431 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
432 $(EMACS_ROOT)/src/m/intel386.h \
|
|
433 $(EMACS_ROOT)/src/config.h \
|
|
434 $(SRC)/ntlib.h \
|
|
435 $(SRC)/getopt.h
|
|
436
|
|
437 $(BLD)/getopt1.$(O) : \
|
|
438 $(SRC)/getopt1.c \
|
|
439 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
440 $(EMACS_ROOT)/src/m/intel386.h \
|
|
441 $(EMACS_ROOT)/src/config.h \
|
|
442 $(SRC)/getopt.h
|
|
443
|
|
444 $(BLD)/hexl.$(O) : \
|
|
445 $(SRC)/hexl.c
|
|
446
|
|
447 $(BLD)/leditcfns.$(O) : \
|
|
448 $(SRC)/leditcfns.c
|
|
449
|
|
450 $(BLD)/make-docfile.$(O) : \
|
|
451 $(SRC)/make-docfile.c \
|
|
452 $(EMACS_ROOT)/src/config.h
|
|
453
|
|
454 $(BLD)/make-path.$(O) : \
|
|
455 $(SRC)/make-path.c
|
|
456
|
|
457 $(BLD)/movemail.$(O) : \
|
|
458 $(SRC)/movemail.c \
|
|
459 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
460 $(EMACS_ROOT)/src/m/intel386.h \
|
|
461 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
462 $(EMACS_ROOT)/nt/inc/sys/file.h \
|
|
463 $(EMACS_ROOT)/lib-src/../src/syswait.h \
|
|
464 $(EMACS_ROOT)/nt/inc/pwd.h \
|
|
465 $(SRC)/ntlib.h
|
73974
|
466 $(CC) $(CFLAGS) -DUSG $(CC_OUT)$@ movemail.c
|
31631
|
467
|
|
468 $(BLD)/ntlib.$(O) : \
|
|
469 $(SRC)/ntlib.c \
|
|
470 $(SRC)/ntlib.h \
|
|
471 $(EMACS_ROOT)/nt/inc/pwd.h
|
|
472
|
|
473 $(BLD)/pop.$(O) : \
|
|
474 $(SRC)/pop.c \
|
|
475 $(SRC)/pop.h \
|
|
476 $(SRC)/ntlib.h
|
|
477
|
|
478 $(BLD)/profile.$(O) : \
|
|
479 $(SRC)/profile.c \
|
|
480 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
481 $(EMACS_ROOT)/src/m/intel386.h \
|
|
482 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
483 $(EMACS_ROOT)/lib-src/../src/systime.h
|
|
484
|
|
485 $(BLD)/qsort.$(O) : \
|
|
486 $(SRC)/qsort.c
|
|
487
|
|
488 $(BLD)/sorted-doc.$(O) : \
|
71197
|
489 $(SRC)/sorted-doc.c \
|
|
490 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
491 $(EMACS_ROOT)/src/m/intel386.h \
|
99214
91fa9fdc5cb4
* makefile.w32-in ($(BLD)/sorted-doc.$(O)): Remove spurious backslash.
Juanma Barranquero <lekktu@gmail.com>
diff
changeset
|
492 $(EMACS_ROOT)/src/config.h
|
31631
|
493
|
|
494 $(BLD)/tcp.$(O) : \
|
|
495 $(SRC)/tcp.c
|
|
496
|
|
497 $(BLD)/test-distrib.$(O) : \
|
|
498 $(SRC)/test-distrib.c
|
|
499
|
|
500 $(BLD)/timer.$(O) : \
|
|
501 $(SRC)/timer.c \
|
|
502 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
503 $(EMACS_ROOT)/src/m/intel386.h \
|
|
504 $(EMACS_ROOT)/lib-src/../src/config.h
|
74802
|
505
|
|
506 # The following dependencies are for supporting parallel builds, where
|
|
507 # we must make sure $(BLD) exists before any compilation starts.
|
|
508 #
|
|
509 $(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O): stamp_BLD
|
|
510
|
|
511 $(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O): stamp_BLD
|
|
512
|
|
513 $(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS): stamp_BLD
|
|
514
|
|
515 $(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O): stamp_BLD
|
|
516
|
|
517 $(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O): stamp_BLD
|