Fix warnings when compiling on MS-Windows with -std=gnu99.
[bpt/emacs.git] / src / makefile.w32-in
index 45972db..5be1ccb 100644 (file)
@@ -25,9 +25,9 @@ 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)
+LOCAL_FLAGS     = -Demacs=1 -I../lib -I../nt/inc $(EMACS_EXTRA_C_FLAGS)
 
 SRC             = .
 EMACS           = $(BLD)/emacs.exe
@@ -125,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)              \
@@ -206,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 \
@@ -222,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)
@@ -246,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)
@@ -339,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)
@@ -353,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,23 +391,28 @@ 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 \
+                $(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 \
@@ -417,10 +423,11 @@ DISPEXTERN_H   = $(SRC)/dispextern.h \
                 $(W32GUI_H)
 FILEMODE_H     = $(GNU_LIB)/filemode.h \
                 $(NT_INC)/sys/stat.h
-FONT_H         = $(SRC)/font.h \
-                $(SRC)/ccl.h
 FRAME_H        = $(SRC)/frame.h \
                 $(DISPEXTERN_H)
+FONT_H         = $(SRC)/font.h \
+                $(CCL_H) \
+                $(FRAME_H)
 FTOASTR_H      = $(GNU_LIB)/ftoastr.h \
                 $(GNU_LIB)/intprops.h
 GRP_H          = $(NT_INC)/grp.h \
@@ -439,7 +446,8 @@ LISP_H         = $(SRC)/lisp.h \
                 $(SRC)/globals.h \
                 $(GNU_LIB)/intprops.h \
                 $(INTTYPES_H) \
-                $(NT_INC)/stdalign.h
+                $(NT_INC)/stdalign.h \
+                $(NT_INC)/stdbool.h
 MD5_H          = $(GNU_LIB)/md5.h \
                 $(NT_INC)/stdint.h
 MENU_H         = $(SRC)/menu.h \
@@ -459,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) \
@@ -490,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) : \
@@ -508,6 +522,7 @@ $(BLD)/bidi.$(O) : \
 
 $(BLD)/buffer.$(O) : \
        $(SRC)/buffer.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/indent.h \
        $(SRC)/keymap.h \
@@ -516,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) \
@@ -548,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)
 
@@ -597,7 +612,7 @@ $(BLD)/category.$(O) : \
 
 $(BLD)/ccl.$(O) : \
        $(SRC)/ccl.c \
-       $(SRC)/ccl.h \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -624,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) \
@@ -650,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) \
@@ -680,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) \
@@ -689,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) \
@@ -713,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 \
+       $(SRC)/w32.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -731,6 +746,7 @@ $(BLD)/dispnew.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
@@ -745,6 +761,7 @@ $(BLD)/doc.$(O) : \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(KEYBOARD_H) \
        $(LISP_H)
 
@@ -757,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) \
@@ -775,16 +792,18 @@ $(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 \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/unistd.h \
-       $(BLOCKINPUT_H) \
+       $(GNU_LIB)/ignore-value.h \
+       $(ATIMER_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -793,14 +812,17 @@ $(BLD)/emacs.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
+       $(W32FONT_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) \
@@ -809,15 +831,18 @@ $(BLD)/eval.$(O) : \
 
 $(BLD)/fileio.$(O) : \
        $(SRC)/fileio.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
+       $(SRC)/w32.h \
        $(NT_INC)/pwd.h \
+       $(NT_INC)/sys/file.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) \
@@ -845,17 +870,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) \
@@ -879,6 +903,7 @@ $(BLD)/font.$(O) : \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FONT_H) \
        $(FRAME_H) \
@@ -888,10 +913,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) \
@@ -907,13 +932,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) \
@@ -925,7 +951,7 @@ $(BLD)/frame.$(O) : \
 
 $(BLD)/fringe.$(O) : \
        $(SRC)/fringe.c \
-       $(BLOCKINPUT_H) \
+       $(SRC)/blockinput.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -937,6 +963,7 @@ $(BLD)/fringe.$(O) : \
 
 $(BLD)/gmalloc.$(O) : \
        $(SRC)/gmalloc.c \
+       $(SRC)/w32heap.h \
        $(NT_INC)/stdint.h \
        $(NT_INC)/unistd.h \
        $(CONFIG_H)
@@ -956,15 +983,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) \
@@ -982,7 +1017,6 @@ $(BLD)/indent.$(O) : \
        $(SRC)/indent.h \
        $(SRC)/region-cache.h \
        $(SRC)/termchar.h \
-       $(SRC)/termopts.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -995,9 +1029,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) \
@@ -1019,19 +1053,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) \
@@ -1041,6 +1074,7 @@ $(BLD)/keyboard.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
@@ -1048,10 +1082,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) \
@@ -1069,12 +1103,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) \
@@ -1107,8 +1141,8 @@ $(BLD)/marker.$(O) : \
 
 $(BLD)/menu.$(O) : \
        $(SRC)/menu.c \
+       $(SRC)/blockinput.h \
        $(SRC)/keymap.h \
-       $(BLOCKINPUT_H) \
        $(CONFIG_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
@@ -1139,7 +1173,9 @@ $(BLD)/w32.$(O) : \
        $(SRC)/w32.c \
        $(SRC)/ndir.h \
        $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
+       $(SRC)/w32select.h \
        $(NT_INC)/pwd.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/sys/time.h \
@@ -1156,16 +1192,17 @@ $(BLD)/w32.$(O) : \
 
 $(BLD)/w32heap.$(O) : \
        $(SRC)/w32heap.c \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
        $(CONFIG_H) \
        $(LISP_H)
 
 $(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) \
@@ -1177,9 +1214,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 \
@@ -1189,6 +1226,7 @@ $(BLD)/w32proc.$(O) : \
        $(LANGINFO_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(W32TERM_H)
 
@@ -1196,7 +1234,7 @@ $(BLD)/w32console.$(O) : \
        $(SRC)/w32console.c \
        $(SRC)/disptab.h \
        $(SRC)/termchar.h \
-       $(SRC)/w32heap.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32inevt.h \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -1205,12 +1243,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) \
@@ -1228,11 +1267,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 \
@@ -1243,7 +1282,6 @@ $(BLD)/process.$(O) : \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -1254,16 +1292,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)
 
@@ -1298,12 +1338,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) \
@@ -1313,12 +1353,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 \
@@ -1335,9 +1375,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 \
@@ -1347,11 +1387,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 \
        $(GNU_LIB)/utimens.h \
-       $(BLOCKINPUT_H) \
        $(CAREADLINKAT_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FRAME_H) \
        $(GRP_H) \
@@ -1359,6 +1400,7 @@ $(BLD)/sysdep.$(O) : \
        $(LISP_H) \
        $(PROCESS_H) \
        $(SOCKET_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
@@ -1366,18 +1408,16 @@ $(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) \
@@ -1388,8 +1428,10 @@ $(BLD)/term.$(O) : \
        $(INTERVALS_H) \
        $(KEYBOARD_H) \
        $(LISP_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
+       $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/terminal.$(O) : \
@@ -1430,23 +1472,28 @@ $(BLD)/undo.$(O) : \
 $(BLD)/unexw32.$(O) : \
        $(SRC)/unexw32.c \
        $(SRC)/unexec.h \
+       $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
+       $(LISP_H) \
        $(CONFIG_H)
 
 $(BLD)/vm-limit.$(O) : \
        $(SRC)/vm-limit.c \
        $(SRC)/mem-limits.h \
+       $(SRC)/w32heap.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) \
@@ -1461,6 +1508,7 @@ $(BLD)/window.$(O) : \
 
 $(BLD)/xdisp.$(O) : \
        $(SRC)/xdisp.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/disptab.h \
        $(SRC)/fontset.h \
@@ -1470,7 +1518,7 @@ $(BLD)/xdisp.$(O) : \
        $(SRC)/region-cache.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
-       $(BLOCKINPUT_H) \
+       $(ATIMER_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1489,14 +1537,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) \
@@ -1509,14 +1558,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) \
@@ -1529,14 +1578,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) \
@@ -1553,18 +1603,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) \
@@ -1579,31 +1628,33 @@ $(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) \
+       $(KEYBOARD_H) \
        $(LISP_H) \
        $(W32TERM_H)
 
 $(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) \
@@ -1614,7 +1665,6 @@ $(BLD)/w32xfns.$(O) : \
 $(BLD)/w32font.$(O) : \
        $(SRC)/w32font.c \
        $(SRC)/fontset.h \
-       $(SRC)/w32font.h \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -1623,13 +1673,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) \
@@ -1637,6 +1687,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