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