Update w32 dependencies in the wake of cygw32 changes.
[bpt/emacs.git] / src / makefile.w32-in
index f89a4c8..120fda9 100644 (file)
@@ -25,7 +25,7 @@ ALL = emacs
 EMACSLOADPATH=$(CURDIR)/../lisp
 
 # Size in MBs of the static heap in temacs.exe.
-HEAPSIZE = 27
+HEAPSIZE = $(EMACS_HEAPSIZE)
 
 LOCAL_FLAGS     = -Demacs=1 -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
 
@@ -207,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 \
@@ -247,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)
@@ -391,9 +391,8 @@ SYSTIME_H      = $(SRC)/systime.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 \
@@ -402,6 +401,8 @@ 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 \
@@ -423,7 +424,8 @@ DISPEXTERN_H   = $(SRC)/dispextern.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 \
@@ -465,24 +467,30 @@ SOCKET_H       = $(NT_INC)/sys/socket.h \
                 $(SRC)/w32.h
 STAT_TIME_H    = $(GNU_LIB)/stat-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)
+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,12 +504,12 @@ $(BLD)/alloc.$(O) : \
 
 $(BLD)/atimer.$(O) : \
        $(SRC)/atimer.c \
-       $(SRC)/syssignal.h \
+       $(SRC)/blockinput.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(CONFIG_H) \
        $(LISP_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H)
 
 $(BLD)/bidi.$(O) : \
@@ -514,6 +522,7 @@ $(BLD)/bidi.$(O) : \
 
 $(BLD)/buffer.$(O) : \
        $(SRC)/buffer.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/indent.h \
        $(SRC)/keymap.h \
@@ -522,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) \
@@ -554,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)
 
@@ -603,7 +612,7 @@ $(BLD)/category.$(O) : \
 
 $(BLD)/ccl.$(O) : \
        $(SRC)/ccl.c \
-       $(SRC)/ccl.h \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -635,7 +644,7 @@ $(BLD)/charset.$(O) : \
 
 $(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) \
@@ -720,15 +729,14 @@ $(BLD)/dired.$(O) : \
 
 $(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) \
@@ -765,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) \
@@ -783,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) \
@@ -801,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) \
@@ -817,11 +831,11 @@ $(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) \
@@ -854,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) \
@@ -898,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) \
@@ -917,10 +930,10 @@ $(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) \
@@ -936,7 +949,7 @@ $(BLD)/frame.$(O) : \
 
 $(BLD)/fringe.$(O) : \
        $(SRC)/fringe.c \
-       $(BLOCKINPUT_H) \
+       $(SRC)/blockinput.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -948,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)
@@ -970,14 +984,16 @@ $(BLD)/xml.$(O) : \
 $(BLD)/profiler.$(O) : \
        $(SRC)/profiler.c \
        $(CONFIG_H) \
-       $(LISP_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) \
@@ -1012,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) \
@@ -1036,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) \
@@ -1058,6 +1073,7 @@ $(BLD)/keyboard.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
@@ -1065,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) \
@@ -1086,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) \
@@ -1124,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) \
@@ -1179,10 +1195,10 @@ $(BLD)/w32heap.$(O) : \
 
 $(BLD)/w32inevt.$(O) : \
        $(SRC)/w32inevt.c \
+       $(SRC)/blockinput.h \
        $(SRC)/termchar.h \
        $(SRC)/w32heap.h \
        $(SRC)/w32inevt.h \
-       $(BLOCKINPUT_H) \
        $(CONFIG_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
@@ -1194,7 +1210,6 @@ $(BLD)/w32inevt.$(O) : \
 
 $(BLD)/w32proc.$(O) : \
        $(SRC)/w32proc.c \
-       $(SRC)/syssignal.h \
        $(SRC)/syswait.h \
        $(SRC)/w32.h \
        $(SRC)/w32heap.h \
@@ -1206,6 +1221,7 @@ $(BLD)/w32proc.$(O) : \
        $(LANGINFO_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(W32TERM_H)
 
@@ -1222,12 +1238,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) \
@@ -1245,11 +1262,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 \
@@ -1260,7 +1277,6 @@ $(BLD)/process.$(O) : \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -1271,16 +1287,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)
 
@@ -1315,12 +1333,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) \
@@ -1330,12 +1348,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 \
@@ -1352,9 +1370,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 \
@@ -1364,9 +1382,9 @@ $(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 \
        $(GNU_LIB)/utimens.h \
-       $(BLOCKINPUT_H) \
        $(CAREADLINKAT_H) \
        $(CONFIG_H) \
        $(C_CTYPE_H) \
@@ -1377,6 +1395,7 @@ $(BLD)/sysdep.$(O) : \
        $(LISP_H) \
        $(PROCESS_H) \
        $(SOCKET_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
@@ -1384,18 +1403,17 @@ $(BLD)/sysdep.$(O) : \
 
 $(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) \
@@ -1406,6 +1424,7 @@ $(BLD)/term.$(O) : \
        $(INTERVALS_H) \
        $(KEYBOARD_H) \
        $(LISP_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
        $(WINDOW_H)
@@ -1460,12 +1479,12 @@ $(BLD)/vm-limit.$(O) : \
 
 $(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) \
@@ -1480,6 +1499,7 @@ $(BLD)/window.$(O) : \
 
 $(BLD)/xdisp.$(O) : \
        $(SRC)/xdisp.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/disptab.h \
        $(SRC)/fontset.h \
@@ -1489,7 +1509,7 @@ $(BLD)/xdisp.$(O) : \
        $(SRC)/region-cache.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
-       $(BLOCKINPUT_H) \
+       $(ATIMER_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1508,10 +1528,10 @@ $(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) \
@@ -1529,14 +1549,13 @@ $(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)/w32heap.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -1549,14 +1568,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) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1573,18 +1593,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) \
@@ -1599,14 +1618,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) \
        $(CHARSET_H) \
        $(CODING_H) \
        $(CONFIG_H) \
@@ -1615,15 +1635,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) \
@@ -1634,7 +1654,6 @@ $(BLD)/w32xfns.$(O) : \
 $(BLD)/w32font.$(O) : \
        $(SRC)/w32font.c \
        $(SRC)/fontset.h \
-       $(SRC)/w32font.h \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -1643,13 +1662,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) \
@@ -1657,6 +1676,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