1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
2 # Copyright (C) 2000-2011 Free Software Foundation, Inc.
4 # This file is part of GNU Emacs.
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.
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.
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/>.
24 # Set EMACSLOADPATH correctly (in case already defined in environment).
25 EMACSLOADPATH=$(CURDIR)/../lisp
28 # HAVE_CONFIG_H is required by some generic gnu sources stuck into
29 # the emacs source tree.
31 LOCAL_FLAGS = -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
34 EMACS = $(BLD)/emacs.exe
35 TEMACS = $(BLD)/temacs.exe
36 TEMACS_TMP = $(BLD)/temacs.bin
37 TLIB0 = $(BLD)/temacs0.$(A)
38 TLIB1 = $(BLD)/temacs1.$(A)
39 TLIB2 = $(BLD)/temacs2.$(A)
40 TOBJ = $(BLD)/firstfile.$(O)
41 TRES = $(BLD)/emacs.res
42 TLASTLIB = $(BLD)/lastfile.$(A)
43 GNULIB = ../lib/$(BLD)/libgnu.$(A)
45 DOC = $(OBJDIR)/etc/DOC-X
47 FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)
50 # Split up the objects into two sets so that we don't run out of
51 # command line space when we link them into a library.
53 # Put emacs.$(O) in a separate lib, since we need to have firstfile.$(O)
54 # as the "main" object file when linking.
56 OBJ0 = $(BLD)/emacs.$(O)
58 OBJ1 = $(BLD)/alloc.$(O) \
61 $(BLD)/bytecode.$(O) \
63 $(BLD)/callproc.$(O) \
64 $(BLD)/casefiddle.$(O) \
74 $(BLD)/filelock.$(O) \
75 $(BLD)/filemode.$(O) \
79 $(BLD)/keyboard.$(O) \
87 $(BLD)/w32inevt.$(O) \
89 $(BLD)/w32console.$(O) \
98 OBJ2 = $(BLD)/sysdep.$(O) \
102 $(BLD)/unexw32.$(O) \
105 $(BLD)/casetab.$(O) \
106 $(BLD)/floatfns.$(O) \
108 $(BLD)/gmalloc.$(O) \
109 $(BLD)/intervals.$(O) \
110 $(BLD)/composite.$(O) \
112 $(BLD)/textprop.$(O) \
113 $(BLD)/vm-limit.$(O) \
114 $(BLD)/region-cache.$(O) \
116 $(BLD)/charset.$(O) \
117 $(BLD)/character.$(O) \
118 $(BLD)/chartab.$(O) \
120 $(BLD)/category.$(O) \
123 $(BLD)/fontset.$(O) \
126 $(BLD)/terminal.$(O) \
128 $(BLD)/w32term.$(O) \
129 $(BLD)/w32xfns.$(O) \
132 $(BLD)/w32select.$(O) \
133 $(BLD)/w32menu.$(O) \
135 $(BLD)/w32font.$(O) \
136 $(BLD)/w32uniscribe.$(O)
157 # Build the executable and dump it.
162 # The dumped executable
164 emacs: stamp_BLD $(EMACS)
165 $(EMACS): $(DOC) $(TEMACS)
166 "$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup dump
167 -"$(THISDIR)/$(BLD)/emacs.exe" -batch -f list-load-path-shadows
170 # The undumped executable
171 # Note the extra post-link step to insert a static preload heap section.
172 # If preload runs out of memory, increase the last argument to addsection
173 # (it is the preload heap size in MB).
175 temacs: stamp_BLD $(TEMACS)
176 $(TEMACS): $(TLIB0) $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) \
177 ../nt/$(BLD)/addsection.exe $(GNULIB)
178 $(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
179 "../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 21
181 # These omit firstfile.${O}, but there's no documentation in there
183 buildobj.h: $(SRC)/makefile.w32-in
184 $(MAKE) $(MFLAGS) make-buildobj-$(SHELLTYPE)
186 # Cannot have blanks between the backslash and the redirection
187 # characters, because CMD's `echo' will put them in buildobj.h.
189 echo #define BUILDOBJ ^"\> buildobj.h
190 echo $(OBJ0) \>> buildobj.h
191 echo $(OBJ1) \>> buildobj.h
192 echo $(OBJ2) \>> buildobj.h
196 # The above line is here to countermand the single quote
197 # on the last "echo" command above, wrt font-lock.
199 echo '#define BUILDOBJ $(DQUOTE)\' > buildobj.h
200 echo $(OBJ0) '\' >> buildobj.h
201 echo $(OBJ1) '\' >> buildobj.h
202 echo $(OBJ2) '\' >> buildobj.h
203 echo '$(DQUOTE)' >> buildobj.h
205 GLOBAL_SOURCES = dosfns.c msdos.c \
206 xterm.c xfns.c xmenu.c xselect.c xrdb.c xsmfns.c fringe.c image.c \
207 fontset.c menu.c dbusbind.c \
208 w32.c w32console.c w32fns.c w32heap.c w32inevt.c \
209 w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c \
210 font.c w32font.c w32uniscribe.c \
211 dispnew.c frame.c scroll.c xdisp.c window.c bidi.c \
212 charset.c coding.c category.c ccl.c character.c chartab.c \
213 cm.c term.c terminal.c xfaces.c \
214 emacs.c keyboard.c macros.c keymap.c sysdep.c \
215 buffer.c filelock.c insdel.c marker.c \
216 minibuf.c fileio.c dired.c filemode.c \
217 cmds.c casetab.c casefiddle.c indent.c search.c regex.c undo.c \
218 alloc.c data.c doc.c editfns.c callint.c \
219 eval.c floatfns.c fns.c print.c lread.c \
220 syntax.c bytecode.c \
221 process.c callproc.c unexw32.c \
222 region-cache.c sound.c atimer.c \
223 doprnt.c intervals.c textprop.c composite.c
224 SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
225 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
226 obj = $(GLOBAL_SOURCES:.c=.o)
230 gl-stamp: ../lib-src/$(BLD)/make-docfile.exe $(GLOBAL_SOURCES)
232 "../lib-src/$(BLD)/make-docfile" -d . -g $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
233 cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
237 bootstrap: bootstrap-emacs
240 # Build a temacs with a sufficiently large PURESIZE to load the
241 # Lisp files from loadup.el in source form.
243 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
244 # this can break with GNU Make 3.81 and later if sh.exe is used.
246 $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
249 # Dump an Emacs executable named bootstrap-emacs containing the
250 # files from loadup.el in source form.
252 bootstrap-emacs: bootstrap-temacs
253 "$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup bootstrap
255 $(CP) $(EMACS) ../bin
258 # Force recompile of files that depend on PURESIZE
261 - $(DEL) $(BLD)/alloc.$(O)
262 - $(DEL) $(BLD)/data.$(O)
263 - $(DEL) $(BLD)/intervals.$(O)
264 - $(DEL) $(BLD)/keyboard.$(O)
265 - $(DEL) $(BLD)/keymap.$(O)
268 # The resource file. NT 3.10 requires the use of cvtres; even though
269 # it is not necessary on later versions, it is still ok to use it.
271 $(TRES): ../nt/emacs.rc stamp_BLD
272 $(RC) $(RC_INCLUDE)../nt $(RC_OUT)$@ ../nt/emacs.rc
275 # Build the library. Split up the build into two phases...otherwise we
276 # run out of command line space.
280 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
283 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
286 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
289 # Place lastfile.$(O) in its own library so that it can be loaded after
290 # the source libraries but before any system libraries. Doing so defines
291 # the end of Emacs' data section portably across compilers and systems.
293 $(TLASTLIB): $(BLD)/lastfile.$(O)
295 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
298 # Assuming INSTALL_DIR is defined, build and install emacs in it.
301 - mkdir "$(INSTALL_DIR)/bin"
302 $(CP) $(EMACS) $(INSTALL_DIR)/bin
307 # We used to delete *~, s/*~, m/*~ here, but that might inadvertently
308 # remove precious files if it happens to match their short 8+3 aliases.
310 - $(DEL) "s/*.h~" "m/*.h~"
311 - $(DEL) $(COMPILER_TEMP_FILES)
312 - $(DEL_TREE) $(OBJDIR)
313 - $(DEL) stamp_BLD gl-stamp globals.h
317 - $(DEL) config.h epaths.h Makefile
319 maintainer-clean: distclean
324 - $(DEL_TREE) obj-spd
328 ## Arrange to make a tags table TAGS-LISP for ../lisp,
329 ## plus TAGS for the C files, which includes ../lisp/TAGS by reference.
331 ## This works only with GNU Make.
333 TAGS: $(OBJ0) $(OBJ1) $(OBJ2)
334 $(MAKE) $(MFLAGS) TAGS-$(MAKETYPE)
336 TAGS-LISP: $(OBJ0) $(OBJ1) $(OBJ2)
337 $(MAKE) $(MFLAGS) TAGS-LISP-$(MAKETYPE)
340 ../lib-src/$(BLD)/etags.exe --include=TAGS-LISP --include=../nt/TAGS \
341 --regex=@../nt/emacs-src.tags \
342 $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ0))
343 ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
344 $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ1))
345 ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
346 $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ2)) \
350 echo This target is not supported with NMake
355 $(MAKE) $(MFLAGS) -C ../lisp TAGS-LISP DEST=../src
358 echo This target is not supported with NMake
362 $(MAKE) $(MFLAGS) nt-TAGS-$(MAKETYPE)
365 $(MAKE) $(MFLAGS) -C ../nt TAGS
368 echo This target is not supported with NMake
371 full-tags: TAGS TAGS-LISP ../nt/TAGS
377 CONFIG_H = $(EMACS_ROOT)/src/s/ms-w32.h \
378 $(EMACS_ROOT)/src/m/intel386.h \
379 $(EMACS_ROOT)/src/config.h \
380 $(EMACS_ROOT)/nt/inc/sys/stat.h
381 LISP_H = $(SRC)/lisp.h $(SRC)/globals.h
382 PROCESS_H = $(SRC)/process.h $(SRC)/gnutls.h
384 $(BLD)/alloc.$(O) : \
387 $(EMACS_ROOT)/nt/inc/unistd.h \
388 $(EMACS_ROOT)/nt/inc/sys/time.h \
391 $(SRC)/blockinput.h \
396 $(SRC)/dispextern.h \
409 $(BLD)/atimer.$(O) : \
412 $(EMACS_ROOT)/nt/inc/unistd.h \
413 $(EMACS_ROOT)/nt/inc/sys/time.h \
416 $(SRC)/blockinput.h \
424 $(SRC)/bidimirror.h \
428 $(SRC)/dispextern.h \
431 $(BLD)/buffer.$(O) : \
434 $(EMACS_ROOT)/nt/inc/unistd.h \
435 $(EMACS_ROOT)/nt/inc/sys/param.h \
436 $(EMACS_ROOT)/nt/inc/sys/time.h \
439 $(SRC)/blockinput.h \
445 $(SRC)/dispextern.h \
451 $(SRC)/region-cache.h \
456 $(BLD)/bytecode.$(O) : \
462 $(SRC)/dispextern.h \
467 $(BLD)/callint.$(O) : \
470 $(EMACS_ROOT)/nt/inc/sys/time.h \
476 $(SRC)/dispextern.h \
483 $(BLD)/callproc.$(O) : \
486 $(EMACS_ROOT)/nt/inc/unistd.h \
487 $(EMACS_ROOT)/nt/inc/sys/file.h \
488 $(EMACS_ROOT)/nt/inc/sys/time.h \
491 $(SRC)/blockinput.h \
498 $(SRC)/dispextern.h \
509 $(BLD)/casefiddle.$(O) : \
510 $(SRC)/casefiddle.c \
520 $(BLD)/casetab.$(O) : \
527 $(BLD)/category.$(O) : \
547 $(BLD)/character.$(O) : \
557 $(BLD)/charset.$(O) : \
560 $(EMACS_ROOT)/nt/inc/unistd.h \
569 $(BLD)/chartab.$(O) : \
580 $(EMACS_ROOT)/nt/inc/sys/time.h \
587 $(SRC)/dispextern.h \
596 $(BLD)/coding.$(O) : \
606 $(SRC)/dispextern.h \
612 $(BLD)/composite.$(O) : \
621 $(SRC)/dispextern.h \
632 $(EMACS_ROOT)/nt/inc/sys/time.h \
639 $(SRC)/dispextern.h \
649 $(BLD)/dired.$(O) : \
652 $(EMACS_ROOT)/nt/inc/grp.h \
653 $(EMACS_ROOT)/nt/inc/pwd.h \
654 $(EMACS_ROOT)/nt/inc/unistd.h \
655 $(EMACS_ROOT)/nt/inc/sys/dir.h \
656 $(EMACS_ROOT)/nt/inc/sys/time.h \
659 $(SRC)/blockinput.h \
670 $(BLD)/dispnew.$(O) : \
673 $(EMACS_ROOT)/nt/inc/unistd.h \
674 $(EMACS_ROOT)/nt/inc/sys/time.h \
677 $(SRC)/blockinput.h \
684 $(SRC)/dispextern.h \
704 $(EMACS_ROOT)/nt/inc/unistd.h \
705 $(EMACS_ROOT)/nt/inc/sys/file.h \
706 $(EMACS_ROOT)/nt/inc/sys/time.h \
716 $(BLD)/doprnt.$(O) : \
719 $(EMACS_ROOT)/nt/inc/unistd.h \
723 $(BLD)/editfns.$(O) : \
726 $(EMACS_ROOT)/nt/inc/pwd.h \
727 $(EMACS_ROOT)/nt/inc/unistd.h \
728 $(EMACS_ROOT)/nt/inc/sys/time.h \
729 $(EMACS_ROOT)/lib/strftime.h \
732 $(SRC)/blockinput.h \
737 $(SRC)/dispextern.h \
744 $(BLD)/emacs.$(O) : \
747 $(EMACS_ROOT)/nt/inc/unistd.h \
748 $(EMACS_ROOT)/nt/inc/sys/file.h \
749 $(EMACS_ROOT)/nt/inc/sys/time.h \
752 $(SRC)/blockinput.h \
757 $(SRC)/dispextern.h \
776 $(EMACS_ROOT)/nt/inc/sys/time.h \
779 $(SRC)/blockinput.h \
783 $(SRC)/dispextern.h \
789 $(BLD)/fileio.$(O) : \
792 $(EMACS_ROOT)/nt/inc/pwd.h \
793 $(EMACS_ROOT)/nt/inc/unistd.h \
794 $(EMACS_ROOT)/nt/inc/sys/time.h \
797 $(SRC)/blockinput.h \
803 $(SRC)/dispextern.h \
810 $(BLD)/filelock.$(O) : \
813 $(EMACS_ROOT)/nt/inc/pwd.h \
814 $(EMACS_ROOT)/nt/inc/unistd.h \
815 $(EMACS_ROOT)/nt/inc/sys/file.h \
816 $(EMACS_ROOT)/nt/inc/sys/time.h \
824 $(BLD)/filemode.$(O) : \
828 $(BLD)/firstfile.$(O) : \
832 $(BLD)/floatfns.$(O) : \
841 $(EMACS_ROOT)/nt/inc/langinfo.h \
842 $(EMACS_ROOT)/nt/inc/nl_types.h \
843 $(EMACS_ROOT)/nt/inc/unistd.h \
844 $(EMACS_ROOT)/nt/inc/sys/time.h \
845 $(EMACS_ROOT)/lib/md5.h \
848 $(SRC)/blockinput.h \
854 $(SRC)/dispextern.h \
872 $(SRC)/dispextern.h \
880 $(BLD)/fontset.$(O) : \
883 $(EMACS_ROOT)/nt/inc/sys/time.h \
886 $(SRC)/blockinput.h \
893 $(SRC)/dispextern.h \
905 $(BLD)/frame.$(O) : \
908 $(EMACS_ROOT)/nt/inc/sys/time.h \
911 $(SRC)/blockinput.h \
918 $(SRC)/dispextern.h \
930 $(BLD)/fringe.$(O) : \
933 $(EMACS_ROOT)/nt/inc/sys/time.h \
936 $(SRC)/blockinput.h \
938 $(SRC)/dispextern.h \
945 $(BLD)/gmalloc.$(O) : \
948 $(EMACS_ROOT)/nt/inc/unistd.h \
951 $(BLD)/image.$(O) : \
954 $(EMACS_ROOT)/nt/inc/unistd.h \
955 $(EMACS_ROOT)/nt/inc/sys/time.h \
958 $(SRC)/blockinput.h \
963 $(SRC)/dispextern.h \
973 $(BLD)/indent.$(O) : \
976 $(EMACS_ROOT)/nt/inc/sys/time.h \
983 $(SRC)/dispextern.h \
989 $(SRC)/region-cache.h \
996 $(BLD)/insdel.$(O) : \
999 $(EMACS_ROOT)/nt/inc/sys/time.h \
1002 $(SRC)/blockinput.h \
1004 $(SRC)/character.h \
1005 $(SRC)/composite.h \
1006 $(SRC)/dispextern.h \
1007 $(SRC)/intervals.h \
1008 $(SRC)/region-cache.h \
1013 $(BLD)/intervals.$(O) : \
1014 $(SRC)/intervals.c \
1016 $(EMACS_ROOT)/nt/inc/sys/time.h \
1020 $(SRC)/composite.h \
1021 $(SRC)/dispextern.h \
1022 $(SRC)/intervals.h \
1029 $(BLD)/keyboard.$(O) : \
1032 $(EMACS_ROOT)/nt/inc/unistd.h \
1033 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1034 $(EMACS_ROOT)/nt/inc/sys/time.h \
1037 $(SRC)/blockinput.h \
1039 $(SRC)/character.h \
1042 $(SRC)/composite.h \
1043 $(SRC)/dispextern.h \
1046 $(SRC)/intervals.h \
1053 $(SRC)/syssignal.h \
1056 $(SRC)/termhooks.h \
1062 $(BLD)/keymap.$(O) : \
1065 $(EMACS_ROOT)/nt/inc/sys/time.h \
1068 $(SRC)/blockinput.h \
1070 $(SRC)/character.h \
1074 $(SRC)/composite.h \
1075 $(SRC)/dispextern.h \
1077 $(SRC)/intervals.h \
1082 $(SRC)/termhooks.h \
1086 $(BLD)/lastfile.$(O) : \
1090 $(BLD)/lread.$(O) : \
1093 $(EMACS_ROOT)/nt/inc/unistd.h \
1094 $(EMACS_ROOT)/nt/inc/sys/file.h \
1095 $(EMACS_ROOT)/nt/inc/sys/time.h \
1098 $(SRC)/blockinput.h \
1100 $(SRC)/character.h \
1104 $(SRC)/composite.h \
1105 $(SRC)/dispextern.h \
1108 $(SRC)/intervals.h \
1111 $(SRC)/termhooks.h \
1114 $(BLD)/macros.$(O) : \
1117 $(EMACS_ROOT)/nt/inc/sys/time.h \
1122 $(SRC)/composite.h \
1123 $(SRC)/dispextern.h \
1130 $(BLD)/marker.$(O) : \
1137 $(BLD)/menu.$(O) : \
1140 $(EMACS_ROOT)/nt/inc/sys/time.h \
1143 $(SRC)/blockinput.h \
1145 $(SRC)/composite.h \
1146 $(SRC)/dispextern.h \
1152 $(SRC)/termhooks.h \
1157 $(BLD)/minibuf.$(O) : \
1160 $(EMACS_ROOT)/nt/inc/sys/time.h \
1163 $(SRC)/character.h \
1166 $(SRC)/composite.h \
1167 $(SRC)/dispextern.h \
1169 $(SRC)/intervals.h \
1174 $(SRC)/termhooks.h \
1181 $(EMACS_ROOT)/nt/inc/grp.h \
1182 $(EMACS_ROOT)/nt/inc/pwd.h \
1183 $(EMACS_ROOT)/nt/inc/unistd.h \
1184 $(EMACS_ROOT)/nt/inc/sys/file.h \
1185 $(EMACS_ROOT)/nt/inc/sys/socket.h \
1186 $(EMACS_ROOT)/nt/inc/sys/time.h \
1189 $(SRC)/composite.h \
1190 $(SRC)/dispextern.h \
1198 $(BLD)/w32heap.$(O) : \
1204 $(BLD)/w32inevt.$(O) : \
1207 $(EMACS_ROOT)/nt/inc/sys/time.h \
1210 $(SRC)/blockinput.h \
1212 $(SRC)/composite.h \
1213 $(SRC)/dispextern.h \
1217 $(SRC)/termhooks.h \
1222 $(BLD)/w32proc.$(O) : \
1225 $(EMACS_ROOT)/nt/inc/langinfo.h \
1226 $(EMACS_ROOT)/nt/inc/nl_types.h \
1227 $(EMACS_ROOT)/nt/inc/unistd.h \
1228 $(EMACS_ROOT)/nt/inc/sys/file.h \
1229 $(EMACS_ROOT)/nt/inc/sys/time.h \
1231 $(SRC)/character.h \
1233 $(SRC)/composite.h \
1234 $(SRC)/dispextern.h \
1236 $(SRC)/syssignal.h \
1244 $(BLD)/w32console.$(O) : \
1245 $(SRC)/w32console.c \
1248 $(SRC)/character.h \
1250 $(SRC)/composite.h \
1251 $(SRC)/dispextern.h \
1255 $(SRC)/termhooks.h \
1259 $(BLD)/print.$(O) : \
1262 $(EMACS_ROOT)/nt/inc/unistd.h \
1263 $(EMACS_ROOT)/nt/inc/sys/time.h \
1264 $(EMACS_ROOT)/lib/ftoastr.h \
1265 $(EMACS_ROOT)/lib/intprops.h \
1268 $(SRC)/blockinput.h \
1271 $(SRC)/character.h \
1274 $(SRC)/composite.h \
1275 $(SRC)/dispextern.h \
1278 $(SRC)/intervals.h \
1283 $(SRC)/termhooks.h \
1287 $(BLD)/process.$(O) : \
1290 $(EMACS_ROOT)/nt/inc/netdb.h \
1291 $(EMACS_ROOT)/nt/inc/unistd.h \
1292 $(EMACS_ROOT)/nt/inc/arpa/inet.h \
1293 $(EMACS_ROOT)/nt/inc/netinet/in.h \
1294 $(EMACS_ROOT)/nt/inc/sys/file.h \
1295 $(EMACS_ROOT)/nt/inc/sys/socket.h \
1296 $(EMACS_ROOT)/nt/inc/sys/time.h \
1299 $(SRC)/blockinput.h \
1301 $(SRC)/character.h \
1304 $(SRC)/composite.h \
1305 $(SRC)/dispextern.h \
1309 $(SRC)/sysselect.h \
1310 $(SRC)/syssignal.h \
1314 $(SRC)/termhooks.h \
1320 $(BLD)/ralloc.$(O) : \
1323 $(EMACS_ROOT)/nt/inc/unistd.h \
1324 $(EMACS_ROOT)/nt/inc/sys/time.h \
1327 $(SRC)/blockinput.h \
1328 $(SRC)/getpagesize.h \
1331 $(BLD)/regex.$(O) : \
1337 $(SRC)/character.h \
1341 $(BLD)/region-cache.$(O) : \
1342 $(SRC)/region-cache.c \
1346 $(SRC)/region-cache.h
1348 $(BLD)/scroll.$(O) : \
1351 $(EMACS_ROOT)/nt/inc/sys/time.h \
1354 $(SRC)/composite.h \
1355 $(SRC)/dispextern.h \
1360 $(SRC)/termhooks.h \
1364 $(BLD)/search.$(O) : \
1367 $(EMACS_ROOT)/nt/inc/sys/time.h \
1370 $(SRC)/blockinput.h \
1373 $(SRC)/character.h \
1376 $(SRC)/composite.h \
1377 $(SRC)/dispextern.h \
1378 $(SRC)/intervals.h \
1380 $(SRC)/region-cache.h \
1385 $(BLD)/sound.$(O) : \
1388 $(EMACS_ROOT)/nt/inc/unistd.h \
1389 $(EMACS_ROOT)/nt/inc/sys/time.h \
1392 $(SRC)/dispextern.h \
1393 $(SRC)/syssignal.h \
1397 $(BLD)/syntax.$(O) : \
1403 $(SRC)/character.h \
1405 $(SRC)/composite.h \
1406 $(SRC)/dispextern.h \
1407 $(SRC)/intervals.h \
1413 $(BLD)/sysdep.$(O) : \
1416 $(EMACS_ROOT)/nt/inc/grp.h \
1417 $(EMACS_ROOT)/nt/inc/netdb.h \
1418 $(EMACS_ROOT)/nt/inc/pwd.h \
1419 $(EMACS_ROOT)/nt/inc/unistd.h \
1420 $(EMACS_ROOT)/nt/inc/sys/file.h \
1421 $(EMACS_ROOT)/nt/inc/sys/socket.h \
1422 $(EMACS_ROOT)/nt/inc/sys/time.h \
1423 $(EMACS_ROOT)/lib/ignore-value.h \
1426 $(SRC)/blockinput.h \
1429 $(SRC)/composite.h \
1430 $(SRC)/dispextern.h \
1434 $(SRC)/sysselect.h \
1435 $(SRC)/syssignal.h \
1440 $(SRC)/termhooks.h \
1446 $(BLD)/term.$(O) : \
1449 $(EMACS_ROOT)/nt/inc/unistd.h \
1450 $(EMACS_ROOT)/nt/inc/sys/file.h \
1451 $(EMACS_ROOT)/nt/inc/sys/time.h \
1454 $(SRC)/blockinput.h \
1456 $(SRC)/character.h \
1460 $(SRC)/composite.h \
1461 $(SRC)/dispextern.h \
1464 $(SRC)/intervals.h \
1467 $(SRC)/syssignal.h \
1471 $(SRC)/termhooks.h \
1476 $(BLD)/terminal.$(O) : \
1479 $(EMACS_ROOT)/nt/inc/sys/time.h \
1483 $(SRC)/composite.h \
1484 $(SRC)/dispextern.h \
1489 $(SRC)/termhooks.h \
1492 $(BLD)/textprop.$(O) : \
1497 $(SRC)/composite.h \
1498 $(SRC)/dispextern.h \
1499 $(SRC)/intervals.h \
1503 $(BLD)/tparam.$(O) : \
1508 $(BLD)/undo.$(O) : \
1514 $(SRC)/dispextern.h \
1518 $(BLD)/unexw32.$(O) : \
1523 $(BLD)/vm-limit.$(O) : \
1529 $(BLD)/window.$(O) : \
1532 $(EMACS_ROOT)/nt/inc/sys/time.h \
1535 $(SRC)/blockinput.h \
1539 $(SRC)/composite.h \
1540 $(SRC)/dispextern.h \
1544 $(SRC)/intervals.h \
1549 $(SRC)/termhooks.h \
1554 $(BLD)/xdisp.$(O) : \
1557 $(EMACS_ROOT)/nt/inc/unistd.h \
1558 $(EMACS_ROOT)/nt/inc/sys/time.h \
1561 $(SRC)/blockinput.h \
1564 $(SRC)/character.h \
1568 $(SRC)/composite.h \
1569 $(SRC)/dispextern.h \
1575 $(SRC)/intervals.h \
1580 $(SRC)/region-cache.h \
1583 $(SRC)/termhooks.h \
1589 $(BLD)/xfaces.$(O) : \
1592 $(EMACS_ROOT)/nt/inc/sys/time.h \
1595 $(SRC)/blockinput.h \
1598 $(SRC)/character.h \
1601 $(SRC)/composite.h \
1602 $(SRC)/dispextern.h \
1606 $(SRC)/intervals.h \
1610 $(SRC)/termhooks.h \
1615 $(BLD)/w32fns.$(O) : \
1618 $(EMACS_ROOT)/nt/inc/sys/time.h \
1621 $(SRC)/blockinput.h \
1624 $(SRC)/character.h \
1627 $(SRC)/composite.h \
1628 $(SRC)/dispextern.h \
1633 $(SRC)/intervals.h \
1636 $(SRC)/termhooks.h \
1644 $(BLD)/w32menu.$(O) : \
1647 $(EMACS_ROOT)/nt/inc/sys/time.h \
1650 $(SRC)/blockinput.h \
1652 $(SRC)/character.h \
1655 $(SRC)/composite.h \
1656 $(SRC)/dispextern.h \
1662 $(SRC)/termhooks.h \
1667 $(BLD)/w32term.$(O) : \
1670 $(EMACS_ROOT)/nt/inc/unistd.h \
1671 $(EMACS_ROOT)/nt/inc/sys/time.h \
1674 $(SRC)/blockinput.h \
1677 $(SRC)/character.h \
1680 $(SRC)/composite.h \
1681 $(SRC)/dispextern.h \
1686 $(SRC)/intervals.h \
1693 $(SRC)/termhooks.h \
1701 $(BLD)/w32select.$(O) : \
1702 $(SRC)/w32select.c \
1704 $(EMACS_ROOT)/nt/inc/sys/time.h \
1707 $(SRC)/blockinput.h \
1708 $(SRC)/character.h \
1711 $(SRC)/composite.h \
1718 $(BLD)/w32reg.$(O) : \
1721 $(EMACS_ROOT)/nt/inc/sys/time.h \
1724 $(SRC)/blockinput.h \
1729 $(BLD)/w32xfns.$(O) : \
1732 $(EMACS_ROOT)/nt/inc/sys/time.h \
1735 $(SRC)/blockinput.h \
1738 $(SRC)/composite.h \
1739 $(SRC)/dispextern.h \
1747 $(BLD)/w32font.$(O) : \
1752 $(SRC)/character.h \
1755 $(SRC)/composite.h \
1756 $(SRC)/dispextern.h \
1764 $(BLD)/w32uniscribe.$(O) : \
1765 $(SRC)/w32uniscribe.c \
1769 $(SRC)/character.h \
1771 $(SRC)/composite.h \
1772 $(SRC)/dispextern.h \
1780 # Each object file depends on stamp_BLD, because in parallel builds we must
1781 # make sure $(BLD) exists before starting compilations.
1783 $(OBJ0) $(OBJ1) $(OBJ2) $(BLD)/lastfile.$(O) $(BLD)/firstfile.$(O): stamp_BLD