Commit | Line | Data |
---|---|---|
bd6766d3 | 1 | # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. |
294981c7 GM |
2 | # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
3 | # 2008 Free Software Foundation, Inc. | |
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 | ||
7bbaaedd | 20 | |
d20f2a6a | 21 | ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc emacsclient |
7bbaaedd AI |
22 | |
23 | .PHONY: $(ALL) | |
24 | ||
afd27920 | 25 | VERSION = 23.0.60 |
ad456bcb | 26 | |
7bbaaedd | 27 | LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ |
d19249e7 | 28 | -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \ |
ba2d3968 | 29 | -I../src |
7bbaaedd | 30 | |
ad456bcb | 31 | LIBS = $(BASE_LIBS) $(ADVAPI32) |
7bbaaedd AI |
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) | |
9781fb53 EZ |
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) | |
7bbaaedd | 45 | |
1a8a626d EZ |
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 | |
56 | ||
57 | test-distrib: stamp_BLD $(BLD)/test-distrib.exe | |
9781fb53 | 58 | "$(BLD)/test-distrib.exe" "$(SRC)/testfile" |
7bbaaedd AI |
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 | ||
ad456bcb | 71 | ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR -DVERSION="\"$(VERSION)\"" |
d20f2a6a JB |
72 | ECLIENTOBJS = $(BLD)/emacsclient.$(O) \ |
73 | $(BLD)/getopt.$(O) \ | |
74 | $(BLD)/getopt1.$(O) \ | |
75 | $(BLD)/ntlib.$(O) | |
4429f88c | 76 | CLIENTRES = ../nt/$(BLD)/emacsclient.res |
4d91c8f9 | 77 | |
4429f88c JR |
78 | $(CLIENTRES): ../nt/emacsclient.rc |
79 | @echo Emacsclient resource file must be built from nt directory | |
80 | @exit -1 | |
d20f2a6a JB |
81 | |
82 | $(BLD)/emacsclient.exe: $(ECLIENTOBJS) | |
83 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib | |
2e2d2377 | 84 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS) |
d20f2a6a | 85 | |
4429f88c | 86 | $(BLD)/emacsclientw.exe: $(ECLIENTOBJS) $(CLIENTRES) |
ba2d3968 | 87 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib |
4429f88c | 88 | $(LINK) $(LINK_OUT)$@ $(CLIENTRES) -mwindows $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS) |
ba2d3968 | 89 | |
4041a5e6 EZ |
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 | |
8357b759 | 93 | $(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c |
d20f2a6a | 94 | |
7bbaaedd AI |
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 | ||
d19249e7 | 105 | EBROWSEOBJ = $(BLD)/ebrowse.$(O) \ |
ba2d3968 JB |
106 | $(BLD)/getopt.$(O) \ |
107 | $(BLD)/getopt1.$(O) \ | |
108 | $(BLD)/ntlib.$(O) | |
d19249e7 JR |
109 | |
110 | $(BLD)/ebrowse.exe: $(EBROWSEOBJ) | |
88257bc8 | 111 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(EBROWSEOBJ) $(LIBS) |
d19249e7 | 112 | |
7bbaaedd AI |
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 | ||
7bbaaedd | 138 | # |
3cf5c994 JD |
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. | |
7bbaaedd | 143 | # |
f23d76bd | 144 | obj = dosfns.o msdos.o \ |
eccfc782 | 145 | xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \ |
9e2a2647 | 146 | fontset.o \ |
c9fc02c7 | 147 | w32.o w32console.o w32fns.o w32heap.o w32inevt.o \ |
3cf5c994 | 148 | w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o \ |
eccfc782 | 149 | font.o w32font.o \ |
3cf5c994 | 150 | dispnew.o frame.o scroll.o xdisp.o window.o \ |
eccfc782 JR |
151 | charset.o coding.o category.o ccl.o character.o chartab.o \ |
152 | cm.o term.o terminal.o xfaces.o \ | |
3cf5c994 JD |
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 \ | |
a2666217 | 159 | syntax.o bytecode.o \ |
3cf5c994 JD |
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 | ||
7bbaaedd AI |
164 | # |
165 | # These are the lisp files that are loaded up in loadup.el | |
166 | # | |
167 | lispsource = ../lisp/ | |
168 | ||
a40c6a08 JR |
169 | MOUSE_SUPPORT = \ |
170 | $(lispsource)select.elc \ | |
171 | $(lispsource)scroll-bar.elc \ | |
79d48c1a | 172 | $(lispsource)mouse.elc |
a40c6a08 JR |
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 | |
a40c6a08 JR |
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 | |
7bbaaedd | 188 | |
79d48c1a JR |
189 | # lisp files that are loaded up on other platforms |
190 | OTHER_PLATFORM_SUPPORT = \ | |
191 | $(lispsource)dos-fns.elc \ | |
192 | $(lispsource)dos-vars.elc \ | |
193 | $(lispsource)international/ccl.elc \ | |
194 | $(lispsource)international/codepage.elc \ | |
79d48c1a JR |
195 | $(lispsource)x-dnd.elc \ |
196 | $(lispsource)term/x-win.elc | |
197 | ||
198 | ||
83a9c0b2 | 199 | lisp1= \ |
7f379e5b JR |
200 | $(lispsource)abbrev.elc \ |
201 | $(lispsource)buff-menu.elc \ | |
e63e8d3e | 202 | $(lispsource)button.elc \ |
8dc48ef0 | 203 | $(lispsource)emacs-lisp/byte-run.elc \ |
0c55bf82 | 204 | $(lispsource)composite.elc \ |
98d926f2 | 205 | $(lispsource)cus-face.elc \ |
7f379e5b JR |
206 | $(lispsource)cus-start.elc \ |
207 | $(lispsource)custom.elc \ | |
dd87b4cc | 208 | $(lispsource)emacs-lisp/backquote.elc \ |
7f379e5b JR |
209 | $(lispsource)emacs-lisp/lisp-mode.elc \ |
210 | $(lispsource)emacs-lisp/lisp.elc \ | |
a40c6a08 | 211 | $(lispsource)env.elc \ |
98d926f2 EZ |
212 | $(lispsource)faces.elc \ |
213 | $(lispsource)files.elc \ | |
98d926f2 | 214 | $(lispsource)format.elc \ |
a40c6a08 JR |
215 | $(lispsource)facemenu.elc \ |
216 | $(MOUSE_SUPPORT) \ | |
217 | $(lispsource)emacs-lisp/float-sup.elc \ | |
8dc48ef0 | 218 | $(lispsource)frame.elc \ |
7f379e5b JR |
219 | $(lispsource)help.elc \ |
220 | $(lispsource)indent.elc \ | |
221 | $(lispsource)isearch.elc \ | |
98d926f2 | 222 | $(lispsource)rfn-eshadow.elc \ |
7bbaaedd AI |
223 | $(lispsource)loadup.el \ |
224 | $(lispsource)loaddefs.el \ | |
7f379e5b | 225 | $(lispsource)bindings.elc \ |
8dc48ef0 | 226 | $(lispsource)emacs-lisp/map-ynp.elc \ |
a40c6a08 | 227 | $(lispsource)menu-bar.elc \ |
7f379e5b | 228 | $(lispsource)international/mule.elc \ |
7bbaaedd | 229 | $(lispsource)international/mule-conf.el \ |
7f379e5b JR |
230 | $(lispsource)international/mule-cmds.elc \ |
231 | $(lispsource)international/characters.elc \ | |
a40c6a08 | 232 | $(lispsource)international/charprop.el \ |
83a9c0b2 JR |
233 | $(lispsource)case-table.elc |
234 | ||
235 | lisp2 = \ | |
a40c6a08 JR |
236 | $(lispsource)language/chinese.el \ |
237 | $(lispsource)language/cyrillic.el \ | |
238 | $(lispsource)language/indian.el \ | |
9c61c734 | 239 | $(lispsource)language/sinhala.el \ |
76054cc8 | 240 | $(lispsource)language/english.el \ |
7f379e5b JR |
241 | $(lispsource)language/ethiopic.elc \ |
242 | $(lispsource)language/european.elc \ | |
76054cc8 AI |
243 | $(lispsource)language/czech.el \ |
244 | $(lispsource)language/slovak.el \ | |
245 | $(lispsource)language/romanian.el \ | |
246 | $(lispsource)language/greek.el \ | |
247 | $(lispsource)language/hebrew.el \ | |
76054cc8 AI |
248 | $(lispsource)language/japanese.el \ |
249 | $(lispsource)language/korean.el \ | |
250 | $(lispsource)language/lao.el \ | |
79d48c1a | 251 | $(lispsource)language/cham.el \ |
a40c6a08 | 252 | $(lispsource)language/tai-viet.el \ |
76054cc8 | 253 | $(lispsource)language/thai.el \ |
7f379e5b | 254 | $(lispsource)language/tibetan.elc \ |
a40c6a08 | 255 | $(lispsource)language/vietnamese.el \ |
76054cc8 | 256 | $(lispsource)language/misc-lang.el \ |
7f379e5b JR |
257 | $(lispsource)language/utf-8-lang.el \ |
258 | $(lispsource)language/georgian.el \ | |
79d48c1a JR |
259 | $(lispsource)language/khmer.el \ |
260 | $(lispsource)language/burmese.el \ | |
7bbaaedd | 261 | $(lispsource)paths.el \ |
7f379e5b JR |
262 | $(lispsource)register.elc \ |
263 | $(lispsource)replace.elc \ | |
264 | $(lispsource)simple.elc \ | |
01b996ad | 265 | $(lispsource)minibuffer.elc \ |
7f379e5b JR |
266 | $(lispsource)startup.elc \ |
267 | $(lispsource)subr.elc \ | |
268 | $(lispsource)term/tty-colors.elc \ | |
7a8940da | 269 | $(lispsource)font-core.elc \ |
98d926f2 EZ |
270 | $(lispsource)emacs-lisp/syntax.elc \ |
271 | $(lispsource)font-lock.elc \ | |
272 | $(lispsource)jit-lock.elc \ | |
7f379e5b JR |
273 | $(lispsource)textmodes/fill.elc \ |
274 | $(lispsource)textmodes/page.elc \ | |
275 | $(lispsource)textmodes/paragraphs.elc \ | |
276 | $(lispsource)textmodes/text-mode.elc \ | |
98d926f2 | 277 | $(lispsource)emacs-lisp/timer.elc \ |
98d926f2 | 278 | $(lispsource)jka-cmpr-hook.elc \ |
a40c6a08 | 279 | $(lispsource)vc-hooks.elc \ |
7f379e5b | 280 | $(lispsource)ediff-hook.elc \ |
86914123 | 281 | $(lispsource)epa-hook.elc \ |
a40c6a08 | 282 | $(TOOLTIP_SUPPORT) \ |
7bbaaedd | 283 | $(WINNT_SUPPORT) \ |
a40c6a08 | 284 | $(WINDOW_SUPPORT) \ |
7f379e5b JR |
285 | $(lispsource)widget.elc \ |
286 | $(lispsource)window.elc \ | |
7bbaaedd AI |
287 | $(lispsource)version.el |
288 | ||
3b57ab8f EZ |
289 | # This is needed the first time we build the tree, since temacs.exe |
290 | # does not exist yet, and the DOC rule needs it to rebuild DOC whenever | |
291 | # Emacs is rebuilt. | |
292 | ../src/$(BLD)/temacs.exe: | |
293 | - mkdir "../src/$(OBJDIR)" | |
294 | - mkdir "../src/$(BLD)" | |
295 | @echo temacs > temacs.exe | |
296 | $(CP) temacs.exe ../src/$(BLD) | |
297 | - $(DEL) temacs.exe | |
7bbaaedd | 298 | |
52402e4f | 299 | DOC = DOC |
79d48c1a | 300 | $(DOC): stamp_BLD $(BLD)/make-docfile.exe ../src/$(BLD)/temacs.exe $(lisp1) $(lisp2) $(OTHER_PLATFORM_SUPPORT) |
7bbaaedd | 301 | - $(DEL) $(DOC) |
cf6d30d7 | 302 | "$(THISDIR)/$(BLD)/make-docfile" -o $(DOC) -d ../src $(obj) |
83a9c0b2 JR |
303 | "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp1) |
304 | "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp2) | |
79d48c1a | 305 | "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(OTHER_PLATFORM_SUPPORT) |
7bbaaedd AI |
306 | $(CP) $(DOC) ../etc/DOC-X |
307 | - mkdir "../src/$(OBJDIR)" | |
308 | - mkdir "../src/$(OBJDIR)/etc" | |
309 | $(CP) $(DOC) ../src/$(OBJDIR)/etc/DOC-X | |
310 | ||
311 | {$(BLD)}.$(O){$(BLD)}.exe: | |
312 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $*.$(O) $(LIBS) | |
313 | ||
314 | # | |
315 | # Build the executables | |
316 | # | |
1a8a626d | 317 | all: stamp_BLD $(ALL) $(DOC) |
7bbaaedd AI |
318 | |
319 | # | |
320 | # Assuming INSTALL_DIR is defined, build and install emacs in it. | |
321 | # | |
322 | INSTALL_FILES = $(ALL) | |
323 | install: $(INSTALL_FILES) | |
324 | - mkdir "$(INSTALL_DIR)/bin" | |
325 | $(CP) $(BLD)/etags.exe $(INSTALL_DIR)/bin | |
88257bc8 | 326 | $(CP) $(BLD)/ebrowse.exe $(INSTALL_DIR)/bin |
7bbaaedd AI |
327 | $(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin |
328 | $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin | |
329 | $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin | |
9781fb53 EZ |
330 | $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin |
331 | $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin | |
d20f2a6a | 332 | $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin |
ba2d3968 | 333 | $(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin |
7bbaaedd AI |
334 | - mkdir "$(INSTALL_DIR)/etc" |
335 | $(CP) $(DOC) $(INSTALL_DIR)/etc | |
336 | ||
337 | # | |
338 | # Maintenance | |
52402e4f | 339 | # |
9724908a EZ |
340 | # We used to delete *~ here, but that might inadvertently remove |
341 | # precious files if it happens to match their short 8+3 aliases. | |
7bbaaedd | 342 | clean: |
9724908a | 343 | - $(DEL) DOC* $(COMPILER_TEMP_FILES) |
7bbaaedd | 344 | - $(DEL) ctags.c |
d238808a | 345 | - $(DEL) getopt.h |
7bbaaedd | 346 | - $(DEL_TREE) $(OBJDIR) |
e313b518 | 347 | - $(DEL) stamp_BLD |
7bbaaedd | 348 | |
6948400c JR |
349 | distclean: cleanall |
350 | - $(DEL) TAGS | |
351 | - $(DEL) Makefile | |
352 | ||
353 | maintainer-clean: distclean | |
354 | ||
7bbaaedd AI |
355 | cleanall: clean |
356 | - $(DEL_TREE) obj | |
357 | - $(DEL_TREE) obj-spd | |
358 | - $(DEL_TREE) oo | |
359 | - $(DEL_TREE) oo-spd | |
360 | ||
361 | # | |
362 | # Headers we would preprocess if we could. | |
363 | # | |
364 | ../src/config.h: ../nt/$(CONFIG_H) | |
70846e2a | 365 | echo $(CONFIG_H) has changed. Re-run configure.bat. |
df1b2142 JR |
366 | exit -1 |
367 | ||
d238808a JB |
368 | getopt.h: getopt_.h |
369 | $(CP) $(ALL_DEPS) $@ | |
7bbaaedd AI |
370 | |
371 | ### DEPENDENCIES ### | |
372 | ||
373 | EMACS_ROOT = .. | |
374 | SRC = . | |
375 | ||
376 | $(BLD)/alloca.$(O) : \ | |
377 | $(SRC)/alloca.c \ | |
378 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
379 | $(EMACS_ROOT)/src/m/intel386.h \ | |
380 | $(EMACS_ROOT)/src/config.h \ | |
381 | $(EMACS_ROOT)/src/blockinput.h | |
382 | ||
383 | $(BLD)/b2m.$(O) : \ | |
384 | $(SRC)/b2m.c \ | |
385 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
386 | $(EMACS_ROOT)/src/m/intel386.h \ | |
387 | $(EMACS_ROOT)/lib-src/../src/config.h | |
388 | ||
389 | $(BLD)/ctags.$(O) : \ | |
390 | $(SRC)/ctags.c \ | |
391 | $(EMACS_ROOT)/nt/inc/sys/param.h \ | |
392 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
393 | $(EMACS_ROOT)/src/m/intel386.h \ | |
394 | $(EMACS_ROOT)/lib-src/../src/config.h \ | |
395 | $(SRC)/ntlib.h \ | |
396 | $(SRC)/getopt.h | |
397 | ||
7bbaaedd AI |
398 | $(BLD)/digest-doc.$(O) : \ |
399 | $(SRC)/digest-doc.c | |
400 | ||
401 | $(BLD)/emacsclient.$(O) : \ | |
402 | $(SRC)/emacsclient.c \ | |
403 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
404 | $(EMACS_ROOT)/src/m/intel386.h \ | |
405 | $(EMACS_ROOT)/lib-src/../src/config.h | |
406 | ||
7bbaaedd AI |
407 | $(BLD)/etags.$(O) : \ |
408 | $(SRC)/etags.c \ | |
409 | $(EMACS_ROOT)/nt/inc/sys/param.h \ | |
410 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
411 | $(EMACS_ROOT)/src/m/intel386.h \ | |
412 | $(EMACS_ROOT)/lib-src/../src/config.h \ | |
413 | $(SRC)/ntlib.h \ | |
414 | $(SRC)/getopt.h | |
415 | ||
416 | $(BLD)/fakemail.$(O) : \ | |
417 | $(SRC)/fakemail.c \ | |
418 | $(SRC)/ntlib.h \ | |
419 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
420 | $(EMACS_ROOT)/src/m/intel386.h \ | |
421 | $(EMACS_ROOT)/lib-src/../src/config.h \ | |
422 | $(EMACS_ROOT)/nt/inc/pwd.h | |
423 | ||
424 | $(BLD)/getdate.$(O) : \ | |
425 | $(SRC)/getdate.c \ | |
426 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
427 | $(EMACS_ROOT)/src/m/intel386.h \ | |
428 | $(EMACS_ROOT)/src/config.h \ | |
429 | $(MSTOOLS_SYS)/types.h | |
430 | ||
431 | $(BLD)/getopt.$(O) : \ | |
432 | $(SRC)/getopt.c \ | |
433 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
434 | $(EMACS_ROOT)/src/m/intel386.h \ | |
435 | $(EMACS_ROOT)/src/config.h \ | |
436 | $(SRC)/ntlib.h \ | |
437 | $(SRC)/getopt.h | |
438 | ||
439 | $(BLD)/getopt1.$(O) : \ | |
440 | $(SRC)/getopt1.c \ | |
441 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
442 | $(EMACS_ROOT)/src/m/intel386.h \ | |
443 | $(EMACS_ROOT)/src/config.h \ | |
444 | $(SRC)/getopt.h | |
445 | ||
446 | $(BLD)/hexl.$(O) : \ | |
447 | $(SRC)/hexl.c | |
448 | ||
449 | $(BLD)/leditcfns.$(O) : \ | |
450 | $(SRC)/leditcfns.c | |
451 | ||
452 | $(BLD)/make-docfile.$(O) : \ | |
453 | $(SRC)/make-docfile.c \ | |
454 | $(EMACS_ROOT)/src/config.h | |
455 | ||
456 | $(BLD)/make-path.$(O) : \ | |
457 | $(SRC)/make-path.c | |
458 | ||
459 | $(BLD)/movemail.$(O) : \ | |
460 | $(SRC)/movemail.c \ | |
461 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
462 | $(EMACS_ROOT)/src/m/intel386.h \ | |
463 | $(EMACS_ROOT)/lib-src/../src/config.h \ | |
464 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | |
7bbaaedd AI |
465 | $(EMACS_ROOT)/lib-src/../src/syswait.h \ |
466 | $(EMACS_ROOT)/nt/inc/pwd.h \ | |
467 | $(SRC)/ntlib.h | |
ba2d3968 | 468 | $(CC) $(CFLAGS) -DUSG $(CC_OUT)$@ movemail.c |
7bbaaedd AI |
469 | |
470 | $(BLD)/ntlib.$(O) : \ | |
471 | $(SRC)/ntlib.c \ | |
472 | $(SRC)/ntlib.h \ | |
473 | $(EMACS_ROOT)/nt/inc/pwd.h | |
474 | ||
475 | $(BLD)/pop.$(O) : \ | |
476 | $(SRC)/pop.c \ | |
477 | $(SRC)/pop.h \ | |
478 | $(SRC)/ntlib.h | |
479 | ||
480 | $(BLD)/profile.$(O) : \ | |
481 | $(SRC)/profile.c \ | |
482 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
483 | $(EMACS_ROOT)/src/m/intel386.h \ | |
484 | $(EMACS_ROOT)/lib-src/../src/config.h \ | |
7bbaaedd AI |
485 | $(EMACS_ROOT)/lib-src/../src/systime.h |
486 | ||
487 | $(BLD)/qsort.$(O) : \ | |
488 | $(SRC)/qsort.c | |
489 | ||
490 | $(BLD)/sorted-doc.$(O) : \ | |
9781fb53 EZ |
491 | $(SRC)/sorted-doc.c \ |
492 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
493 | $(EMACS_ROOT)/src/m/intel386.h \ | |
494 | $(EMACS_ROOT)/src/config.h \ | |
7bbaaedd AI |
495 | |
496 | $(BLD)/tcp.$(O) : \ | |
497 | $(SRC)/tcp.c | |
498 | ||
499 | $(BLD)/test-distrib.$(O) : \ | |
500 | $(SRC)/test-distrib.c | |
501 | ||
502 | $(BLD)/timer.$(O) : \ | |
503 | $(SRC)/timer.c \ | |
504 | $(EMACS_ROOT)/src/s/ms-w32.h \ | |
505 | $(EMACS_ROOT)/src/m/intel386.h \ | |
506 | $(EMACS_ROOT)/lib-src/../src/config.h | |
1a8a626d EZ |
507 | |
508 | # The following dependencies are for supporting parallel builds, where | |
509 | # we must make sure $(BLD) exists before any compilation starts. | |
510 | # | |
511 | $(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O): stamp_BLD | |
512 | ||
513 | $(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O): stamp_BLD | |
514 | ||
515 | $(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS): stamp_BLD | |
516 | ||
517 | $(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O): stamp_BLD | |
518 | ||
519 | $(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O): stamp_BLD |