Final cleanups and updated ChangeLog entries.
[bpt/emacs.git] / lib-src / makefile.w32-in
CommitLineData
b46a6a83 1# -*- Makefile -*- for GNU Emacs on the Microsoft Windows API.
acaf905b 2# Copyright (C) 2000-2012 Free Software Foundation, Inc.
294981c7
GM
3
4# This file is part of GNU Emacs.
5
6# GNU Emacs is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10
11# GNU Emacs is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18
7bbaaedd 19
e4ecc6a2
EZ
20ALL = $(BLD)/test-distrib.exe $(BLD)/make-docfile.exe $(BLD)/hexl.exe\
21 $(BLD)/ctags.exe $(BLD)/etags.exe $(BLD)/movemail.exe $(BLD)/ebrowse.exe\
31542918 22 $(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe $(BLD)/profile.exe
7bbaaedd 23
d67a9a85 24.PHONY: make-docfile
7bbaaedd 25
3fbc4b54 26LOCAL_FLAGS = -DNO_LDAV=1 -DNO_ARCHIVES=1 -I../lib \
8c9afb46 27 -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS)
7bbaaedd 28
ad456bcb 29LIBS = $(BASE_LIBS) $(ADVAPI32)
7bbaaedd 30
d67a9a85
EZ
31# The following target is used by makefile.w32-in files in other directories.
32make-docfile: $(BLD)/make-docfile.exe
33
7bbaaedd
AI
34$(BLD)/make-docfile.exe: $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O)
35 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O) $(LIBS)
36$(BLD)/hexl.exe: $(BLD)/hexl.$(O)
37 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS)
9781fb53
EZ
38$(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
39 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/test-distrib.$(O) $(LIBS)
65e46515 40 "$(BLD)/test-distrib.exe" "$(LIB_SRC)/testfile"
7bbaaedd 41
7bbaaedd
AI
42MOVEMAILOBJS = $(BLD)/movemail.$(O) \
43 $(BLD)/pop.$(O) \
f915f0f7
EZ
44 ../lib/$(BLD)/libgnu.$(A) \
45 $(BLD)/ntlib.$(O)
7bbaaedd 46
f915f0f7 47$(BLD)/movemail.exe: $(MOVEMAILOBJS) ../lib/getopt.h
7bbaaedd
AI
48# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
49 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS)
50
70b0d280 51ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR
d20f2a6a 52ECLIENTOBJS = $(BLD)/emacsclient.$(O) \
f915f0f7
EZ
53 $(BLD)/ntlib.$(O) \
54 ../lib/$(BLD)/libgnu.$(A)
4429f88c 55CLIENTRES = ../nt/$(BLD)/emacsclient.res
4d91c8f9 56
4429f88c
JR
57$(CLIENTRES): ../nt/emacsclient.rc
58 @echo Emacsclient resource file must be built from nt directory
59 @exit -1
d20f2a6a
JB
60
61$(BLD)/emacsclient.exe: $(ECLIENTOBJS)
62# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
2e2d2377 63 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS)
d20f2a6a 64
4429f88c 65$(BLD)/emacsclientw.exe: $(ECLIENTOBJS) $(CLIENTRES)
ba2d3968 66# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
06523364 67 $(LINK) $(LINK_OUT)$@ $(CLIENTRES) $(MWINDOWS) $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS)
ba2d3968 68
70b0d280 69$(BLD)/emacsclient.$(O): emacsclient.c
8357b759 70 $(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c
d20f2a6a 71
7bbaaedd 72ETAGSOBJ = $(BLD)/etags.$(O) \
f915f0f7 73 ../lib/$(BLD)/libgnu.$(A) \
7bbaaedd
AI
74 $(BLD)/ntlib.$(O) \
75 $(BLD)/regex.$(O)
76
77$(BLD)/etags.exe: $(ETAGSOBJ)
78 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
79
80
d19249e7 81EBROWSEOBJ = $(BLD)/ebrowse.$(O) \
f915f0f7 82 ../lib/$(BLD)/libgnu.$(A) \
ba2d3968 83 $(BLD)/ntlib.$(O)
d19249e7
JR
84
85$(BLD)/ebrowse.exe: $(EBROWSEOBJ)
88257bc8 86 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(EBROWSEOBJ) $(LIBS)
d19249e7 87
7bbaaedd
AI
88$(BLD)/regex.$(O): ../src/regex.c ../src/regex.h ../src/config.h
89 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
90 ../src/regex.c $(CC_OUT)$@
91
d9f1f55e 92ETAGS_CFLAGS = -DHAVE_GETCWD -DEMACS_NAME="\"GNU Emacs\""
7bbaaedd
AI
93$(BLD)/etags.$(O): etags.c
94 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) $(CC_OUT)$@ etags.c
95
96CTAGSOBJ = $(BLD)/ctags.$(O) \
f915f0f7 97 ../lib/$(BLD)/libgnu.$(A) \
7bbaaedd
AI
98 $(BLD)/ntlib.$(O) \
99 $(BLD)/regex.$(O)
100
101$(BLD)/ctags.exe: $(CTAGSOBJ)
102 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
103
104ctags.c: etags.c
105 - $(DEL) ctags.c
106 $(CP) etags.c ctags.c
107
b95b7254 108CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
7bbaaedd
AI
109$(BLD)/ctags.$(O): ctags.c
110 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c
111
31542918
JB
112PROFILEOBJS = $(BLD)/profile.$(O) \
113 ../lib/$(BLD)/libgnu.$(A) \
114 $(BLD)/ntlib.$(O)
115$(BLD)/profile.exe: $(PROFILEOBJS)
116 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(PROFILEOBJS) $(LIBS)
117
7bbaaedd 118#
3cf5c994
JD
119# From ..\src\Makefile.in
120# It doesn't matter if the real name is *.obj for the files in this list,
121# make-docfile blindly replaces .o with .c anyway. Keep .o in this list
122# as it is required by code in doc.c.
7bbaaedd 123#
f23d76bd 124obj = dosfns.o msdos.o \
eccfc782 125 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
2b8c9064
EZ
126 fontset.o menu.o dbusbind.o cygw32.o \
127 nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
128 w32.o w32console.o w32fns.o w32heap.o w32inevt.o w32notify.o \
3cf5c994 129 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o \
2b8c9064
EZ
130 w16select.o widget.o xfont.o ftfont.o xftfont.o ftxfont.o gtkutil.o \
131 xsettings.o xgselect.o termcap.o \
477f1e50 132 font.o w32font.o w32uniscribe.o w32notify.o \
994a7c3b 133 dispnew.o frame.o scroll.o xdisp.o window.o bidi.o \
eccfc782
JR
134 charset.o coding.o category.o ccl.o character.o chartab.o \
135 cm.o term.o terminal.o xfaces.o \
3cf5c994
JD
136 emacs.o keyboard.o macros.o keymap.o sysdep.o \
137 buffer.o filelock.o insdel.o marker.o \
602a5739 138 minibuf.o fileio.o dired.o \
3cf5c994
JD
139 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
140 alloc.o data.o doc.o editfns.o callint.o \
141 eval.o floatfns.o fns.o print.o lread.o \
a2666217 142 syntax.o bytecode.o \
994a7c3b 143 process.o callproc.o unexw32.o \
3cf5c994 144 region-cache.o sound.o atimer.o \
418401a5 145 doprnt.o intervals.o textprop.o composite.o \
6a586b7f 146 gnutls.o xml.o profiler.o
3cf5c994 147
7bbaaedd
AI
148#
149# These are the lisp files that are loaded up in loadup.el
150#
151lispsource = ../lisp/
152
a40c6a08
JR
153MOUSE_SUPPORT = \
154 $(lispsource)select.elc \
155 $(lispsource)scroll-bar.elc \
79d48c1a 156 $(lispsource)mouse.elc
a40c6a08
JR
157WINNT_SUPPORT = \
158 $(lispsource)ls-lisp.elc \
159 $(lispsource)disp-table.elc \
160 $(lispsource)w32-fns.elc \
161 $(lispsource)dos-w32.elc \
162 $(lispsource)w32-vars.elc \
f2d6b714 163 $(lispsource)term/common-win.elc \
a40c6a08 164 $(lispsource)term/w32-win.elc
a40c6a08
JR
165TOOLTIP_SUPPORT = $(lispsource)tooltip.elc
166WINDOW_SUPPORT = \
167 $(lispsource)fringe.elc \
168 $(lispsource)image.elc \
169 $(lispsource)international/fontset.elc \
170 $(lispsource)dnd.elc \
171 $(lispsource)tool-bar.elc \
172 $(lispsource)mwheel.elc
7bbaaedd 173
79d48c1a
JR
174# lisp files that are loaded up on other platforms
175OTHER_PLATFORM_SUPPORT = \
176 $(lispsource)dos-fns.elc \
177 $(lispsource)dos-vars.elc \
03dcfe01
CY
178 $(lispsource)term/internal.elc \
179 $(lispsource)term/pc-win.elc \
79d48c1a 180 $(lispsource)x-dnd.elc \
614bd9cf 181 $(lispsource)term/x-win.elc \
42d3cab7 182 $(lispsource)term/ns-win.elc
79d48c1a
JR
183
184
83a9c0b2 185lisp1= \
7f379e5b
JR
186 $(lispsource)abbrev.elc \
187 $(lispsource)buff-menu.elc \
e63e8d3e 188 $(lispsource)button.elc \
8dc48ef0 189 $(lispsource)emacs-lisp/byte-run.elc \
0c55bf82 190 $(lispsource)composite.elc \
98d926f2 191 $(lispsource)cus-face.elc \
7f379e5b
JR
192 $(lispsource)cus-start.elc \
193 $(lispsource)custom.elc \
dd87b4cc 194 $(lispsource)emacs-lisp/backquote.elc \
7f379e5b
JR
195 $(lispsource)emacs-lisp/lisp-mode.elc \
196 $(lispsource)emacs-lisp/lisp.elc \
a40c6a08 197 $(lispsource)env.elc \
98d926f2
EZ
198 $(lispsource)faces.elc \
199 $(lispsource)files.elc \
98d926f2 200 $(lispsource)format.elc \
a40c6a08
JR
201 $(lispsource)facemenu.elc \
202 $(MOUSE_SUPPORT) \
203 $(lispsource)emacs-lisp/float-sup.elc \
8dc48ef0 204 $(lispsource)frame.elc \
7f379e5b
JR
205 $(lispsource)help.elc \
206 $(lispsource)indent.elc \
207 $(lispsource)isearch.elc \
98d926f2 208 $(lispsource)rfn-eshadow.elc \
7bbaaedd
AI
209 $(lispsource)loadup.el \
210 $(lispsource)loaddefs.el \
7f379e5b 211 $(lispsource)bindings.elc \
8dc48ef0 212 $(lispsource)emacs-lisp/map-ynp.elc \
a40c6a08 213 $(lispsource)menu-bar.elc \
7f379e5b 214 $(lispsource)international/mule.elc \
2068905b 215 $(lispsource)international/mule-conf.elc \
7f379e5b
JR
216 $(lispsource)international/mule-cmds.elc \
217 $(lispsource)international/characters.elc \
a40c6a08 218 $(lispsource)international/charprop.el \
83a9c0b2
JR
219 $(lispsource)case-table.elc
220
221lisp2 = \
2068905b
EZ
222 $(lispsource)language/chinese.elc \
223 $(lispsource)language/cyrillic.elc \
224 $(lispsource)language/indian.elc \
225 $(lispsource)language/sinhala.elc \
226 $(lispsource)language/english.elc \
7f379e5b
JR
227 $(lispsource)language/ethiopic.elc \
228 $(lispsource)language/european.elc \
2068905b
EZ
229 $(lispsource)language/czech.elc \
230 $(lispsource)language/slovak.elc \
231 $(lispsource)language/romanian.elc \
232 $(lispsource)language/greek.elc \
f09e4c6b 233 $(lispsource)language/hebrew.elc \
2068905b 234 $(lispsource)language/japanese.elc \
4c77e620
EZ
235 $(lispsource)international/cp51932.el \
236 $(lispsource)international/eucjp-ms.el \
2068905b
EZ
237 $(lispsource)language/korean.elc \
238 $(lispsource)language/lao.elc \
239 $(lispsource)language/cham.elc \
240 $(lispsource)language/tai-viet.elc \
241 $(lispsource)language/thai.elc \
7f379e5b 242 $(lispsource)language/tibetan.elc \
2068905b
EZ
243 $(lispsource)language/vietnamese.elc \
244 $(lispsource)language/misc-lang.elc \
245 $(lispsource)language/utf-8-lang.elc \
246 $(lispsource)language/georgian.elc \
247 $(lispsource)language/khmer.elc \
248 $(lispsource)language/burmese.elc \
7f379e5b
JR
249 $(lispsource)register.elc \
250 $(lispsource)replace.elc \
251 $(lispsource)simple.elc \
01b996ad 252 $(lispsource)minibuffer.elc \
7f379e5b
JR
253 $(lispsource)startup.elc \
254 $(lispsource)subr.elc \
255 $(lispsource)term/tty-colors.elc \
7a8940da 256 $(lispsource)font-core.elc \
98d926f2
EZ
257 $(lispsource)emacs-lisp/syntax.elc \
258 $(lispsource)font-lock.elc \
259 $(lispsource)jit-lock.elc \
7f379e5b
JR
260 $(lispsource)textmodes/fill.elc \
261 $(lispsource)textmodes/page.elc \
262 $(lispsource)textmodes/paragraphs.elc \
263 $(lispsource)textmodes/text-mode.elc \
98d926f2 264 $(lispsource)emacs-lisp/timer.elc \
98d926f2 265 $(lispsource)jka-cmpr-hook.elc \
5fee75d4
JB
266 $(lispsource)vc/vc-hooks.elc \
267 $(lispsource)vc/ediff-hook.elc \
86914123 268 $(lispsource)epa-hook.elc \
a40c6a08 269 $(TOOLTIP_SUPPORT) \
7bbaaedd 270 $(WINNT_SUPPORT) \
a40c6a08 271 $(WINDOW_SUPPORT) \
7f379e5b
JR
272 $(lispsource)widget.elc \
273 $(lispsource)window.elc \
2068905b 274 $(lispsource)version.elc
7bbaaedd 275
3b57ab8f
EZ
276# This is needed the first time we build the tree, since temacs.exe
277# does not exist yet, and the DOC rule needs it to rebuild DOC whenever
278# Emacs is rebuilt.
279../src/$(BLD)/temacs.exe:
280 - mkdir "../src/$(OBJDIR)"
281 - mkdir "../src/$(BLD)"
282 @echo temacs > temacs.exe
283 $(CP) temacs.exe ../src/$(BLD)
284 - $(DEL) temacs.exe
7bbaaedd 285
52402e4f 286DOC = DOC
79d48c1a 287$(DOC): stamp_BLD $(BLD)/make-docfile.exe ../src/$(BLD)/temacs.exe $(lisp1) $(lisp2) $(OTHER_PLATFORM_SUPPORT)
7bbaaedd 288 - $(DEL) $(DOC)
cf6d30d7 289 "$(THISDIR)/$(BLD)/make-docfile" -o $(DOC) -d ../src $(obj)
83a9c0b2
JR
290 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp1)
291 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp2)
79d48c1a 292 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(OTHER_PLATFORM_SUPPORT)
7bbaaedd
AI
293 $(CP) $(DOC) ../etc/DOC-X
294 - mkdir "../src/$(OBJDIR)"
295 - mkdir "../src/$(OBJDIR)/etc"
296 $(CP) $(DOC) ../src/$(OBJDIR)/etc/DOC-X
297
298{$(BLD)}.$(O){$(BLD)}.exe:
299 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $*.$(O) $(LIBS)
300
301#
302# Build the executables
303#
d67a9a85 304all: $(ALL) $(DOC)
7bbaaedd
AI
305
306#
307# Assuming INSTALL_DIR is defined, build and install emacs in it.
308#
309INSTALL_FILES = $(ALL)
310install: $(INSTALL_FILES)
311 - mkdir "$(INSTALL_DIR)/bin"
312 $(CP) $(BLD)/etags.exe $(INSTALL_DIR)/bin
88257bc8 313 $(CP) $(BLD)/ebrowse.exe $(INSTALL_DIR)/bin
7bbaaedd
AI
314 $(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin
315 $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin
316 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin
d20f2a6a 317 $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin
ba2d3968 318 $(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin
31542918 319 $(CP) $(BLD)/profile.exe $(INSTALL_DIR)/bin
7bbaaedd
AI
320 - mkdir "$(INSTALL_DIR)/etc"
321 $(CP) $(DOC) $(INSTALL_DIR)/etc
322
323#
324# Maintenance
52402e4f 325#
9724908a
EZ
326# We used to delete *~ here, but that might inadvertently remove
327# precious files if it happens to match their short 8+3 aliases.
7bbaaedd 328clean:
9724908a 329 - $(DEL) DOC* $(COMPILER_TEMP_FILES)
7bbaaedd
AI
330 - $(DEL) ctags.c
331 - $(DEL_TREE) $(OBJDIR)
e313b518 332 - $(DEL) stamp_BLD
7bbaaedd 333
6948400c
JR
334distclean: cleanall
335 - $(DEL) TAGS
336 - $(DEL) Makefile
337
338maintainer-clean: distclean
339
7bbaaedd
AI
340cleanall: clean
341 - $(DEL_TREE) obj
342 - $(DEL_TREE) obj-spd
343 - $(DEL_TREE) oo
344 - $(DEL_TREE) oo-spd
345
346#
347# Headers we would preprocess if we could.
348#
349../src/config.h: ../nt/$(CONFIG_H)
a69edb8a 350 $(DEL) $@
70846e2a 351 echo $(CONFIG_H) has changed. Re-run configure.bat.
df1b2142
JR
352 exit -1
353
73077a9a
EZ
354### TAGS ###
355
73077a9a
EZ
356TAGS: $(BLD)/etags.exe *.c *.h
357 $(BLD)/etags.exe *.c *.h
358
7bbaaedd
AI
359### DEPENDENCIES ###
360
361EMACS_ROOT = ..
65e46515
JB
362LIB_SRC = .
363SRC = $(EMACS_ROOT)/src
364NT_INC = $(EMACS_ROOT)/nt/inc
365GNU_LIB = $(EMACS_ROOT)/lib
366
837b365b 367MS_W32_H = $(NT_INC)/ms-w32.h \
65e46515 368 $(NT_INC)/sys/stat.h
552a99b4 369CONF_POST_H = $(SRC)/conf_post.h \
65e46515 370 $(MS_W32_H)
552a99b4
JB
371CONFIG_H = $(SRC)/config.h \
372 $(CONF_POST_H)
65e46515
JB
373INTTYPES_H = $(NT_INC)/inttypes.h \
374 $(NT_INC)/stdint.h
375NTLIB_H = $(LIB_SRC)/ntlib.h \
376 $(NT_INC)/pwd.h
377SYSTIME_H = $(SRC)/systime.h \
378 $(NT_INC)/sys/time.h \
379 $(GNU_LIB)/timespec.h
a75ce9d3
JB
380SYSWAIT_H = $(SRC)/syswait.h \
381 $(NT_INC)/sys/wait.h
7bbaaedd 382
7bbaaedd 383$(BLD)/ctags.$(O) : \
65e46515
JB
384 $(LIB_SRC)/ctags.c \
385 $(SRC)/regex.h \
386 $(NT_INC)/sys/stat.h \
387 $(NT_INC)/unistd.h \
388 $(GNU_LIB)/c-strcase.h \
389 $(GNU_LIB)/getopt.h \
390 $(CONFIG_H)
7bbaaedd 391
b97decf2 392$(BLD)/ebrowse.$(O) : \
65e46515
JB
393 $(LIB_SRC)/ebrowse.c \
394 $(GNU_LIB)/getopt.h \
395 $(GNU_LIB)/min-max.h \
396 $(CONFIG_H)
b97decf2 397
7bbaaedd 398$(BLD)/emacsclient.$(O) : \
65e46515
JB
399 $(LIB_SRC)/emacsclient.c \
400 $(NT_INC)/pwd.h \
401 $(NT_INC)/sys/stat.h \
402 $(NT_INC)/unistd.h \
403 $(GNU_LIB)/getopt.h \
404 $(CONFIG_H)
7bbaaedd 405
7bbaaedd 406$(BLD)/etags.$(O) : \
65e46515
JB
407 $(LIB_SRC)/etags.c \
408 $(SRC)/regex.h \
409 $(NT_INC)/sys/stat.h \
410 $(NT_INC)/unistd.h \
411 $(GNU_LIB)/c-strcase.h \
412 $(GNU_LIB)/getopt.h \
413 $(CONFIG_H)
7bbaaedd 414
7bbaaedd 415$(BLD)/hexl.$(O) : \
65e46515
JB
416 $(LIB_SRC)/hexl.c \
417 $(CONFIG_H)
7bbaaedd 418
7bbaaedd 419$(BLD)/make-docfile.$(O) : \
65e46515
JB
420 $(LIB_SRC)/make-docfile.c \
421 $(NT_INC)/unistd.h \
422 $(CONFIG_H)
7bbaaedd 423
7bbaaedd 424$(BLD)/movemail.$(O) : \
65e46515
JB
425 $(LIB_SRC)/movemail.c \
426 $(LIB_SRC)/pop.h \
65e46515
JB
427 $(NT_INC)/pwd.h \
428 $(NT_INC)/sys/file.h \
429 $(NT_INC)/sys/stat.h \
430 $(NT_INC)/unistd.h \
431 $(GNU_LIB)/getopt.h \
432 $(CONFIG_H) \
a75ce9d3
JB
433 $(NTLIB_H) \
434 $(SYSWAIT_H)
7bbaaedd
AI
435
436$(BLD)/ntlib.$(O) : \
65e46515
JB
437 $(LIB_SRC)/ntlib.c \
438 $(NT_INC)/sys/stat.h \
439 $(NTLIB_H)
7bbaaedd
AI
440
441$(BLD)/pop.$(O) : \
65e46515
JB
442 $(LIB_SRC)/pop.c \
443 $(LIB_SRC)/pop.h \
444 $(NT_INC)/netdb.h \
445 $(NT_INC)/pwd.h \
446 $(NT_INC)/unistd.h \
447 $(GNU_LIB)/min-max.h \
448 $(CONFIG_H) \
449 $(NTLIB_H)
7bbaaedd
AI
450
451$(BLD)/profile.$(O) : \
65e46515
JB
452 $(LIB_SRC)/profile.c \
453 $(GNU_LIB)/intprops.h \
454 $(CONFIG_H) \
455 $(INTTYPES_H) \
456 $(SYSTIME_H)
457
458$(BLD)/regex.$(O) : \
459 $(SRC)/regex.c \
460 $(SRC)/regex.h \
9851e4a5 461 $(NT_INC)/stdbool.h \
65e46515
JB
462 $(NT_INC)/unistd.h \
463 $(CONFIG_H)
7bbaaedd 464
7bbaaedd 465$(BLD)/test-distrib.$(O) : \
65e46515
JB
466 $(LIB_SRC)/test-distrib.c \
467 $(NT_INC)/unistd.h \
468 $(CONFIG_H)
7bbaaedd 469
1a8a626d
EZ
470# The following dependencies are for supporting parallel builds, where
471# we must make sure $(BLD) exists before any compilation starts.
472#
c136e5cd 473$(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O): stamp_BLD
1a8a626d 474
f915f0f7 475$(BLD)/test-distrib.$(O) $(MOVEMAILOBJS): stamp_BLD
1a8a626d
EZ
476
477$(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O): stamp_BLD
478
8519232d 479$(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O) $(BLD)/profile.$(O): stamp_BLD