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