Merge from trunk.
[bpt/emacs.git] / src / makefile.w32-in
index 31dc94f..f96f765 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)              \
@@ -133,6 +134,7 @@ OBJ2 =  $(BLD)/sysdep.$(O)          \
        $(BLD)/w32menu.$(O)             \
        $(BLD)/w32reg.$(O)              \
        $(BLD)/w32font.$(O)             \
+       $(BLD)/w32notify.$(O)           \
        $(BLD)/w32uniscribe.$(O)
 
 LIBS =  $(TLIB0)       \
@@ -206,9 +208,9 @@ 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 \
+       font.c w32font.c w32uniscribe.c w32notify.c \
        dispnew.c frame.c scroll.c xdisp.c window.c bidi.c \
        charset.c coding.c category.c ccl.c character.c chartab.c \
        cm.c term.c terminal.c xfaces.c \
@@ -222,7 +224,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 +248,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)
@@ -390,15 +392,18 @@ 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 \
@@ -419,10 +424,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 \
@@ -441,7 +447,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 \
@@ -461,24 +468,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) \
@@ -492,12 +505,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) : \
@@ -510,6 +523,7 @@ $(BLD)/bidi.$(O) : \
 
 $(BLD)/buffer.$(O) : \
        $(SRC)/buffer.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/indent.h \
        $(SRC)/keymap.h \
@@ -518,7 +532,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) \
@@ -550,22 +563,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)
 
@@ -599,7 +613,7 @@ $(BLD)/category.$(O) : \
 
 $(BLD)/ccl.$(O) : \
        $(SRC)/ccl.c \
-       $(SRC)/ccl.h \
+       $(CCL_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -626,11 +640,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) \
@@ -652,9 +667,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) \
@@ -682,7 +697,6 @@ $(BLD)/data.$(O) : \
        $(SRC)/data.c \
        $(SRC)/keymap.h \
        $(SRC)/puresize.h \
-       $(SRC)/syssignal.h \
        $(GNU_LIB)/intprops.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
@@ -691,16 +705,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,15 +730,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) \
@@ -733,6 +747,7 @@ $(BLD)/dispnew.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
@@ -747,6 +762,7 @@ $(BLD)/doc.$(O) : \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(KEYBOARD_H) \
        $(LISP_H)
 
@@ -759,12 +775,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) \
@@ -777,16 +793,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) \
@@ -795,14 +813,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) \
@@ -811,15 +832,16 @@ $(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) \
@@ -847,17 +869,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) \
@@ -881,6 +902,7 @@ $(BLD)/font.$(O) : \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CONFIG_H) \
+       $(C_CTYPE_H) \
        $(DISPEXTERN_H) \
        $(FONT_H) \
        $(FRAME_H) \
@@ -890,10 +912,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) \
@@ -909,13 +931,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) \
@@ -927,7 +950,7 @@ $(BLD)/frame.$(O) : \
 
 $(BLD)/fringe.$(O) : \
        $(SRC)/fringe.c \
-       $(BLOCKINPUT_H) \
+       $(SRC)/blockinput.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -939,6 +962,7 @@ $(BLD)/fringe.$(O) : \
 
 $(BLD)/gmalloc.$(O) : \
        $(SRC)/gmalloc.c \
+       $(SRC)/w32heap.h \
        $(NT_INC)/stdint.h \
        $(NT_INC)/unistd.h \
        $(CONFIG_H)
@@ -958,15 +982,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) \
@@ -997,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) \
@@ -1021,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) \
@@ -1043,6 +1074,7 @@ $(BLD)/keyboard.$(O) : \
        $(KEYBOARD_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
@@ -1050,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) \
@@ -1071,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) \
@@ -1109,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) \
@@ -1141,6 +1173,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 \
@@ -1158,16 +1191,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) \
@@ -1179,9 +1213,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 \
@@ -1191,6 +1225,7 @@ $(BLD)/w32proc.$(O) : \
        $(LANGINFO_H) \
        $(LISP_H) \
        $(PROCESS_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(W32TERM_H)
 
@@ -1198,7 +1233,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) \
@@ -1207,12 +1242,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) \
@@ -1230,11 +1266,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 \
@@ -1245,7 +1281,6 @@ $(BLD)/process.$(O) : \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
        $(ATIMER_H) \
-       $(BLOCKINPUT_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -1256,16 +1291,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)
 
@@ -1300,12 +1337,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) \
@@ -1315,12 +1352,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 \
@@ -1337,9 +1374,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 \
@@ -1349,11 +1386,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) \
@@ -1361,6 +1399,7 @@ $(BLD)/sysdep.$(O) : \
        $(LISP_H) \
        $(PROCESS_H) \
        $(SOCKET_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
@@ -1368,18 +1407,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) \
@@ -1390,6 +1428,7 @@ $(BLD)/term.$(O) : \
        $(INTERVALS_H) \
        $(KEYBOARD_H) \
        $(LISP_H) \
+       $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
        $(WINDOW_H)
@@ -1432,23 +1471,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) \
@@ -1463,6 +1504,7 @@ $(BLD)/window.$(O) : \
 
 $(BLD)/xdisp.$(O) : \
        $(SRC)/xdisp.c \
+       $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/disptab.h \
        $(SRC)/fontset.h \
@@ -1472,7 +1514,7 @@ $(BLD)/xdisp.$(O) : \
        $(SRC)/region-cache.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
-       $(BLOCKINPUT_H) \
+       $(ATIMER_H) \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1491,14 +1533,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) \
@@ -1511,14 +1554,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) \
@@ -1531,14 +1574,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) \
@@ -1555,18 +1599,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) \
@@ -1581,14 +1624,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) \
@@ -1597,15 +1641,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) \
@@ -1616,7 +1660,6 @@ $(BLD)/w32xfns.$(O) : \
 $(BLD)/w32font.$(O) : \
        $(SRC)/w32font.c \
        $(SRC)/fontset.h \
-       $(SRC)/w32font.h \
        $(CHARACTER_H) \
        $(CHARSET_H) \
        $(CODING_H) \
@@ -1625,13 +1668,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) \
@@ -1639,6 +1682,18 @@ $(BLD)/w32uniscribe.$(O) : \
        $(FONT_H) \
        $(FRAME_H) \
        $(LISP_H) \
+       $(W32FONT_H) \
+       $(W32TERM_H)
+
+$(BLD)/w32notify.$(O) : \
+       $(SRC)/w32notify.c \
+       $(SRC)/w32common.h \
+       $(CODING_H) \
+       $(CONFIG_H) \
+       $(FRAME_H) \
+       $(KEYBOARD_H) \
+       $(LISP_H) \
+       $(TERMHOOKS_H) \
        $(W32TERM_H)
 
 # Each object file depends on stamp_BLD, because in parallel builds we must