1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
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, or (at your option)
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.
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
19 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 # Boston, MA 02110-1301, USA.
27 # Set EMACSLOADPATH correctly (in case already defined in environment).
28 EMACSLOADPATH=$(CURDIR)/../lisp
31 # HAVE_CONFIG_H is required by some generic gnu sources stuck into
32 # the emacs source tree.
34 LOCAL_FLAGS = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
36 EMACS = $(BLD)/emacs.exe
37 TEMACS = $(BLD)/temacs.exe
38 TEMACS_TMP = $(BLD)/temacs.bin
39 TLIB0 = $(BLD)/temacs0.$(A)
40 TLIB1 = $(BLD)/temacs1.$(A)
41 TLIBW32 = $(BLD)/temacw32.$(A)
42 TOBJ = $(BLD)/firstfile.$(O)
43 TRES = $(BLD)/emacs.res
44 TLASTLIB = $(BLD)/lastfile.$(A)
46 DOC = $(OBJDIR)/etc/DOC-X
48 FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)
51 # Split up the objects into two sets so that we don't run out of
52 # command line space when we link them into a library.
54 # Put emacs.$(O) in a separate lib, since we need to have firstfile.$(O)
55 # as the "main" object file when linking.
57 OBJ0 = $(BLD)/emacs.$(O)
59 OBJ1 = $(BLD)/alloc.$(O) \
62 $(BLD)/bytecode.$(O) \
64 $(BLD)/callproc.$(O) \
65 $(BLD)/casefiddle.$(O) \
76 $(BLD)/filelock.$(O) \
77 $(BLD)/filemode.$(O) \
81 $(BLD)/keyboard.$(O) \
90 $(BLD)/w32inevt.$(O) \
92 $(BLD)/w32console.$(O) \
102 $(BLD)/termcap.$(O) \
105 $(BLD)/unexw32.$(O) \
108 $(BLD)/casetab.$(O) \
109 $(BLD)/floatfns.$(O) \
111 $(BLD)/gmalloc.$(O) \
112 $(BLD)/intervals.$(O) \
113 $(BLD)/composite.$(O) \
115 $(BLD)/textprop.$(O) \
116 $(BLD)/vm-limit.$(O) \
117 $(BLD)/region-cache.$(O) \
118 $(BLD)/strftime.$(O) \
119 $(BLD)/charset.$(O) \
121 $(BLD)/category.$(O) \
123 $(BLD)/fontset.$(O) \
128 WIN32OBJ = $(BLD)/w32term.$(O) \
129 $(BLD)/w32xfns.$(O) \
132 $(BLD)/w32select.$(O) \
133 $(BLD)/w32menu.$(O) \
154 # Build the executable and dump it.
159 # The dumped executable
161 emacs: stamp_BLD $(EMACS)
162 $(EMACS): $(DOC) $(TEMACS)
163 "$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup dump
164 -"$(THISDIR)/$(BLD)/emacs.exe" -q -batch -f list-load-path-shadows
167 # The undumped executable
168 # Note the extra post-link step to insert a static preload heap section.
169 # If preload runs out of memory, increase the last argument to addsection
170 # (it is the preload heap size in MB).
172 temacs: stamp_BLD $(TEMACS)
173 $(TEMACS): $(TLIB0) $(TLIB1) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES) \
174 ../nt/$(BLD)/addsection.exe
175 $(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
176 "../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 16
177 echo $(OBJ0) > $(BLD)/buildobj.lst
178 echo $(OBJ1) >> $(BLD)/buildobj.lst
179 echo $(WIN32OBJ) >> $(BLD)/buildobj.lst
181 bootstrap: bootstrap-emacs
184 # Build a temacs with a sufficiently large PURESIZE to load the
185 # Lisp files from loadup.el in source form.
187 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
188 # this can break with GNU Make 3.81 and later if sh.exe is used.
190 $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
193 # Dump an Emacs executable named bootstrap-emacs containing the
194 # files from loadup.el in source form.
196 bootstrap-emacs: bootstrap-temacs
197 "$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup bootstrap
199 $(CP) $(EMACS) ../bin
202 # Force recompile of files that depend on PURESIZE
205 - $(DEL) $(BLD)/alloc.$(O)
206 - $(DEL) $(BLD)/data.$(O)
207 - $(DEL) $(BLD)/intervals.$(O)
208 - $(DEL) $(BLD)/keyboard.$(O)
209 - $(DEL) $(BLD)/keymap.$(O)
212 # The resource file. NT 3.10 requires the use of cvtres; even though
213 # it is not necessary on later versions, it is still ok to use it.
215 $(TRES): ../nt/emacs.rc stamp_BLD
216 $(RC) $(RC_INCLUDE)../nt $(RC_OUT)$@ ../nt/emacs.rc
219 # Build the library. Split up the build into two phases...otherwise we
220 # run out of command line space.
224 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
227 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
228 $(TLIBW32): $(WIN32OBJ)
230 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
233 # Place lastfile.$(O) in its own library so that it can be loaded after
234 # the source libraries but before any system libraries. Doing so defines
235 # the end of Emacs' data section portably across compilers and systems.
237 $(TLASTLIB): $(BLD)/lastfile.$(O)
239 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
242 # Assuming INSTALL_DIR is defined, build and install emacs in it.
245 - mkdir "$(INSTALL_DIR)/bin"
246 $(CP) $(EMACS) $(INSTALL_DIR)/bin
251 # We used to delete *~, s/*~, m/*~ here, but that might inadvertently
252 # remove precious files if it happens to match their short 8+3 aliases.
254 - $(DEL) "s/*.h~" "m/*.h~"
255 - $(DEL) $(COMPILER_TEMP_FILES)
256 - $(DEL_TREE) $(OBJDIR)
260 - $(DEL) config.h epaths.h
264 - $(DEL_TREE) obj-spd
273 $(BLD)/alloc.$(O) : \
275 $(EMACS_ROOT)/src/s/ms-w32.h \
276 $(EMACS_ROOT)/src/m/intel386.h \
277 $(EMACS_ROOT)/src/config.h \
278 $(SRC)/blockinput.h \
282 $(SRC)/dispextern.h \
293 $(BLD)/atimer.$(O) : \
295 $(EMACS_ROOT)/src/s/ms-w32.h \
296 $(EMACS_ROOT)/src/m/intel386.h \
297 $(EMACS_ROOT)/src/config.h \
299 $(SRC)/m/intel386.h \
302 $(SRC)/blockinput.h \
306 $(BLD)/buffer.$(O) : \
308 $(EMACS_ROOT)/nt/inc/sys/param.h \
309 $(EMACS_ROOT)/src/s/ms-w32.h \
310 $(EMACS_ROOT)/src/m/intel386.h \
311 $(EMACS_ROOT)/src/config.h \
312 $(SRC)/blockinput.h \
317 $(SRC)/dispextern.h \
323 $(SRC)/region-cache.h \
328 $(BLD)/bytecode.$(O) : \
330 $(EMACS_ROOT)/src/s/ms-w32.h \
331 $(EMACS_ROOT)/src/m/intel386.h \
332 $(EMACS_ROOT)/src/config.h \
338 $(BLD)/callint.$(O) : \
340 $(EMACS_ROOT)/src/s/ms-w32.h \
341 $(EMACS_ROOT)/src/m/intel386.h \
342 $(EMACS_ROOT)/src/config.h \
345 $(SRC)/dispextern.h \
352 $(BLD)/callproc.$(O) : \
354 $(EMACS_ROOT)/src/s/ms-w32.h \
355 $(EMACS_ROOT)/src/m/intel386.h \
356 $(EMACS_ROOT)/src/config.h \
357 $(EMACS_ROOT)/nt/inc/sys/param.h \
358 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
359 $(EMACS_ROOT)/nt/inc/sys/file.h \
374 $(BLD)/casefiddle.$(O) : \
375 $(SRC)/casefiddle.c \
376 $(EMACS_ROOT)/src/s/ms-w32.h \
377 $(EMACS_ROOT)/src/m/intel386.h \
378 $(EMACS_ROOT)/src/config.h \
386 $(BLD)/casetab.$(O) : \
388 $(EMACS_ROOT)/src/s/ms-w32.h \
389 $(EMACS_ROOT)/src/m/intel386.h \
390 $(EMACS_ROOT)/src/config.h \
394 $(BLD)/category.$(O) : \
396 $(EMACS_ROOT)/src/s/ms-w32.h \
397 $(EMACS_ROOT)/src/m/intel386.h \
398 $(EMACS_ROOT)/src/config.h \
406 $(EMACS_ROOT)/src/s/ms-w32.h \
407 $(EMACS_ROOT)/src/m/intel386.h \
408 $(EMACS_ROOT)/src/config.h \
413 $(BLD)/charset.$(O) : \
415 $(EMACS_ROOT)/src/s/ms-w32.h \
416 $(EMACS_ROOT)/src/m/intel386.h \
417 $(EMACS_ROOT)/src/config.h \
427 $(EMACS_ROOT)/src/s/ms-w32.h \
428 $(EMACS_ROOT)/src/m/intel386.h \
429 $(EMACS_ROOT)/src/config.h \
435 $(EMACS_ROOT)/src/s/ms-w32.h \
436 $(EMACS_ROOT)/src/m/intel386.h \
437 $(EMACS_ROOT)/src/config.h \
441 $(SRC)/dispextern.h \
449 $(BLD)/coding.$(O) : \
451 $(EMACS_ROOT)/src/s/ms-w32.h \
452 $(EMACS_ROOT)/src/m/intel386.h \
453 $(EMACS_ROOT)/src/config.h \
459 $(SRC)/dispextern.h \
467 $(BLD)/composite.$(O) : \
469 $(EMACS_ROOT)/src/s/ms-w32.h \
470 $(EMACS_ROOT)/src/m/intel386.h \
471 $(EMACS_ROOT)/src/config.h \
475 $(SRC)/dispextern.h \
482 $(EMACS_ROOT)/src/s/ms-w32.h \
483 $(EMACS_ROOT)/src/m/intel386.h \
484 $(EMACS_ROOT)/src/config.h \
493 $(BLD)/dired.$(O) : \
495 $(EMACS_ROOT)/src/s/ms-w32.h \
496 $(EMACS_ROOT)/src/m/intel386.h \
497 $(EMACS_ROOT)/src/config.h \
507 $(BLD)/dispnew.$(O) : \
509 $(EMACS_ROOT)/src/s/ms-w32.h \
510 $(EMACS_ROOT)/src/m/intel386.h \
511 $(EMACS_ROOT)/src/config.h \
512 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
513 $(EMACS_ROOT)/nt/inc/sys/file.h \
515 $(SRC)/blockinput.h \
521 $(SRC)/dispextern.h \
540 $(EMACS_ROOT)/src/s/ms-w32.h \
541 $(EMACS_ROOT)/src/m/intel386.h \
542 $(EMACS_ROOT)/src/config.h \
543 $(EMACS_ROOT)/nt/inc/sys/file.h \
549 $(BLD)/doprnt.$(O) : \
551 $(EMACS_ROOT)/src/s/ms-w32.h \
552 $(EMACS_ROOT)/src/m/intel386.h \
553 $(EMACS_ROOT)/src/config.h \
556 $(BLD)/editfns.$(O) : \
558 $(EMACS_ROOT)/src/s/ms-w32.h \
559 $(EMACS_ROOT)/src/m/intel386.h \
560 $(EMACS_ROOT)/src/config.h \
561 $(EMACS_ROOT)/nt/inc/pwd.h \
567 $(SRC)/dispextern.h \
575 $(BLD)/emacs.$(O) : \
577 $(EMACS_ROOT)/src/s/ms-w32.h \
578 $(EMACS_ROOT)/src/m/intel386.h \
579 $(EMACS_ROOT)/src/config.h \
580 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
581 $(EMACS_ROOT)/nt/inc/sys/file.h \
583 $(SRC)/blockinput.h \
587 $(SRC)/dispextern.h \
603 $(EMACS_ROOT)/src/s/ms-w32.h \
604 $(EMACS_ROOT)/src/m/intel386.h \
605 $(EMACS_ROOT)/src/config.h \
607 $(SRC)/blockinput.h \
609 $(SRC)/dispextern.h \
615 $(BLD)/fileio.$(O) : \
617 $(EMACS_ROOT)/src/s/ms-w32.h \
618 $(EMACS_ROOT)/src/m/intel386.h \
619 $(EMACS_ROOT)/src/config.h \
620 $(EMACS_ROOT)/nt/inc/pwd.h \
621 $(EMACS_ROOT)/nt/inc/sys/param.h \
622 $(EMACS_ROOT)/nt/inc/sys/file.h \
629 $(SRC)/dispextern.h \
636 $(BLD)/filelock.$(O) : \
638 $(EMACS_ROOT)/src/s/ms-w32.h \
639 $(EMACS_ROOT)/src/m/intel386.h \
640 $(EMACS_ROOT)/src/config.h \
641 $(EMACS_ROOT)/nt/inc/pwd.h \
642 $(EMACS_ROOT)/nt/inc/sys/file.h \
643 $(EMACS_ROOT)/src/epaths.h \
650 $(BLD)/filemode.$(O) : \
652 $(EMACS_ROOT)/src/s/ms-w32.h \
653 $(EMACS_ROOT)/src/m/intel386.h \
654 $(EMACS_ROOT)/src/config.h \
656 $(SRC)/m/intel386.h \
659 $(BLD)/firstfile.$(O) : \
661 $(EMACS_ROOT)/src/s/ms-w32.h \
662 $(EMACS_ROOT)/src/m/intel386.h \
663 $(EMACS_ROOT)/src/config.h
665 $(BLD)/floatfns.$(O) : \
667 $(EMACS_ROOT)/src/s/ms-w32.h \
668 $(EMACS_ROOT)/src/m/intel386.h \
669 $(EMACS_ROOT)/src/config.h \
674 $(EMACS_ROOT)/src/s/ms-w32.h \
675 $(EMACS_ROOT)/src/m/intel386.h \
676 $(EMACS_ROOT)/src/config.h \
677 $(EMACS_ROOT)/nt/inc/langinfo.h \
678 $(EMACS_ROOT)/nt/inc/nl_types.h \
680 $(SRC)/blockinput.h \
687 $(SRC)/dispextern.h \
699 $(BLD)/fontset.$(O) : \
701 $(EMACS_ROOT)/src/s/ms-w32.h \
702 $(EMACS_ROOT)/src/m/intel386.h \
703 $(EMACS_ROOT)/src/config.h \
707 $(SRC)/dispextern.h \
716 $(BLD)/frame.$(O) : \
718 $(EMACS_ROOT)/src/s/ms-w32.h \
719 $(EMACS_ROOT)/src/m/intel386.h \
720 $(EMACS_ROOT)/src/config.h \
722 $(SRC)/blockinput.h \
726 $(SRC)/dispextern.h \
738 $(BLD)/fringe.$(O) : \
740 $(EMACS_ROOT)/src/s/ms-w32.h \
741 $(EMACS_ROOT)/src/m/intel386.h \
742 $(EMACS_ROOT)/src/config.h \
744 $(SRC)/blockinput.h \
746 $(SRC)/dispextern.h \
753 $(BLD)/gmalloc.$(O) : \
755 $(EMACS_ROOT)/src/s/ms-w32.h \
756 $(EMACS_ROOT)/src/m/intel386.h \
757 $(EMACS_ROOT)/src/config.h \
758 $(EMACS_ROOT)/nt/inc/sys/param.h \
763 $(EMACS_ROOT)/src/s/ms-w32.h \
764 $(EMACS_ROOT)/src/m/intel386.h \
765 $(EMACS_ROOT)/src/config.h \
767 $(SRC)/blockinput.h \
768 $(SRC)/dispextern.h \
779 $(BLD)/indent.$(O) : \
781 $(EMACS_ROOT)/src/s/ms-w32.h \
782 $(EMACS_ROOT)/src/m/intel386.h \
783 $(EMACS_ROOT)/src/config.h \
788 $(SRC)/dispextern.h \
794 $(SRC)/region-cache.h \
801 $(BLD)/insdel.$(O) : \
803 $(EMACS_ROOT)/src/s/ms-w32.h \
804 $(EMACS_ROOT)/src/m/intel386.h \
805 $(EMACS_ROOT)/src/config.h \
807 $(SRC)/blockinput.h \
811 $(SRC)/dispextern.h \
813 $(SRC)/region-cache.h \
819 $(BLD)/intervals.$(O) : \
821 $(EMACS_ROOT)/src/s/ms-w32.h \
822 $(EMACS_ROOT)/src/m/intel386.h \
823 $(EMACS_ROOT)/src/config.h \
826 $(SRC)/dispextern.h \
834 $(BLD)/keyboard.$(O) : \
836 $(EMACS_ROOT)/src/s/ms-w32.h \
837 $(EMACS_ROOT)/src/m/intel386.h \
838 $(EMACS_ROOT)/src/config.h \
839 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
840 $(EMACS_ROOT)/nt/inc/sys/file.h \
842 $(SRC)/blockinput.h \
847 $(SRC)/dispextern.h \
867 $(BLD)/keymap.$(O) : \
869 $(EMACS_ROOT)/src/s/ms-w32.h \
870 $(EMACS_ROOT)/src/m/intel386.h \
871 $(EMACS_ROOT)/src/config.h \
873 $(SRC)/blockinput.h \
878 $(SRC)/dispextern.h \
888 $(BLD)/lastfile.$(O) : \
890 $(EMACS_ROOT)/src/s/ms-w32.h \
891 $(EMACS_ROOT)/src/m/intel386.h \
892 $(EMACS_ROOT)/src/config.h
894 $(BLD)/lread.$(O) : \
896 $(EMACS_ROOT)/src/s/ms-w32.h \
897 $(EMACS_ROOT)/src/m/intel386.h \
898 $(EMACS_ROOT)/src/config.h \
899 $(EMACS_ROOT)/nt/inc/sys/file.h \
900 $(EMACS_ROOT)/src/epaths.h \
901 $(SRC)/blockinput.h \
908 $(SRC)/dispextern.h \
915 $(BLD)/macros.$(O) : \
917 $(EMACS_ROOT)/src/s/ms-w32.h \
918 $(EMACS_ROOT)/src/m/intel386.h \
919 $(EMACS_ROOT)/src/config.h \
922 $(SRC)/dispextern.h \
929 $(BLD)/marker.$(O) : \
931 $(EMACS_ROOT)/src/s/ms-w32.h \
932 $(EMACS_ROOT)/src/m/intel386.h \
933 $(EMACS_ROOT)/src/config.h \
941 $(BLD)/minibuf.$(O) : \
943 $(EMACS_ROOT)/src/s/ms-w32.h \
944 $(EMACS_ROOT)/src/m/intel386.h \
945 $(EMACS_ROOT)/src/config.h \
950 $(SRC)/dispextern.h \
963 $(EMACS_ROOT)/nt/inc/pwd.h \
965 $(SRC)/m/intel386.h \
972 $(BLD)/w32heap.$(O) : \
975 $(SRC)/m/intel386.h \
979 $(BLD)/w32inevt.$(O) : \
982 $(SRC)/m/intel386.h \
985 $(SRC)/blockinput.h \
995 $(BLD)/w32proc.$(O) : \
998 $(SRC)/m/intel386.h \
999 $(EMACS_ROOT)/nt/inc/langinfo.h \
1000 $(EMACS_ROOT)/nt/inc/nl_types.h \
1003 $(SRC)/syssignal.h \
1012 $(BLD)/w32console.$(O) : \
1013 $(SRC)/w32console.c \
1015 $(SRC)/m/intel386.h \
1020 $(SRC)/dispextern.h \
1023 $(SRC)/termhooks.h \
1028 $(BLD)/print.$(O) : \
1030 $(EMACS_ROOT)/src/s/ms-w32.h \
1031 $(EMACS_ROOT)/src/m/intel386.h \
1032 $(EMACS_ROOT)/src/config.h \
1035 $(SRC)/composite.h \
1036 $(SRC)/dispextern.h \
1038 $(SRC)/intervals.h \
1046 $(BLD)/process.$(O) : \
1048 $(EMACS_ROOT)/src/s/ms-w32.h \
1049 $(EMACS_ROOT)/src/m/intel386.h \
1050 $(EMACS_ROOT)/src/config.h \
1051 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1052 $(EMACS_ROOT)/nt/inc/sys/file.h \
1054 $(SRC)/blockinput.h \
1060 $(SRC)/composite.h \
1061 $(SRC)/dispextern.h \
1065 $(SRC)/sysselect.h \
1066 $(SRC)/syssignal.h \
1070 $(SRC)/termhooks.h \
1076 $(BLD)/ralloc.$(O) : \
1078 $(EMACS_ROOT)/src/s/ms-w32.h \
1079 $(EMACS_ROOT)/src/m/intel386.h \
1080 $(EMACS_ROOT)/src/config.h \
1081 $(EMACS_ROOT)/nt/inc/sys/param.h \
1083 $(SRC)/m/intel386.h \
1085 $(SRC)/getpagesize.h
1087 $(BLD)/regex.$(O) : \
1089 $(EMACS_ROOT)/src/s/ms-w32.h \
1090 $(EMACS_ROOT)/src/m/intel386.h \
1091 $(EMACS_ROOT)/src/config.h \
1093 $(SRC)/m/intel386.h \
1101 $(BLD)/region-cache.$(O) : \
1102 $(SRC)/region-cache.c \
1103 $(EMACS_ROOT)/src/s/ms-w32.h \
1104 $(EMACS_ROOT)/src/m/intel386.h \
1105 $(EMACS_ROOT)/src/config.h \
1107 $(SRC)/region-cache.h
1109 $(BLD)/scroll.$(O) : \
1111 $(EMACS_ROOT)/src/s/ms-w32.h \
1112 $(EMACS_ROOT)/src/m/intel386.h \
1113 $(EMACS_ROOT)/src/config.h \
1114 $(SRC)/dispextern.h \
1118 $(SRC)/termhooks.h \
1123 $(BLD)/search.$(O) : \
1125 $(EMACS_ROOT)/src/s/ms-w32.h \
1126 $(EMACS_ROOT)/src/m/intel386.h \
1127 $(EMACS_ROOT)/src/config.h \
1129 $(SRC)/blockinput.h \
1134 $(SRC)/composite.h \
1135 $(SRC)/dispextern.h \
1136 $(SRC)/intervals.h \
1138 $(SRC)/region-cache.h \
1144 $(BLD)/sound.$(O) : \
1147 $(SRC)/dispextern.h \
1151 $(BLD)/strftime.$(O) : \
1153 $(EMACS_ROOT)/src/s/ms-w32.h \
1154 $(EMACS_ROOT)/src/m/intel386.h \
1155 $(EMACS_ROOT)/src/config.h
1157 $(BLD)/syntax.$(O) : \
1159 $(EMACS_ROOT)/src/s/ms-w32.h \
1160 $(EMACS_ROOT)/src/m/intel386.h \
1161 $(EMACS_ROOT)/src/config.h \
1166 $(SRC)/composite.h \
1167 $(SRC)/dispextern.h \
1168 $(SRC)/intervals.h \
1174 $(BLD)/sysdep.$(O) : \
1176 $(EMACS_ROOT)/src/s/ms-w32.h \
1177 $(EMACS_ROOT)/src/m/intel386.h \
1178 $(EMACS_ROOT)/src/config.h \
1179 $(EMACS_ROOT)/nt/inc/sys/param.h \
1180 $(EMACS_ROOT)/nt/inc/sys/file.h \
1181 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1182 $(EMACS_ROOT)/nt/inc/sys/file.h \
1184 $(SRC)/blockinput.h \
1186 $(SRC)/dispextern.h \
1191 $(SRC)/sysselect.h \
1192 $(SRC)/syssignal.h \
1197 $(SRC)/termhooks.h \
1203 $(BLD)/term.$(O) : \
1205 $(EMACS_ROOT)/src/s/ms-w32.h \
1206 $(EMACS_ROOT)/src/m/intel386.h \
1207 $(EMACS_ROOT)/src/config.h \
1212 $(SRC)/dispextern.h \
1218 $(SRC)/termhooks.h \
1224 $(BLD)/termcap.$(O) : \
1226 $(EMACS_ROOT)/src/s/ms-w32.h \
1227 $(EMACS_ROOT)/src/m/intel386.h \
1228 $(EMACS_ROOT)/src/config.h \
1229 $(EMACS_ROOT)/nt/inc/sys/file.h
1231 $(BLD)/terminal.$(O) : \
1233 $(EMACS_ROOT)/src/s/ms-w32.h \
1234 $(EMACS_ROOT)/src/m/intel386.h \
1235 $(EMACS_ROOT)/src/config.h \
1243 $(BLD)/textprop.$(O) : \
1245 $(EMACS_ROOT)/src/s/ms-w32.h \
1246 $(EMACS_ROOT)/src/m/intel386.h \
1247 $(EMACS_ROOT)/src/config.h \
1249 $(SRC)/composite.h \
1250 $(SRC)/dispextern.h \
1251 $(SRC)/intervals.h \
1256 $(BLD)/tparam.$(O) : \
1258 $(EMACS_ROOT)/src/s/ms-w32.h \
1259 $(EMACS_ROOT)/src/m/intel386.h \
1260 $(EMACS_ROOT)/src/config.h
1262 $(BLD)/undo.$(O) : \
1264 $(EMACS_ROOT)/src/s/ms-w32.h \
1265 $(EMACS_ROOT)/src/m/intel386.h \
1266 $(EMACS_ROOT)/src/config.h \
1270 $(BLD)/unexw32.$(O) : \
1272 $(EMACS_ROOT)/src/s/ms-w32.h \
1273 $(EMACS_ROOT)/src/m/intel386.h \
1274 $(EMACS_ROOT)/src/config.h \
1277 $(BLD)/vm-limit.$(O) : \
1279 $(EMACS_ROOT)/src/s/ms-w32.h \
1280 $(EMACS_ROOT)/src/m/intel386.h \
1281 $(EMACS_ROOT)/src/config.h \
1284 $(BLD)/window.$(O) : \
1286 $(EMACS_ROOT)/src/s/ms-w32.h \
1287 $(EMACS_ROOT)/src/m/intel386.h \
1288 $(EMACS_ROOT)/src/config.h \
1290 $(SRC)/blockinput.h \
1293 $(SRC)/composite.h \
1294 $(SRC)/dispextern.h \
1298 $(SRC)/intervals.h \
1308 $(BLD)/xdisp.$(O) : \
1310 $(EMACS_ROOT)/src/s/ms-w32.h \
1311 $(EMACS_ROOT)/src/m/intel386.h \
1312 $(EMACS_ROOT)/src/config.h \
1314 $(SRC)/blockinput.h \
1320 $(SRC)/composite.h \
1321 $(SRC)/dispextern.h \
1326 $(SRC)/intervals.h \
1331 $(SRC)/region-cache.h \
1334 $(SRC)/termhooks.h \
1340 $(BLD)/xfaces.$(O): \
1342 $(EMACS_ROOT)/src/s/ms-w32.h \
1343 $(EMACS_ROOT)/src/m/intel386.h \
1344 $(EMACS_ROOT)/src/config.h \
1346 $(SRC)/blockinput.h \
1349 $(SRC)/composite.h \
1350 $(SRC)/dispextern.h \
1353 $(SRC)/intervals.h \
1357 $(SRC)/termhooks.h \
1363 $(BLD)/w32fns.$(O): \
1365 $(EMACS_ROOT)/src/s/ms-w32.h \
1366 $(EMACS_ROOT)/src/m/intel386.h \
1367 $(EMACS_ROOT)/src/config.h \
1369 $(SRC)/blockinput.h \
1374 $(SRC)/composite.h \
1375 $(SRC)/dispextern.h \
1379 $(SRC)/intervals.h \
1382 $(SRC)/termhooks.h \
1389 $(BLD)/w32menu.$(O): \
1391 $(EMACS_ROOT)/src/s/ms-w32.h \
1392 $(EMACS_ROOT)/src/m/intel386.h \
1393 $(EMACS_ROOT)/src/config.h \
1395 $(SRC)/blockinput.h \
1399 $(SRC)/dispextern.h \
1404 $(SRC)/termhooks.h \
1410 $(BLD)/w32term.$(O): \
1412 $(EMACS_ROOT)/src/s/ms-w32.h \
1413 $(EMACS_ROOT)/src/m/intel386.h \
1414 $(EMACS_ROOT)/src/config.h \
1416 $(SRC)/blockinput.h \
1421 $(SRC)/composite.h \
1422 $(SRC)/dispextern.h \
1427 $(SRC)/intervals.h \
1433 $(SRC)/termhooks.h \
1441 $(BLD)/w32select.$(O): \
1442 $(SRC)/w32select.c \
1443 $(EMACS_ROOT)/src/s/ms-w32.h \
1444 $(EMACS_ROOT)/src/m/intel386.h \
1445 $(EMACS_ROOT)/src/config.h \
1447 $(SRC)/blockinput.h \
1452 $(SRC)/composite.h \
1453 $(SRC)/dispextern.h \
1462 $(BLD)/w32reg.$(O): \
1464 $(EMACS_ROOT)/src/s/ms-w32.h \
1465 $(EMACS_ROOT)/src/m/intel386.h \
1466 $(EMACS_ROOT)/src/config.h \
1468 $(SRC)/blockinput.h \
1474 $(BLD)/w32xfns.$(O): \
1476 $(EMACS_ROOT)/src/s/ms-w32.h \
1477 $(EMACS_ROOT)/src/m/intel386.h \
1478 $(EMACS_ROOT)/src/config.h \
1480 $(SRC)/blockinput.h \
1490 $(BLD)/w32bdf.$(O): \
1492 $(EMACS_ROOT)/src/s/ms-w32.h \
1493 $(EMACS_ROOT)/src/m/intel386.h \
1494 $(EMACS_ROOT)/src/config.h \
1496 $(SRC)/blockinput.h \
1498 $(SRC)/dispextern.h \
1507 # Each object file depends on stamp_BLD, because in parallel builds we must
1508 # make sure $(BLD) exists before starting compilations.
1510 $(OBJ0) $(OBJ1) $(WIN32OBJ) $(BLD)/lastfile.$(O) $(BLD)/firstfile.$(O): stamp_BLD