1 # -*- Makefile -*- for GNU Emacs on the Microsoft Windows API.
2 # Copyright (C) 2000-2012 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
27 # Size in MBs of the static heap in temacs.exe.
28 HEAPSIZE = $(EMACS_HEAPSIZE)
30 LOCAL_FLAGS = -Demacs=1 -I../lib -I../nt/inc $(EMACS_EXTRA_C_FLAGS)
33 EMACS = $(BLD)/emacs.exe
34 TEMACS = $(BLD)/temacs.exe
35 TEMACS_TMP = $(BLD)/temacs.bin
36 TLIB0 = $(BLD)/temacs0.$(A)
37 TLIB1 = $(BLD)/temacs1.$(A)
38 TLIB2 = $(BLD)/temacs2.$(A)
39 TOBJ = $(BLD)/firstfile.$(O)
40 TRES = $(BLD)/emacs.res
41 TLASTLIB = $(BLD)/lastfile.$(A)
42 GNULIB = ../lib/$(BLD)/libgnu.$(A)
44 DOC = $(OBJDIR)/etc/DOC-X
46 FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)
49 # Split up the objects into two sets so that we don't run out of
50 # command line space when we link them into a library.
52 # Put emacs.$(O) in a separate lib, since we need to have firstfile.$(O)
53 # as the "main" object file when linking.
55 OBJ0 = $(BLD)/emacs.$(O)
57 OBJ1 = $(BLD)/alloc.$(O) \
60 $(BLD)/bytecode.$(O) \
62 $(BLD)/callproc.$(O) \
63 $(BLD)/casefiddle.$(O) \
73 $(BLD)/filelock.$(O) \
77 $(BLD)/keyboard.$(O) \
85 $(BLD)/w32inevt.$(O) \
87 $(BLD)/w32console.$(O) \
96 OBJ2 = $(BLD)/sysdep.$(O) \
100 $(BLD)/unexw32.$(O) \
103 $(BLD)/casetab.$(O) \
104 $(BLD)/floatfns.$(O) \
106 $(BLD)/gmalloc.$(O) \
108 $(BLD)/intervals.$(O) \
109 $(BLD)/composite.$(O) \
111 $(BLD)/textprop.$(O) \
112 $(BLD)/vm-limit.$(O) \
113 $(BLD)/region-cache.$(O) \
115 $(BLD)/charset.$(O) \
116 $(BLD)/character.$(O) \
117 $(BLD)/chartab.$(O) \
119 $(BLD)/category.$(O) \
122 $(BLD)/fontset.$(O) \
125 $(BLD)/terminal.$(O) \
128 $(BLD)/profiler.$(O) \
129 $(BLD)/w32term.$(O) \
130 $(BLD)/w32xfns.$(O) \
133 $(BLD)/w32select.$(O) \
134 $(BLD)/w32menu.$(O) \
136 $(BLD)/w32font.$(O) \
137 $(BLD)/w32uniscribe.$(O)
159 # Build the executable and dump it.
164 # The dumped executable
166 emacs: stamp_BLD $(EMACS)
167 $(EMACS): $(DOC) $(TEMACS)
168 "$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup dump
169 -"$(THISDIR)/$(BLD)/emacs.exe" -batch -f list-load-path-shadows
172 # The undumped executable
173 # Note the extra post-link step to insert a static preload heap section.
174 # If preload runs out of memory, increase the last argument to addsection
175 # (it is the preload heap size in MB).
177 temacs: stamp_BLD $(TEMACS)
178 $(TEMACS): $(TLIB0) $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) \
179 ../nt/$(BLD)/addsection.exe $(GNULIB)
180 $(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
181 "$(THISDIR)/../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP $(HEAPSIZE)
183 # These omit firstfile.${O}, but there's no documentation in there
185 buildobj.h: $(SRC)/makefile.w32-in
186 $(MAKE) $(MFLAGS) make-buildobj-$(SHELLTYPE)
188 # Cannot have blanks between the backslash and the redirection
189 # characters, because CMD's `echo' will put them in buildobj.h.
191 echo #define BUILDOBJ ^"\> buildobj.h
192 echo $(OBJ0) \>> buildobj.h
193 echo $(OBJ1) \>> buildobj.h
194 echo $(OBJ2) \>> buildobj.h
198 # The above line is here to countermand the single quote
199 # on the last "echo" command above, wrt font-lock.
201 echo '#define BUILDOBJ $(DQUOTE)\' > buildobj.h
202 echo $(OBJ0) '\' >> buildobj.h
203 echo $(OBJ1) '\' >> buildobj.h
204 echo $(OBJ2) '\' >> buildobj.h
205 echo '$(DQUOTE)' >> buildobj.h
207 GLOBAL_SOURCES = dosfns.c msdos.c \
208 xterm.c xfns.c xmenu.c xselect.c xrdb.c xsmfns.c fringe.c image.c \
209 fontset.c menu.c dbusbind.c \
210 w32.c w32console.c w32fns.c w32heap.c w32inevt.c cygw32.c \
211 w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c \
212 font.c w32font.c w32uniscribe.c \
213 dispnew.c frame.c scroll.c xdisp.c window.c bidi.c \
214 charset.c coding.c category.c ccl.c character.c chartab.c \
215 cm.c term.c terminal.c xfaces.c \
216 emacs.c keyboard.c macros.c keymap.c sysdep.c \
217 buffer.c filelock.c insdel.c marker.c \
218 minibuf.c fileio.c dired.c \
219 cmds.c casetab.c casefiddle.c indent.c search.c regex.c undo.c \
220 alloc.c data.c doc.c editfns.c callint.c \
221 eval.c floatfns.c fns.c print.c lread.c \
222 syntax.c bytecode.c \
223 process.c callproc.c unexw32.c \
224 region-cache.c sound.c atimer.c \
225 doprnt.c intervals.c textprop.c composite.c \
226 gnutls.c xml.c profiler.c
227 SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
228 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
229 obj = $(GLOBAL_SOURCES:.c=.o)
232 @cmd $(SWITCHCHAR)c rem true
234 gl-stamp: ../lib-src/$(BLD)/make-docfile.exe $(GLOBAL_SOURCES)
236 "$(THISDIR)/../lib-src/$(BLD)/make-docfile" -d . -g $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
237 fc.exe $(SWITCHCHAR)b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h
241 bootstrap: bootstrap-emacs
244 # Build a temacs with a sufficiently large PURESIZE to load the
245 # Lisp files from loadup.el in source form.
247 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
248 # this can break with GNU Make 3.81 and later if sh.exe is used.
249 bootstrap-temacs-CMD:
250 $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(ESC_CFLAGS) -DPURESIZE=$(EMACS_PURESIZE)$(ARGQUOTE)
253 $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=$(EMACS_PURESIZE)$(ARGQUOTE)
256 $(MAKE) $(MFLAGS) bootstrap-temacs-$(SHELLTYPE)
259 # Dump an Emacs executable named bootstrap-emacs containing the
260 # files from loadup.el in source form.
262 bootstrap-emacs: bootstrap-temacs
263 "$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup bootstrap
265 $(CP) $(EMACS) ../bin
268 # Force recompile of files that depend on PURESIZE
271 - $(DEL) $(BLD)/alloc.$(O)
272 - $(DEL) $(BLD)/data.$(O)
273 - $(DEL) $(BLD)/intervals.$(O)
274 - $(DEL) $(BLD)/keyboard.$(O)
275 - $(DEL) $(BLD)/keymap.$(O)
278 # The resource file. NT 3.10 requires the use of cvtres; even though
279 # it is not necessary on later versions, it is still ok to use it.
281 $(TRES): ../nt/emacs.rc stamp_BLD
282 $(RC) $(RC_INCLUDE)../nt $(RC_OUT)$@ ../nt/emacs.rc
285 # Build the library. Split up the build into two phases...otherwise we
286 # run out of command line space.
290 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
293 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
296 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
299 # Place lastfile.$(O) in its own library so that it can be loaded after
300 # the source libraries but before any system libraries. Doing so defines
301 # the end of Emacs' data section portably across compilers and systems.
303 $(TLASTLIB): $(BLD)/lastfile.$(O)
305 $(AR) $(AR_OUT)$@ $(ALL_DEPS)
308 # Assuming INSTALL_DIR is defined, build and install emacs in it.
311 - mkdir "$(INSTALL_DIR)/bin"
312 $(CP) $(EMACS) $(INSTALL_DIR)/bin
317 # We used to delete *~, s/*~, m/*~ here, but that might inadvertently
318 # remove precious files if it happens to match their short 8+3 aliases.
320 - $(DEL) "s/*.h~" "m/*.h~"
321 - $(DEL) $(COMPILER_TEMP_FILES)
322 - $(DEL_TREE) $(OBJDIR)
323 - $(DEL) stamp_BLD gl-stamp globals.h
327 - $(DEL) config.h epaths.h Makefile
329 maintainer-clean: distclean
334 - $(DEL_TREE) obj-spd
338 ## Arrange to make a tags table TAGS-LISP for ../lisp,
339 ## plus TAGS for the C files, which includes ../lisp/TAGS by reference.
341 ## This works only with GNU Make.
343 TAGS: $(OBJ0) $(OBJ1) $(OBJ2) $(CURDIR)/../nt/inc/ms-w32.h
344 $(MAKE) $(MFLAGS) TAGS-$(MAKETYPE)
346 TAGS-LISP: $(OBJ0) $(OBJ1) $(OBJ2)
347 $(MAKE) $(MFLAGS) TAGS-LISP-$(MAKETYPE)
350 ../lib-src/$(BLD)/etags.exe --include=TAGS-LISP --include=../nt/TAGS \
351 --regex=@../nt/emacs-src.tags \
353 ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
355 ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
357 $(CURDIR)/*.h $(CURDIR)/../nt/inc/ms-w32.h
360 echo This target is not supported with NMake
365 $(MAKE) $(MFLAGS) -C ../lisp TAGS-LISP DEST=../src
368 echo This target is not supported with NMake
372 $(MAKE) $(MFLAGS) nt-TAGS-$(MAKETYPE)
375 $(MAKE) $(MFLAGS) -C ../nt TAGS
378 echo This target is not supported with NMake
381 full-tags: TAGS TAGS-LISP ../nt/TAGS
387 GNU_LIB = $(EMACS_ROOT)/lib
388 NT_INC = $(EMACS_ROOT)/nt/inc
390 SYSTIME_H = $(SRC)/systime.h \
391 $(NT_INC)/sys/time.h \
392 $(GNU_LIB)/timespec.h
393 ATIMER_H = $(SRC)/atimer.h \
394 $(NT_INC)/stdbool.h \
396 BUFFER_H = $(SRC)/buffer.h \
398 C_CTYPE_H = $(GNU_LIB)/c-ctype.h \
400 CAREADLINKAT_H = $(GNU_LIB)/careadlinkat.h \
402 CHARACTER_H = $(SRC)/character.h \
404 CCL_H = $(SRC)/ccl.h \
406 CHARSET_H = $(SRC)/charset.h \
408 CODING_H = $(SRC)/coding.h \
410 MS_W32_H = $(NT_INC)/ms-w32.h \
412 CONF_POST_H = $(SRC)/conf_post.h \
414 CONFIG_H = $(SRC)/config.h \
416 W32GUI_H = $(SRC)/w32gui.h \
418 DISPEXTERN_H = $(SRC)/dispextern.h \
419 $(GNU_LIB)/c-strcase.h \
422 FILEMODE_H = $(GNU_LIB)/filemode.h \
424 FRAME_H = $(SRC)/frame.h \
426 FONT_H = $(SRC)/font.h \
429 FTOASTR_H = $(GNU_LIB)/ftoastr.h \
430 $(GNU_LIB)/intprops.h
431 GRP_H = $(NT_INC)/grp.h \
433 INTERVALS_H = $(SRC)/intervals.h \
436 INTTYPES_H = $(NT_INC)/inttypes.h \
438 KEYBOARD_H = $(SRC)/keyboard.h \
441 LANGINFO_H = $(NT_INC)/langinfo.h \
443 LISP_H = $(SRC)/lisp.h \
445 $(GNU_LIB)/intprops.h \
447 $(NT_INC)/stdalign.h \
449 MD5_H = $(GNU_LIB)/md5.h \
451 MENU_H = $(SRC)/menu.h \
453 PROCESS_H = $(SRC)/process.h \
456 SHA1_H = $(GNU_LIB)/sha1.h \
458 SHA256_H = $(GNU_LIB)/sha256.h \
460 U64_H = $(GNU_LIB)/u64.h \
462 SHA512_H = $(GNU_LIB)/sha512.h \
464 SOCKET_H = $(NT_INC)/sys/socket.h \
466 STAT_TIME_H = $(GNU_LIB)/stat-time.h \
468 SYSSIGNAL_H = $(SRC)/syssignal.h \
470 SYSTTY_H = $(SRC)/systty.h \
471 $(NT_INC)/sys/ioctl.h \
473 SYSWAIT_H = $(SRC)/syswait.h \
475 TERMHOOKS_H = $(SRC)/termhooks.h \
477 W32FONT_H = $(SRC)/w32font.h \
479 W32TERM_H = $(SRC)/w32term.h \
483 WINDOW_H = $(SRC)/window.h \
486 $(BLD)/alloc.$(O) : \
488 $(SRC)/blockinput.h \
493 $(GNU_LIB)/verify.h \
505 $(BLD)/atimer.$(O) : \
507 $(SRC)/blockinput.h \
523 $(BLD)/buffer.$(O) : \
525 $(SRC)/blockinput.h \
529 $(SRC)/region-cache.h \
530 $(NT_INC)/sys/param.h \
531 $(NT_INC)/sys/stat.h \
533 $(GNU_LIB)/verify.h \
543 $(BLD)/bytecode.$(O) : \
552 $(BLD)/callint.$(O) : \
563 $(BLD)/callproc.$(O) : \
565 $(SRC)/blockinput.h \
570 $(NT_INC)/sys/file.h \
585 $(BLD)/casefiddle.$(O) : \
586 $(SRC)/casefiddle.c \
596 $(BLD)/casetab.$(O) : \
603 $(BLD)/category.$(O) : \
622 $(BLD)/character.$(O) : \
626 $(GNU_LIB)/intprops.h \
633 $(BLD)/charset.$(O) : \
645 $(BLD)/chartab.$(O) : \
667 $(BLD)/coding.$(O) : \
681 $(BLD)/composite.$(O) : \
699 $(GNU_LIB)/intprops.h \
710 $(BLD)/dired.$(O) : \
712 $(SRC)/blockinput.h \
717 $(NT_INC)/sys/stat.h \
730 $(BLD)/dispnew.$(O) : \
732 $(SRC)/blockinput.h \
740 $(GNU_LIB)/fpending.h \
760 $(NT_INC)/sys/file.h \
769 $(BLD)/doprnt.$(O) : \
776 $(BLD)/editfns.$(O) : \
778 $(SRC)/blockinput.h \
781 $(GNU_LIB)/intprops.h \
782 $(GNU_LIB)/strftime.h \
783 $(GNU_LIB)/verify.h \
794 $(BLD)/emacs.$(O) : \
796 $(SRC)/blockinput.h \
804 $(NT_INC)/sys/file.h \
806 $(GNU_LIB)/close-stream.h \
807 $(GNU_LIB)/ignore-value.h \
826 $(SRC)/blockinput.h \
834 $(BLD)/fileio.$(O) : \
836 $(SRC)/blockinput.h \
840 $(NT_INC)/sys/file.h \
841 $(NT_INC)/sys/stat.h \
856 $(BLD)/filelock.$(O) : \
859 $(NT_INC)/sys/file.h \
860 $(NT_INC)/sys/stat.h \
869 $(BLD)/firstfile.$(O) : \
873 $(BLD)/floatfns.$(O) : \
880 $(SRC)/blockinput.h \
884 $(GNU_LIB)/intprops.h \
916 $(BLD)/fontset.$(O) : \
918 $(SRC)/blockinput.h \
935 $(BLD)/frame.$(O) : \
937 $(SRC)/blockinput.h \
954 $(BLD)/fringe.$(O) : \
956 $(SRC)/blockinput.h \
966 $(BLD)/gmalloc.$(O) : \
973 $(BLD)/gnutls.$(O) : \
988 $(BLD)/profiler.$(O) : \
995 $(BLD)/image.$(O) : \
997 $(SRC)/blockinput.h \
1000 $(NT_INC)/unistd.h \
1014 $(BLD)/indent.$(O) : \
1017 $(SRC)/composite.h \
1020 $(SRC)/region-cache.h \
1032 $(BLD)/insdel.$(O) : \
1034 $(SRC)/blockinput.h \
1035 $(SRC)/region-cache.h \
1036 $(GNU_LIB)/intprops.h \
1044 $(BLD)/intervals.$(O) : \
1045 $(SRC)/intervals.c \
1048 $(GNU_LIB)/intprops.h \
1056 $(BLD)/keyboard.$(O) : \
1058 $(SRC)/blockinput.h \
1067 $(NT_INC)/sys/ioctl.h \
1068 $(NT_INC)/unistd.h \
1085 $(BLD)/keymap.$(O) : \
1087 $(SRC)/blockinput.h \
1102 $(BLD)/lastfile.$(O) : \
1106 $(BLD)/lread.$(O) : \
1108 $(SRC)/blockinput.h \
1111 $(NT_INC)/sys/file.h \
1112 $(NT_INC)/sys/stat.h \
1113 $(NT_INC)/unistd.h \
1126 $(BLD)/macros.$(O) : \
1137 $(BLD)/marker.$(O) : \
1144 $(BLD)/menu.$(O) : \
1146 $(SRC)/blockinput.h \
1158 $(BLD)/minibuf.$(O) : \
1177 $(SRC)/w32common.h \
1179 $(SRC)/w32select.h \
1180 $(NT_INC)/dirent.h \
1182 $(NT_INC)/sys/file.h \
1183 $(NT_INC)/sys/time.h \
1184 $(GNU_LIB)/allocator.h \
1195 $(BLD)/w32heap.$(O) : \
1197 $(SRC)/w32common.h \
1202 $(BLD)/w32inevt.$(O) : \
1204 $(SRC)/blockinput.h \
1217 $(BLD)/w32proc.$(O) : \
1220 $(SRC)/w32common.h \
1222 $(NT_INC)/nl_types.h \
1223 $(NT_INC)/sys/file.h \
1235 $(BLD)/w32console.$(O) : \
1236 $(SRC)/w32console.c \
1239 $(SRC)/w32common.h \
1251 $(BLD)/print.$(O) : \
1253 $(SRC)/blockinput.h \
1270 $(BLD)/process.$(O) : \
1272 $(SRC)/blockinput.h \
1274 $(SRC)/composite.h \
1276 $(SRC)/sysselect.h \
1278 $(NT_INC)/arpa/inet.h \
1280 $(NT_INC)/netinet/in.h \
1281 $(NT_INC)/sys/file.h \
1282 $(NT_INC)/sys/ioctl.h \
1283 $(NT_INC)/sys/stat.h \
1284 $(NT_INC)/unistd.h \
1304 $(BLD)/ralloc.$(O) : \
1306 $(SRC)/blockinput.h \
1307 $(SRC)/getpagesize.h \
1308 $(NT_INC)/unistd.h \
1312 $(BLD)/regex.$(O) : \
1322 $(BLD)/region-cache.$(O) : \
1323 $(SRC)/region-cache.c \
1324 $(SRC)/region-cache.h \
1330 $(BLD)/scroll.$(O) : \
1341 $(BLD)/search.$(O) : \
1343 $(SRC)/blockinput.h \
1347 $(SRC)/region-cache.h \
1356 $(BLD)/sound.$(O) : \
1358 $(NT_INC)/unistd.h \
1365 $(BLD)/syntax.$(O) : \
1378 $(BLD)/sysdep.$(O) : \
1380 $(SRC)/blockinput.h \
1382 $(SRC)/sysselect.h \
1387 $(NT_INC)/sys/file.h \
1388 $(NT_INC)/sys/stat.h \
1389 $(NT_INC)/unistd.h \
1390 $(GNU_LIB)/allocator.h \
1391 $(GNU_LIB)/execinfo.h \
1392 $(GNU_LIB)/ignore-value.h \
1393 $(GNU_LIB)/utimens.h \
1411 $(BLD)/term.$(O) : \
1413 $(SRC)/blockinput.h \
1415 $(SRC)/composite.h \
1420 $(NT_INC)/sys/file.h \
1421 $(NT_INC)/sys/time.h \
1422 $(NT_INC)/unistd.h \
1439 $(BLD)/terminal.$(O) : \
1450 $(BLD)/textprop.$(O) : \
1459 $(BLD)/tparam.$(O) : \
1465 $(BLD)/undo.$(O) : \
1474 $(BLD)/unexw32.$(O) : \
1478 $(SRC)/w32common.h \
1483 $(BLD)/vm-limit.$(O) : \
1485 $(SRC)/mem-limits.h \
1487 $(NT_INC)/unistd.h \
1491 $(BLD)/window.$(O) : \
1493 $(SRC)/blockinput.h \
1511 $(BLD)/xdisp.$(O) : \
1513 $(SRC)/blockinput.h \
1520 $(SRC)/region-cache.h \
1540 $(BLD)/xfaces.$(O) : \
1542 $(SRC)/blockinput.h \
1545 $(NT_INC)/sys/stat.h \
1561 $(BLD)/w32fns.$(O) : \
1563 $(SRC)/blockinput.h \
1567 $(SRC)/w32common.h \
1569 $(NT_INC)/unistd.h \
1588 $(BLD)/w32menu.$(O) : \
1590 $(SRC)/blockinput.h \
1592 $(SRC)/w32common.h \
1607 $(BLD)/w32term.$(O) : \
1609 $(SRC)/blockinput.h \
1616 $(NT_INC)/sys/stat.h \
1638 $(BLD)/w32select.$(O) : \
1639 $(SRC)/w32select.c \
1640 $(SRC)/blockinput.h \
1641 $(SRC)/composite.h \
1642 $(SRC)/w32common.h \
1650 $(BLD)/w32reg.$(O) : \
1652 $(SRC)/blockinput.h \
1657 $(BLD)/w32xfns.$(O) : \
1659 $(SRC)/blockinput.h \
1668 $(BLD)/w32font.$(O) : \
1682 $(BLD)/w32uniscribe.$(O) : \
1683 $(SRC)/w32uniscribe.c \
1684 $(SRC)/composite.h \
1696 # Each object file depends on stamp_BLD, because in parallel builds we must
1697 # make sure $(BLD) exists before starting compilations.
1699 $(OBJ0) $(OBJ1) $(OBJ2) $(BLD)/lastfile.$(O) $(BLD)/firstfile.$(O): stamp_BLD