Fix w32 dependencies due to introduction of w32common.h.
[bpt/emacs.git] / src / makefile.w32-in
index 963d932..66127d5 100644 (file)
@@ -1,4 +1,4 @@
-# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
+# -*- Makefile -*- for GNU Emacs on the Microsoft Windows API.
 # Copyright (C) 2000-2012  Free Software Foundation, Inc.
 
 # This file is part of GNU Emacs.
@@ -25,13 +25,9 @@ ALL = emacs
 EMACSLOADPATH=$(CURDIR)/../lisp
 
 # Size in MBs of the static heap in temacs.exe.
-HEAPSIZE = 27
+HEAPSIZE = $(EMACS_HEAPSIZE)
 
-#
-# HAVE_CONFIG_H is required by some generic gnu sources stuck into
-# the emacs source tree.
-#
-LOCAL_FLAGS     = -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
+LOCAL_FLAGS     = -Demacs=1 -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
 
 SRC             = .
 EMACS           = $(BLD)/emacs.exe
@@ -129,6 +125,7 @@ OBJ2 =  $(BLD)/sysdep.$(O)          \
        $(BLD)/terminal.$(O)            \
        $(BLD)/menu.$(O)                \
        $(BLD)/xml.$(O)                 \
+       $(BLD)/profiler.$(O)            \
        $(BLD)/w32term.$(O)             \
        $(BLD)/w32xfns.$(O)             \
        $(BLD)/w32fns.$(O)              \
@@ -210,7 +207,7 @@ make-buildobj-SH:
 GLOBAL_SOURCES =   dosfns.c msdos.c \
        xterm.c xfns.c xmenu.c xselect.c xrdb.c xsmfns.c fringe.c image.c \
        fontset.c menu.c dbusbind.c \
-       w32.c w32console.c w32fns.c w32heap.c w32inevt.c \
+       w32.c w32console.c w32fns.c w32heap.c w32inevt.c cygw32.c \
        w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c \
        font.c w32font.c w32uniscribe.c \
        dispnew.c frame.c scroll.c xdisp.c window.c bidi.c \
@@ -226,7 +223,7 @@ GLOBAL_SOURCES =   dosfns.c msdos.c \
        process.c callproc.c unexw32.c \
        region-cache.c sound.c atimer.c \
        doprnt.c intervals.c textprop.c composite.c \
-       gnutls.c xml.c
+       gnutls.c xml.c profiler.c
 SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
        xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
 obj = $(GLOBAL_SOURCES:.c=.o)
@@ -250,10 +247,10 @@ bootstrap: bootstrap-emacs
 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
 #          this can break with GNU Make 3.81 and later if sh.exe is used.
 bootstrap-temacs-CMD:
-       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(ESC_CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
+       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(ESC_CFLAGS) -DPURESIZE=$(EMACS_PURESIZE)$(ARGQUOTE)
 
 bootstrap-temacs-SH:
-       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
+       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=$(EMACS_PURESIZE)$(ARGQUOTE)
 
 bootstrap-temacs:
        $(MAKE) $(MFLAGS) bootstrap-temacs-$(SHELLTYPE)
@@ -343,7 +340,7 @@ cleanall:   clean
 ##
 ## This works only with GNU Make.
 
-TAGS: $(OBJ0) $(OBJ1) $(OBJ2) $(CURDIR)/s/ms-w32.h
+TAGS: $(OBJ0) $(OBJ1) $(OBJ2) $(CURDIR)/../nt/inc/ms-w32.h
        $(MAKE) $(MFLAGS) TAGS-$(MAKETYPE)
 
 TAGS-LISP: $(OBJ0) $(OBJ1) $(OBJ2)
@@ -357,7 +354,7 @@ TAGS-gmake:
          $(OBJ1_c)
        ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
          $(OBJ2_c) \
-         $(CURDIR)/*.h $(CURDIR)/s/ms-w32.h
+         $(CURDIR)/*.h $(CURDIR)/../nt/inc/ms-w32.h
 
 TAGS-nmake:
        echo This target is not supported with NMake
@@ -390,39 +387,45 @@ EMACS_ROOT = ..
 GNU_LIB = $(EMACS_ROOT)/lib
 NT_INC = $(EMACS_ROOT)/nt/inc
 
-TIMESPEC_H     = $(GNU_LIB)/timespec.h \
-                $(NT_INC)/sys/time.h
 SYSTIME_H      = $(SRC)/systime.h \
-                $(TIMESPEC_H)
+                $(NT_INC)/sys/time.h \
+                $(GNU_LIB)/timespec.h
 ATIMER_H       = $(SRC)/atimer.h \
+                $(NT_INC)/stdbool.h \
                 $(SYSTIME_H)
-BLOCKINPUT_H   = $(SRC)/blockinput.h \
-                $(ATIMER_H)
 BUFFER_H       = $(SRC)/buffer.h \
                 $(SYSTIME_H)
+C_CTYPE_H      = $(GNU_LIB)/c-ctype.h \
+                $(NT_INC)/stdbool.h
 CAREADLINKAT_H = $(GNU_LIB)/careadlinkat.h \
                 $(NT_INC)/unistd.h
 CHARACTER_H    = $(SRC)/character.h \
                 $(GNU_LIB)/verify.h
+CCL_H          = $(SRC)/ccl.h \
+                $(CHARACTER_H)
 CHARSET_H      = $(SRC)/charset.h \
                 $(GNU_LIB)/verify.h
 CODING_H       = $(SRC)/coding.h \
                 $(SRC)/composite.h
-MS_W32_H       = $(SRC)/s/ms-w32.h \
+MS_W32_H       = $(NT_INC)/ms-w32.h \
                 $(NT_INC)/sys/stat.h
-CONFIG_H       = $(SRC)/config.h \
+CONF_POST_H    = $(SRC)/conf_post.h \
                 $(MS_W32_H)
+CONFIG_H       = $(SRC)/config.h \
+                $(CONF_POST_H)
 DIR_H          = $(NT_INC)/sys/dir.h \
                 $(SRC)/ndir.h
 W32GUI_H       = $(SRC)/w32gui.h \
                 $(SYSTIME_H)
 DISPEXTERN_H   = $(SRC)/dispextern.h \
+                $(GNU_LIB)/c-strcase.h \
                 $(SYSTIME_H) \
                 $(W32GUI_H)
 FILEMODE_H     = $(GNU_LIB)/filemode.h \
                 $(NT_INC)/sys/stat.h
 FONT_H         = $(SRC)/font.h \
-                $(SRC)/ccl.h
+                $(FRAME_H) \
+                $(CCL_H)
 FRAME_H        = $(SRC)/frame.h \
                 $(DISPEXTERN_H)
 FTOASTR_H      = $(GNU_LIB)/ftoastr.h \
@@ -442,7 +445,9 @@ LANGINFO_H     = $(NT_INC)/langinfo.h \
 LISP_H         = $(SRC)/lisp.h \
                 $(SRC)/globals.h \
                 $(GNU_LIB)/intprops.h \
-                $(INTTYPES_H)
+                $(INTTYPES_H) \
+                $(NT_INC)/stdalign.h \
+                $(NT_INC)/stdbool.h
 MD5_H          = $(GNU_LIB)/md5.h \
                 $(NT_INC)/stdint.h
 MENU_H         = $(SRC)/menu.h \
@@ -461,28 +466,31 @@ SHA512_H       = $(GNU_LIB)/sha512.h \
 SOCKET_H       = $(NT_INC)/sys/socket.h \
                 $(SRC)/w32.h
 STAT_TIME_H    = $(GNU_LIB)/stat-time.h \
-                $(NT_INC)/sys/stat.h \
-                $(NT_INC)/sys/time.h
+                $(NT_INC)/sys/stat.h
+SYSSIGNAL_H    = $(SRC)/syssignal.h \
+                $(NT_INC)/stdbool.h
 SYSTTY_H       = $(SRC)/systty.h \
                 $(NT_INC)/sys/ioctl.h \
                 $(NT_INC)/unistd.h
 TERMHOOKS_H    = $(SRC)/termhooks.h \
                 $(SYSTIME_H)
-UTIMENS_H      = $(GNU_LIB)/utimens.h \
-                $(NT_INC)/sys/time.h
+W32FONT_H      = $(SRC)/w32font.h \
+                $(FONT_H)
 W32TERM_H      = $(SRC)/w32term.h \
+                $(ATIMER_H) \
+                $(FRAME_H) \
                 $(W32GUI_H)
 WINDOW_H       = $(SRC)/window.h \
                 $(DISPEXTERN_H)
 
 $(BLD)/alloc.$(O) : \
        $(SRC)/alloc.c \
+       $(SRC)/blockinput.h \
        $(SRC)/puresize.h \
-       $(SRC)/syssignal.h \
        $(SRC)/w32.h \
+       $(SRC)/w32heap.h \
        $(NT_INC)/unistd.h \
        $(GNU_LIB)/verify.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -496,13 +504,12 @@ $(BLD)/alloc.$(O) : \
 
 $(BLD)/atimer.$(O) : \
        $(SRC)/atimer.c \
-       $(SRC)/syssignal.h \
-       $(NT_INC)/sys/time.h \
+       $(SRC)/blockinput.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(CONFIG_H) \
        $(LISP_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H)
 
 $(BLD)/bidi.$(O) : \
@@ -515,6 +522,7 @@ $(BLD)/bidi.$(O) : \
 
 $(BLD)/buffer.$(O) : \
        $(SRC)/buffer.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/indent.h \
        $(SRC)/keymap.h \
@@ -523,7 +531,6 @@ $(BLD)/buffer.$(O) : \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
        $(GNU_LIB)/verify.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -555,22 +562,23 @@ $(BLD)/callint.$(O) : \
 
 $(BLD)/callproc.$(O) : \
        $(SRC)/callproc.c \
-       $(SRC)/ccl.h \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/epaths.h \
-       $(SRC)/syssignal.h \
+       $(SRC)/syswait.h \
        $(SRC)/w32.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
        $(CONFIG_H) \
        $(FRAME_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H)
 
@@ -604,7 +612,7 @@ $(BLD)/category.$(O) : \
 
 $(BLD)/ccl.$(O) : \
        $(SRC)/ccl.c \
-       $(SRC)/ccl.h \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -631,11 +639,12 @@ $(BLD)/charset.$(O) : \
        $(CHARSET_H) \
        $(CODING_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(LISP_H)
 
 $(BLD)/chartab.$(O) : \
        $(SRC)/chartab.c \
-       $(SRC)/ccl.h \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
@@ -657,9 +666,9 @@ $(BLD)/cmds.$(O) : \
 
 $(BLD)/coding.$(O) : \
        $(SRC)/coding.c \
-       $(SRC)/ccl.h \
        $(SRC)/composite.h \
        $(BUFFER_H) \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -687,7 +696,6 @@ $(BLD)/data.$(O) : \
        $(SRC)/data.c \
        $(SRC)/keymap.h \
        $(SRC)/puresize.h \
-       $(SRC)/syssignal.h \
        $(GNU_LIB)/intprops.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
@@ -696,16 +704,17 @@ $(BLD)/data.$(O) : \
        $(FRAME_H) \
        $(KEYBOARD_H) \
        $(LISP_H) \
+       $(SYSSIGNAL_H) \
        $(TERMHOOKS_H)
 
 $(BLD)/dired.$(O) : \
        $(SRC)/dired.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/regex.h \
        $(NT_INC)/pwd.h \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -715,20 +724,19 @@ $(BLD)/dired.$(O) : \
        $(FILEMODE_H) \
        $(GRP_H) \
        $(LISP_H) \
-       $(STAT-TIME_H) \
+       $(STAT_TIME_H) \
        $(SYSTIME_H)
 
 $(BLD)/dispnew.$(O) : \
        $(SRC)/dispnew.c \
+       $(SRC)/blockinput.h \
        $(SRC)/cm.h \
        $(SRC)/commands.h \
        $(SRC)/disptab.h \
        $(SRC)/indent.h \
-       $(SRC)/syssignal.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -738,6 +746,7 @@ $(BLD)/dispnew.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
@@ -752,6 +761,7 @@ $(BLD)/doc.$(O) : \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(KEYBOARD_H) \
        $(LISP_H)
 
@@ -764,12 +774,12 @@ $(BLD)/doprnt.$(O) : \
 
 $(BLD)/editfns.$(O) : \
        $(SRC)/editfns.c \
+       $(SRC)/blockinput.h \
        $(NT_INC)/pwd.h \
        $(NT_INC)/unistd.h \
        $(GNU_LIB)/intprops.h \
        $(GNU_LIB)/strftime.h \
        $(GNU_LIB)/verify.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -782,16 +792,19 @@ $(BLD)/editfns.$(O) : \
 
 $(BLD)/emacs.$(O) : \
        $(SRC)/emacs.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/gnutls.h \
        $(SRC)/keymap.h \
-       $(SRC)/syssignal.h \
        $(SRC)/unexec.h \
        $(SRC)/w32.h \
        $(SRC)/w32heap.h \
+       $(SRC)/w32select.h \
+       $(SRC)/w32font.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
+       $(GNU_LIB)/ignore-value.h \
+       $(ATIMER_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -800,14 +813,16 @@ $(BLD)/emacs.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
+       $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/eval.$(O) : \
        $(SRC)/eval.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
-       $(BLOCKINPUT_H) \
        $(CONFIG_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
@@ -816,20 +831,21 @@ $(BLD)/eval.$(O) : \
 
 $(BLD)/fileio.$(O) : \
        $(SRC)/fileio.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(NT_INC)/pwd.h \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
        $(INTERVALS_H) \
        $(LISP_H) \
-       $(STAT-TIME_H) \
+       $(STAT_TIME_H) \
        $(SYSTIME_H) \
        $(WINDOW_H)
 
@@ -852,17 +868,16 @@ $(BLD)/firstfile.$(O) : \
 
 $(BLD)/floatfns.$(O) : \
        $(SRC)/floatfns.c \
-       $(SRC)/syssignal.h \
        $(CONFIG_H) \
        $(LISP_H)
 
 $(BLD)/fns.$(O) : \
        $(SRC)/fns.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/keymap.h \
        $(NT_INC)/unistd.h \
        $(GNU_LIB)/intprops.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -886,6 +901,7 @@ $(BLD)/font.$(O) : \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FONT_H) \
        $(FRAME_H) \
@@ -895,10 +911,10 @@ $(BLD)/font.$(O) : \
 
 $(BLD)/fontset.$(O) : \
        $(SRC)/fontset.c \
-       $(SRC)/ccl.h \
+       $(SRC)/blockinput.h \
        $(SRC)/fontset.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
@@ -914,13 +930,14 @@ $(BLD)/fontset.$(O) : \
 
 $(BLD)/frame.$(O) : \
        $(SRC)/frame.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/fontset.h \
        $(SRC)/termchar.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FONT_H) \
        $(FRAME_H) \
@@ -932,7 +949,7 @@ $(BLD)/frame.$(O) : \
 
 $(BLD)/fringe.$(O) : \
        $(SRC)/fringe.c \
-       $(BLOCKINPUT_H) \
+       $(SRC)/blockinput.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -944,6 +961,7 @@ $(BLD)/fringe.$(O) : \
 
 $(BLD)/gmalloc.$(O) : \
        $(SRC)/gmalloc.c \
+       $(SRC)/w32heap.h \
        $(NT_INC)/stdint.h \
        $(NT_INC)/unistd.h \
        $(CONFIG_H)
@@ -963,15 +981,23 @@ $(BLD)/xml.$(O) : \
        $(CONFIG_H) \
        $(LISP_H)
 
+$(BLD)/profiler.$(O) : \
+       $(SRC)/profiler.c \
+       $(CONFIG_H) \
+       $(LISP_H) \
+       $(SYSSIGNAL_H) \
+       $(SYSTIME_H)
+
 $(BLD)/image.$(O) : \
        $(SRC)/image.c \
+       $(SRC)/blockinput.h \
        $(SRC)/epaths.h \
        $(SRC)/w32.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FONT_H) \
        $(FRAME_H) \
@@ -1002,9 +1028,9 @@ $(BLD)/indent.$(O) : \
 
 $(BLD)/insdel.$(O) : \
        $(SRC)/insdel.c \
+       $(SRC)/blockinput.h \
        $(SRC)/region-cache.h \
        $(GNU_LIB)/intprops.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -1026,19 +1052,18 @@ $(BLD)/intervals.$(O) : \
 
 $(BLD)/keyboard.$(O) : \
        $(SRC)/keyboard.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/disptab.h \
        $(SRC)/keymap.h \
        $(SRC)/macros.h \
        $(SRC)/puresize.h \
        $(SRC)/syntax.h \
-       $(SRC)/syssignal.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
        $(NT_INC)/sys/ioctl.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -1048,6 +1073,7 @@ $(BLD)/keyboard.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
@@ -1055,10 +1081,10 @@ $(BLD)/keyboard.$(O) : \
 
 $(BLD)/keymap.$(O) : \
        $(SRC)/keymap.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/keymap.h \
        $(SRC)/puresize.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1076,12 +1102,12 @@ $(BLD)/lastfile.$(O) : \
 
 $(BLD)/lread.$(O) : \
        $(SRC)/lread.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/epaths.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1091,6 +1117,7 @@ $(BLD)/lread.$(O) : \
        $(INTERVALS_H) \
        $(KEYBOARD_H) \
        $(LISP_H) \
+       $(STAT_TIME_H) \
        $(TERMHOOKS_H)
 
 $(BLD)/macros.$(O) : \
@@ -1113,8 +1140,8 @@ $(BLD)/marker.$(O) : \
 
 $(BLD)/menu.$(O) : \
        $(SRC)/menu.c \
+       $(SRC)/blockinput.h \
        $(SRC)/keymap.h \
-       $(BLOCKINPUT_H) \
        $(CONFIG_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
@@ -1145,6 +1172,7 @@ $(BLD)/w32.$(O) : \
        $(SRC)/w32.c \
        $(SRC)/ndir.h \
        $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
        $(NT_INC)/pwd.h \
        $(NT_INC)/sys/file.h \
@@ -1163,14 +1191,16 @@ $(BLD)/w32.$(O) : \
 $(BLD)/w32heap.$(O) : \
        $(SRC)/w32heap.c \
        $(SRC)/w32heap.h \
+       $(SRC)/w32common.h \
        $(CONFIG_H) \
        $(LISP_H)
 
 $(BLD)/w32inevt.$(O) : \
        $(SRC)/w32inevt.c \
+       $(SRC)/blockinput.h \
        $(SRC)/termchar.h \
        $(SRC)/w32heap.h \
-       $(BLOCKINPUT_H) \
+       $(SRC)/w32inevt.h \
        $(CONFIG_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
@@ -1182,9 +1212,9 @@ $(BLD)/w32inevt.$(O) : \
 
 $(BLD)/w32proc.$(O) : \
        $(SRC)/w32proc.c \
-       $(SRC)/syssignal.h \
        $(SRC)/syswait.h \
        $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
        $(NT_INC)/nl_types.h \
        $(NT_INC)/sys/file.h \
@@ -1194,6 +1224,7 @@ $(BLD)/w32proc.$(O) : \
        $(LANGINFO_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(W32TERM_H)
 
@@ -1201,6 +1232,7 @@ $(BLD)/w32console.$(O) : \
        $(SRC)/w32console.c \
        $(SRC)/disptab.h \
        $(SRC)/termchar.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32inevt.h \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -1209,12 +1241,13 @@ $(BLD)/w32console.$(O) : \
        $(FRAME_H) \
        $(LISP_H) \
        $(TERMHOOKS_H) \
+       $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/print.$(O) : \
        $(SRC)/print.c \
+       $(SRC)/blockinput.h \
        $(SRC)/termchar.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1232,11 +1265,11 @@ $(BLD)/print.$(O) : \
 
 $(BLD)/process.$(O) : \
        $(SRC)/process.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/gnutls.h \
        $(SRC)/sysselect.h \
-       $(SRC)/syssignal.h \
        $(SRC)/syswait.h \
        $(SRC)/termopts.h \
        $(NT_INC)/arpa/inet.h \
@@ -1247,7 +1280,6 @@ $(BLD)/process.$(O) : \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -1258,16 +1290,18 @@ $(BLD)/process.$(O) : \
        $(LISP_H) \
        $(PROCESS_H) \
        $(SOCKET_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
+       $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/ralloc.$(O) : \
        $(SRC)/ralloc.c \
+       $(SRC)/blockinput.h \
        $(SRC)/getpagesize.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(CONFIG_H) \
        $(LISP_H)
 
@@ -1276,7 +1310,6 @@ $(BLD)/regex.$(O) : \
        $(SRC)/category.h \
        $(SRC)/regex.h \
        $(SRC)/syntax.h \
-       $(NT_INC)/unistd.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -1303,12 +1336,12 @@ $(BLD)/scroll.$(O) : \
 
 $(BLD)/search.$(O) : \
        $(SRC)/search.c \
+       $(SRC)/blockinput.h \
        $(SRC)/category.h \
        $(SRC)/commands.h \
        $(SRC)/regex.h \
        $(SRC)/region-cache.h \
        $(SRC)/syntax.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1318,12 +1351,12 @@ $(BLD)/search.$(O) : \
 
 $(BLD)/sound.$(O) : \
        $(SRC)/sound.c \
-       $(SRC)/syssignal.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
        $(CONFIG_H) \
        $(DISPEXTERN_H) \
-       $(LISP_H)
+       $(LISP_H) \
+       $(SYSSIGNAL_H)
 
 $(BLD)/syntax.$(O) : \
        $(SRC)/syntax.c \
@@ -1340,9 +1373,9 @@ $(BLD)/syntax.$(O) : \
 
 $(BLD)/sysdep.$(O) : \
        $(SRC)/sysdep.c \
+       $(SRC)/blockinput.h \
        $(SRC)/cm.h \
        $(SRC)/sysselect.h \
-       $(SRC)/syssignal.h \
        $(SRC)/syswait.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
@@ -1352,10 +1385,12 @@ $(BLD)/sysdep.$(O) : \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
        $(GNU_LIB)/allocator.h \
+       $(GNU_LIB)/execinfo.h \
        $(GNU_LIB)/ignore-value.h \
-       $(BLOCKINPUT_H) \
+       $(GNU_LIB)/utimens.h \
        $(CAREADLINKAT_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
        $(GRP_H) \
@@ -1363,26 +1398,25 @@ $(BLD)/sysdep.$(O) : \
        $(LISP_H) \
        $(PROCESS_H) \
        $(SOCKET_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
-       $(UTIMENS_H) \
        $(WINDOW_H)
 
 $(BLD)/term.$(O) : \
        $(SRC)/term.c \
+       $(SRC)/blockinput.h \
        $(SRC)/cm.h \
        $(SRC)/composite.h \
        $(SRC)/disptab.h \
        $(SRC)/keymap.h \
-       $(SRC)/syssignal.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
        $(SRC)/tparam.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/sys/time.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1393,6 +1427,7 @@ $(BLD)/term.$(O) : \
        $(INTERVALS_H) \
        $(KEYBOARD_H) \
        $(LISP_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
        $(WINDOW_H)
@@ -1435,23 +1470,25 @@ $(BLD)/undo.$(O) : \
 $(BLD)/unexw32.$(O) : \
        $(SRC)/unexw32.c \
        $(SRC)/unexec.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
        $(CONFIG_H)
 
 $(BLD)/vm-limit.$(O) : \
        $(SRC)/vm-limit.c \
        $(SRC)/mem-limits.h \
+       $(NT_INC)/unistd.h \
        $(CONFIG_H) \
        $(LISP_H)
 
 $(BLD)/window.$(O) : \
        $(SRC)/window.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/disptab.h \
        $(SRC)/indent.h \
        $(SRC)/keymap.h \
        $(SRC)/termchar.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -1466,6 +1503,7 @@ $(BLD)/window.$(O) : \
 
 $(BLD)/xdisp.$(O) : \
        $(SRC)/xdisp.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/disptab.h \
        $(SRC)/fontset.h \
@@ -1475,7 +1513,7 @@ $(BLD)/xdisp.$(O) : \
        $(SRC)/region-cache.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
-       $(BLOCKINPUT_H) \
+       $(ATIMER_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1494,14 +1532,15 @@ $(BLD)/xdisp.$(O) : \
 
 $(BLD)/xfaces.$(O) : \
        $(SRC)/xfaces.c \
+       $(SRC)/blockinput.h \
        $(SRC)/fontset.h \
        $(SRC)/termchar.h \
        $(NT_INC)/sys/stat.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FONT_H) \
        $(FRAME_H) \
@@ -1514,14 +1553,14 @@ $(BLD)/xfaces.$(O) : \
 
 $(BLD)/w32fns.$(O) : \
        $(SRC)/w32fns.c \
-       $(SRC)/ccl.h \
+       $(SRC)/blockinput.h \
        $(SRC)/epaths.h \
        $(SRC)/fontset.h \
        $(SRC)/w32.h \
-       $(SRC)/w32font.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -1534,14 +1573,15 @@ $(BLD)/w32fns.$(O) : \
        $(LISP_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
+       $(W32FONT_H) \
        $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/w32menu.$(O) : \
        $(SRC)/w32menu.c \
+       $(SRC)/blockinput.h \
        $(SRC)/keymap.h \
-       $(SRC)/w32heap.h \
-       $(BLOCKINPUT_H) \
+       $(SRC)/w32common.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1558,18 +1598,17 @@ $(BLD)/w32menu.$(O) : \
 
 $(BLD)/w32term.$(O) : \
        $(SRC)/w32term.c \
-       $(SRC)/ccl.h \
+       $(SRC)/blockinput.h \
        $(SRC)/disptab.h \
        $(SRC)/fontset.h \
        $(SRC)/keymap.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32font.h \
        $(SRC)/w32heap.h \
        $(NT_INC)/sys/stat.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -1584,14 +1623,15 @@ $(BLD)/w32term.$(O) : \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
+       $(W32FONT_H) \
        $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/w32select.$(O) : \
        $(SRC)/w32select.c \
+       $(SRC)/blockinput.h \
        $(SRC)/composite.h \
-       $(SRC)/w32heap.h \
-       $(BLOCKINPUT_H) \
+       $(SRC)/w32common.h \
        $(CHARSET_H) \
        $(CODING_H) \
        $(CONFIG_H) \
@@ -1600,15 +1640,15 @@ $(BLD)/w32select.$(O) : \
 
 $(BLD)/w32reg.$(O) : \
        $(SRC)/w32reg.c \
-       $(BLOCKINPUT_H) \
+       $(SRC)/blockinput.h \
        $(CONFIG_H) \
        $(LISP_H) \
        $(W32TERM_H)
 
 $(BLD)/w32xfns.$(O) : \
        $(SRC)/w32xfns.c \
+       $(SRC)/blockinput.h \
        $(SRC)/fontset.h \
-       $(BLOCKINPUT_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
        $(FRAME_H) \
@@ -1619,7 +1659,6 @@ $(BLD)/w32xfns.$(O) : \
 $(BLD)/w32font.$(O) : \
        $(SRC)/w32font.c \
        $(SRC)/fontset.h \
-       $(SRC)/w32font.h \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -1628,13 +1667,13 @@ $(BLD)/w32font.$(O) : \
        $(FONT_H) \
        $(FRAME_H) \
        $(LISP_H) \
+       $(W32FONT_H) \
        $(W32TERM_H)
 
 $(BLD)/w32uniscribe.$(O) : \
        $(SRC)/w32uniscribe.c \
        $(SRC)/composite.h \
        $(SRC)/fontset.h \
-       $(SRC)/w32font.h \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
@@ -1642,6 +1681,7 @@ $(BLD)/w32uniscribe.$(O) : \
        $(FONT_H) \
        $(FRAME_H) \
        $(LISP_H) \
+       $(W32FONT_H) \
        $(W32TERM_H)
 
 # Each object file depends on stamp_BLD, because in parallel builds we must