]> code.delx.au - gnu-emacs/blobdiff - src/makefile.w32-in
(parse_menu_item) [HAVE_NS]: treat new event like NON_ASCII_KEYSTROKE_EVENT, but...
[gnu-emacs] / src / makefile.w32-in
index df5614e24079fd4d4fd880ae155b03fc0137b34b..05696072ec04308a2f569c880d40fe7d0fff2dc2 100644 (file)
@@ -1,6 +1,6 @@
 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-#   2008  Free Software Foundation, Inc.
+#   2008, 2009  Free Software Foundation, Inc.
 
 # This file is part of GNU Emacs.
 
@@ -29,7 +29,7 @@ EMACSLOADPATH=$(CURDIR)/../lisp
 # HAVE_CONFIG_H is required by some generic gnu sources stuck into
 # the emacs source tree.
 #
-LOCAL_FLAGS     = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
+LOCAL_FLAGS     = -Demacs=1 -DHAVE_CONFIG_H -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
 
 EMACS           = $(BLD)/emacs.exe
 TEMACS          = $(BLD)/temacs.exe
@@ -55,32 +55,32 @@ FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)
 OBJ0 =  $(BLD)/emacs.$(O)
 
 OBJ1 =  $(BLD)/alloc.$(O)              \
-       $(BLD)/atimer.$(O)                      \
-       $(BLD)/buffer.$(O)                      \
+       $(BLD)/atimer.$(O)              \
+       $(BLD)/buffer.$(O)              \
        $(BLD)/bytecode.$(O)            \
        $(BLD)/callint.$(O)             \
        $(BLD)/callproc.$(O)            \
        $(BLD)/casefiddle.$(O)          \
        $(BLD)/cm.$(O)                  \
-       $(BLD)/cmds.$(O)                        \
-       $(BLD)/data.$(O)                        \
-       $(BLD)/dired.$(O)                       \
+       $(BLD)/cmds.$(O)                \
+       $(BLD)/data.$(O)                \
+       $(BLD)/dired.$(O)               \
        $(BLD)/dispnew.$(O)             \
        $(BLD)/doc.$(O)                 \
-       $(BLD)/doprnt.$(O)                      \
+       $(BLD)/doprnt.$(O)              \
        $(BLD)/editfns.$(O)             \
-       $(BLD)/eval.$(O)                        \
-       $(BLD)/fileio.$(O)                      \
+       $(BLD)/eval.$(O)                \
+       $(BLD)/fileio.$(O)              \
        $(BLD)/filelock.$(O)            \
        $(BLD)/filemode.$(O)            \
        $(BLD)/fns.$(O)                 \
-       $(BLD)/indent.$(O)                      \
-       $(BLD)/insdel.$(O)                      \
+       $(BLD)/indent.$(O)              \
+       $(BLD)/insdel.$(O)              \
        $(BLD)/keyboard.$(O)            \
-       $(BLD)/keymap.$(O)                      \
-       $(BLD)/lread.$(O)                       \
-       $(BLD)/macros.$(O)                      \
-       $(BLD)/marker.$(O)                      \
+       $(BLD)/keymap.$(O)              \
+       $(BLD)/lread.$(O)               \
+       $(BLD)/macros.$(O)              \
+       $(BLD)/marker.$(O)              \
        $(BLD)/md5.$(O)                 \
        $(BLD)/minibuf.$(O)             \
        $(BLD)/w32.$(O)                 \
@@ -88,53 +88,52 @@ OBJ1 =  $(BLD)/alloc.$(O)           \
        $(BLD)/w32inevt.$(O)            \
        $(BLD)/w32proc.$(O)             \
        $(BLD)/w32console.$(O)          \
-       $(BLD)/print.$(O)                       \
+       $(BLD)/print.$(O)               \
        $(BLD)/process.$(O)             \
-       $(BLD)/regex.$(O)                       \
-       $(BLD)/scroll.$(O)                      \
-       $(BLD)/search.$(O)                      \
-       $(BLD)/sound.$(O)                       \
-       $(BLD)/syntax.$(O)                      \
-       $(BLD)/sysdep.$(O)                      \
-       $(BLD)/term.$(O)                        \
+       $(BLD)/regex.$(O)               \
+       $(BLD)/scroll.$(O)              \
+       $(BLD)/search.$(O)              \
+       $(BLD)/sound.$(O)               \
+       $(BLD)/syntax.$(O)              \
+       $(BLD)/sysdep.$(O)              \
+       $(BLD)/term.$(O)                \
        $(BLD)/termcap.$(O)             \
-       $(BLD)/tparam.$(O)                      \
-       $(BLD)/undo.$(O)                        \
+       $(BLD)/tparam.$(O)              \
+       $(BLD)/undo.$(O)                \
        $(BLD)/unexw32.$(O)             \
-       $(BLD)/window.$(O)                      \
-       $(BLD)/xdisp.$(O)                       \
+       $(BLD)/window.$(O)              \
+       $(BLD)/xdisp.$(O)               \
        $(BLD)/casetab.$(O)             \
        $(BLD)/floatfns.$(O)            \
-       $(BLD)/frame.$(O)                       \
+       $(BLD)/frame.$(O)               \
        $(BLD)/gmalloc.$(O)             \
        $(BLD)/intervals.$(O)           \
        $(BLD)/composite.$(O)           \
-       $(BLD)/ralloc.$(O)                      \
+       $(BLD)/ralloc.$(O)              \
        $(BLD)/textprop.$(O)            \
        $(BLD)/vm-limit.$(O)            \
-       $(BLD)/region-cache.$(O)                \
+       $(BLD)/region-cache.$(O)        \
        $(BLD)/strftime.$(O)            \
        $(BLD)/charset.$(O)             \
        $(BLD)/character.$(O)           \
        $(BLD)/chartab.$(O)             \
-       $(BLD)/coding.$(O)                      \
+       $(BLD)/coding.$(O)              \
        $(BLD)/category.$(O)            \
        $(BLD)/ccl.$(O)                 \
-       $(BLD)/font.$(O)                        \
+       $(BLD)/font.$(O)                \
        $(BLD)/fontset.$(O)             \
-       $(BLD)/fringe.$(O)                      \
-       $(BLD)/image.$(O)                       \
-       $(BLD)/terminal.$(O)
-
+       $(BLD)/fringe.$(O)              \
+       $(BLD)/image.$(O)               \
+       $(BLD)/terminal.$(O)            \
+        $(BLD)/menu.$(O)
 
 WIN32OBJ = $(BLD)/w32term.$(O)         \
           $(BLD)/w32xfns.$(O)          \
           $(BLD)/w32fns.$(O)           \
           $(BLD)/xfaces.$(O)           \
-          $(BLD)/w32select.$(O)                \
+          $(BLD)/w32select.$(O)        \
           $(BLD)/w32menu.$(O)          \
           $(BLD)/w32reg.$(O)
-#         $(BLD)/w32bdf.$(O)
 
 FONTOBJ = $(BLD)/w32font.$(O) $(BLD)/w32uniscribe.$(O)
 
@@ -280,28 +279,19 @@ EMACS_ROOT = ..
 SRC       = .
 CONFIG_H   = $(EMACS_ROOT)/src/s/ms-w32.h \
             $(EMACS_ROOT)/src/m/intel386.h \
-            $(EMACS_ROOT)/src/config.h
-
-$(BLD)/abbrev.$(O) : \
-       $(SRC)/abbrev.c \
-       $(CONFIG_H) \
-       $(SRC)/buffer.h \
-       $(SRC)/character.h \
-       $(SRC)/charset.h \
-       $(SRC)/commands.h \
-       $(SRC)/dispextern.h \
-       $(SRC)/syntax.h \
-       $(SRC)/w32bdf.h \
-       $(SRC)/w32gui.h \
-       $(SRC)/window.h
+            $(EMACS_ROOT)/src/config.h \
+            $(EMACS_ROOT)/nt/inc/sys/stat.h
 
 $(BLD)/alloc.$(O) : \
        $(SRC)/alloc.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
@@ -310,13 +300,17 @@ $(BLD)/alloc.$(O) : \
        $(SRC)/process.h \
        $(SRC)/puresize.h \
        $(SRC)/syssignal.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/systime.h \
+       $(SRC)/termhooks.h \
+       $(SRC)/w32.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/atimer.$(O) : \
        $(SRC)/atimer.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/syssignal.h \
@@ -325,10 +319,14 @@ $(BLD)/atimer.$(O) : \
 $(BLD)/buffer.$(O) : \
        $(SRC)/buffer.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/param.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
-       $(SRC)/charset.h \
+       $(SRC)/character.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
@@ -338,7 +336,7 @@ $(BLD)/buffer.$(O) : \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/region-cache.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -346,49 +344,57 @@ $(BLD)/bytecode.$(O) : \
        $(SRC)/bytecode.c \
        $(CONFIG_H) \
        $(SRC)/buffer.h \
-       $(SRC)/charset.h \
+       $(SRC)/character.h \
+       $(SRC)/dispextern.h \
        $(SRC)/syntax.h \
+       $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/callint.$(O) : \
        $(SRC)/callint.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/callproc.$(O) : \
        $(SRC)/callproc.c \
        $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/param.h \
-       $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
        $(SRC)/epaths.h \
+       $(SRC)/frame.h \
        $(SRC)/process.h \
        $(SRC)/syssignal.h \
+       $(SRC)/systime.h \
        $(SRC)/systty.h \
-       $(SRC)/frame.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32.h
+       $(SRC)/w32.h \
+       $(SRC)/w32gui.h
 
 $(BLD)/casefiddle.$(O) : \
        $(SRC)/casefiddle.c \
        $(CONFIG_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/keymap.h \
@@ -398,7 +404,7 @@ $(BLD)/casetab.$(O) : \
        $(SRC)/casetab.c \
        $(CONFIG_H) \
        $(SRC)/buffer.h \
-       $(SRC)/charset.h
+       $(SRC)/character.h
 
 $(BLD)/category.$(O) : \
        $(SRC)/category.c \
@@ -415,7 +421,8 @@ $(BLD)/ccl.$(O) : \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
-       $(SRC)/coding.h
+       $(SRC)/coding.h \
+       $(SRC)/composite.h
 
 $(BLD)/character.$(O) : \
        $(SRC)/character.c \
@@ -423,15 +430,14 @@ $(BLD)/character.$(O) : \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
-       $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/disptab.h
 
 $(BLD)/charset.$(O) : \
        $(SRC)/charset.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
@@ -441,27 +447,34 @@ $(BLD)/charset.$(O) : \
 $(BLD)/chartab.$(O) : \
        $(SRC)/chartab.c \
        $(CONFIG_H) \
-       $(SRC)/charset.h \
-       $(SRC)/character.h
+       $(SRC)/ccl.h \
+       $(SRC)/character.h \
+       $(SRC)/charset.h
 
 $(BLD)/cm.$(O) : \
        $(SRC)/cm.c \
        $(CONFIG_H) \
        $(SRC)/cm.h \
-       $(SRC)/termhooks.h
+       $(SRC)/dispextern.h \
+       $(SRC)/frame.h \
+       $(SRC)/termchar.h \
+       $(SRC)/termhooks.h \
+       $(SRC)/w32gui.h
 
 $(BLD)/cmds.$(O) : \
        $(SRC)/cmds.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/syntax.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -475,10 +488,8 @@ $(BLD)/coding.$(O) : \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
-       $(SRC)/intervals.h \
        $(SRC)/frame.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -486,35 +497,53 @@ $(BLD)/composite.$(O) : \
        $(SRC)/composite.c \
        $(CONFIG_H) \
        $(SRC)/buffer.h \
+       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
+       $(SRC)/font.h \
+       $(SRC)/frame.h \
        $(SRC)/intervals.h \
-       $(SRC)/w32bdf.h \
-       $(SRC)/w32gui.h
+       $(SRC)/termhooks.h \
+       $(SRC)/w32gui.h \
+       $(SRC)/window.h
 
 $(BLD)/data.$(O) : \
        $(SRC)/data.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
+       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
+       $(SRC)/font.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
        $(SRC)/puresize.h \
        $(SRC)/syssignal.h \
-       $(SRC)/termhooks.h
+       $(SRC)/systime.h \
+       $(SRC)/termhooks.h \
+       $(SRC)/w32gui.h
 
 $(BLD)/dired.$(O) : \
        $(SRC)/dired.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/grp.h \
+       $(EMACS_ROOT)/nt/inc/pwd.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/dir.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
+       $(SRC)/composite.h \
        $(SRC)/ndir.h \
        $(SRC)/regex.h \
        $(SRC)/systime.h
@@ -522,14 +551,14 @@ $(BLD)/dired.$(O) : \
 $(BLD)/dispnew.$(O) : \
        $(SRC)/dispnew.c \
        $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
-       $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/cm.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
@@ -544,7 +573,6 @@ $(BLD)/dispnew.$(O) : \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
@@ -552,48 +580,56 @@ $(BLD)/dispnew.$(O) : \
 $(BLD)/doc.$(O) : \
        $(SRC)/doc.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/keyboard.h \
-       $(SRC)/keymap.h
+       $(SRC)/keymap.h \
+       $(SRC)/systime.h
 
 $(BLD)/doprnt.$(O) : \
        $(SRC)/doprnt.c \
        $(CONFIG_H) \
-       $(SRC)/character.h \
-       $(SRC)/charset.c
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(SRC)/character.h
 
 $(BLD)/editfns.$(O) : \
        $(SRC)/editfns.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/pwd.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/emacs.$(O) : \
        $(SRC)/emacs.c \
        $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
+       $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
@@ -602,7 +638,7 @@ $(BLD)/emacs.$(O) : \
        $(SRC)/systime.h \
        $(SRC)/systty.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/w32.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
        $(SRC)/window.h
@@ -610,32 +646,34 @@ $(BLD)/emacs.$(O) : \
 $(BLD)/eval.$(O) : \
        $(SRC)/eval.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/keyboard.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h
 
 $(BLD)/fileio.$(O) : \
        $(SRC)/fileio.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/pwd.h \
-       $(EMACS_ROOT)/nt/inc/sys/param.h \
-       $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
+       $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -643,13 +681,13 @@ $(BLD)/filelock.$(O) : \
        $(SRC)/filelock.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/pwd.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
-       $(EMACS_ROOT)/src/epaths.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/systime.h
 
 $(BLD)/filemode.$(O) : \
@@ -670,12 +708,12 @@ $(BLD)/fns.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/langinfo.h \
        $(EMACS_ROOT)/nt/inc/nl_types.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
@@ -686,56 +724,69 @@ $(BLD)/fns.$(O) : \
        $(SRC)/keymap.h \
        $(SRC)/md5.h \
        $(SRC)/systime.h \
-       $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/font.$(O) : \
        $(SRC)/font.c \
        $(CONFIG_H) \
-       $(SRC)/dispextern.h \
-       $(SRC)/frame.h \
-       $(SRC)/window.h \
+       $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
-       $(SRC)/font.h
+       $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
+       $(SRC)/font.h \
+       $(SRC)/fontset.h \
+       $(SRC)/frame.h \
+       $(SRC)/w32gui.h \
+       $(SRC)/w32term.h \
+       $(SRC)/window.h
 
 $(BLD)/fontset.$(O) : \
        $(SRC)/fontset.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/font.h \
        $(SRC)/fontset.h \
        $(SRC)/frame.h \
+       $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
+       $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
+       $(SRC)/w32term.h \
        $(SRC)/window.h
 
 $(BLD)/frame.$(O) : \
        $(SRC)/frame.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
+       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
+       $(SRC)/font.h \
        $(SRC)/fontset.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
        $(SRC)/systime.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
@@ -743,45 +794,52 @@ $(BLD)/frame.$(O) : \
 $(BLD)/fringe.$(O) : \
        $(SRC)/fringe.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/termhooks.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/gmalloc.$(O) : \
        $(SRC)/gmalloc.c \
        $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/param.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(SRC)/getpagesize.h
 
-$(BLD)/image.$(O): \
+$(BLD)/image.$(O) : \
        $(SRC)/image.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
+       $(SRC)/ccl.h \
+       $(SRC)/character.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/epaths.h \
+       $(SRC)/font.h \
        $(SRC)/frame.h \
        $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
-       $(SRC)/w32heap.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
 
 $(BLD)/indent.$(O) : \
        $(SRC)/indent.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/disptab.h \
@@ -790,52 +848,54 @@ $(BLD)/indent.$(O) : \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/region-cache.h \
+       $(SRC)/systime.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/insdel.$(O) : \
        $(SRC)/insdel.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/intervals.h \
        $(SRC)/region-cache.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/intervals.$(O) : \
        $(SRC)/intervals.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
+       $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/puresize.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h
 
 $(BLD)/keyboard.$(O) : \
        $(SRC)/keyboard.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
-       $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
@@ -849,11 +909,9 @@ $(BLD)/keyboard.$(O) : \
        $(SRC)/syntax.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
-       $(SRC)/systty.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
@@ -861,22 +919,25 @@ $(BLD)/keyboard.$(O) : \
 $(BLD)/keymap.$(O) : \
        $(SRC)/keymap.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
+       $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/puresize.h \
        $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
-       $(SRC)/w32gui.h
+       $(SRC)/w32gui.h \
+       $(SRC)/window.h
 
 $(BLD)/lastfile.$(O) : \
        $(SRC)/lastfile.c \
@@ -885,32 +946,38 @@ $(BLD)/lastfile.$(O) : \
 $(BLD)/lread.$(O) : \
        $(SRC)/lread.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
-       $(EMACS_ROOT)/src/epaths.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
+       $(SRC)/epaths.h \
+       $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
+       $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h
 
 $(BLD)/macros.$(O) : \
        $(SRC)/macros.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/keyboard.h \
        $(SRC)/macros.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -918,19 +985,38 @@ $(BLD)/marker.$(O) : \
        $(SRC)/marker.c \
        $(CONFIG_H) \
        $(SRC)/buffer.h \
-       $(SRC)/character.h \
-       $(SRC)/charset.h
+       $(SRC)/character.h
 
 $(BLD)/md5.$(O) : \
        $(SRC)/md5.c \
+       $(CONFIG_H) \
        $(SRC)/md5.h
 
+$(BLD)/menu.$(O) : \
+       $(SRC)/menu.c \
+       $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
+       $(SRC)/frame.h \
+       $(SRC)/keyboard.h \
+       $(SRC)/keymap.h \
+       $(SRC)/menu.h \
+       $(SRC)/systime.h \
+       $(SRC)/termhooks.h \
+       $(SRC)/w32gui.h \
+       $(SRC)/w32term.h
+
 $(BLD)/minibuf.$(O) : \
        $(SRC)/minibuf.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
@@ -939,18 +1025,28 @@ $(BLD)/minibuf.$(O) : \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/syntax.h \
+       $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/w32.$(O) : \
        $(SRC)/w32.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/grp.h \
        $(EMACS_ROOT)/nt/inc/pwd.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/socket.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
        $(SRC)/ndir.h \
+       $(SRC)/process.h \
        $(SRC)/systime.h \
        $(SRC)/w32.h \
+       $(SRC)/w32gui.h \
        $(SRC)/w32heap.h
 
 $(BLD)/w32heap.$(O) : \
@@ -961,13 +1057,16 @@ $(BLD)/w32heap.$(O) : \
 $(BLD)/w32inevt.$(O) : \
        $(SRC)/w32inevt.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
        $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
        $(SRC)/w32term.h
@@ -977,13 +1076,18 @@ $(BLD)/w32proc.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/langinfo.h \
        $(EMACS_ROOT)/nt/inc/nl_types.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/character.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
        $(SRC)/process.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
        $(SRC)/syswait.h \
        $(SRC)/w32.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
        $(SRC)/w32term.h
@@ -991,46 +1095,56 @@ $(BLD)/w32proc.$(O) : \
 $(BLD)/w32console.$(O) : \
        $(SRC)/w32console.c \
        $(CONFIG_H) \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/disptab.h \
        $(SRC)/frame.h \
+       $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32inevt.h
 
 $(BLD)/print.$(O) : \
        $(SRC)/print.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
+       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
+       $(SRC)/font.h \
        $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/process.h \
+       $(SRC)/systime.h \
        $(SRC)/termchar.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/termhooks.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/process.$(O) : \
        $(SRC)/process.c \
        $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
+       $(EMACS_ROOT)/nt/inc/netdb.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/arpa/inet.h \
+       $(EMACS_ROOT)/nt/inc/netinet/in.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/socket.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
@@ -1045,15 +1159,19 @@ $(BLD)/process.$(O) : \
        $(SRC)/syswait.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/w32.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/ralloc.$(O) : \
        $(SRC)/ralloc.c \
        $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/param.h \
-       $(SRC)/getpagesize.h
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
+       $(SRC)/getpagesize.h \
+       $(SRC)/systime.h
 
 $(BLD)/regex.$(O) : \
        $(SRC)/regex.c \
@@ -1061,7 +1179,6 @@ $(BLD)/regex.$(O) : \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/regex.h \
        $(SRC)/syntax.h
 
@@ -1074,18 +1191,22 @@ $(BLD)/region-cache.$(O) : \
 $(BLD)/scroll.$(O) : \
        $(SRC)/scroll.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
+       $(SRC)/systime.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/search.$(O) : \
        $(SRC)/search.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1100,19 +1221,23 @@ $(BLD)/search.$(O) : \
        $(SRC)/region-cache.h \
        $(SRC)/syntax.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h
 
 $(BLD)/sound.$(O) : \
        $(SRC)/sound.c \
        $(CONFIG_H) \
-       $(SRC)/dispextern.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
-       $(SRC)/syssignal.h
+       $(SRC)/dispextern.h \
+       $(SRC)/syssignal.h \
+       $(SRC)/systime.h \
+       $(SRC)/w32gui.h
 
 $(BLD)/strftime.$(O) : \
        $(SRC)/strftime.c \
-       $(CONFIG_H)
+       $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h
 
 $(BLD)/syntax.$(O) : \
        $(SRC)/syntax.c \
@@ -1120,32 +1245,35 @@ $(BLD)/syntax.$(O) : \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
-       $(SRC)/charset.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/intervals.h \
        $(SRC)/keymap.h \
+       $(SRC)/regex.h \
        $(SRC)/syntax.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h
 
 $(BLD)/sysdep.$(O) : \
        $(SRC)/sysdep.c \
        $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/param.h \
+       $(EMACS_ROOT)/nt/inc/grp.h \
+       $(EMACS_ROOT)/nt/inc/netdb.h \
+       $(EMACS_ROOT)/nt/inc/pwd.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
        $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
-       $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/socket.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/cm.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
-       $(SRC)/ndir.h \
        $(SRC)/process.h \
-       $(SRC)/sysselect.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
        $(SRC)/systty.h \
@@ -1153,44 +1281,59 @@ $(BLD)/sysdep.$(O) : \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/w32.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/term.$(O) : \
        $(SRC)/term.c \
        $(CONFIG_H) \
-       $(SRC)/ccl.h \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/file.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(SRC)/atimer.h \
+       $(SRC)/blockinput.h \
+       $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
        $(SRC)/cm.h \
        $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/disptab.h \
        $(SRC)/frame.h \
+       $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
+       $(SRC)/syssignal.h \
+       $(SRC)/systime.h \
+       $(SRC)/systty.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/termcap.$(O) : \
        $(SRC)/termcap.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h
 
 $(BLD)/terminal.$(O) : \
        $(SRC)/terminal.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
+       $(SRC)/composite.h \
+       $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
+       $(SRC)/systime.h \
        $(SRC)/termchar.h \
-       $(SRC)/termhooks.h
+       $(SRC)/termhooks.h \
+       $(SRC)/w32gui.h
 
 $(BLD)/textprop.$(O) : \
        $(SRC)/textprop.c \
@@ -1199,7 +1342,6 @@ $(BLD)/textprop.$(O) : \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/intervals.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -1211,7 +1353,10 @@ $(BLD)/undo.$(O) : \
        $(SRC)/undo.c \
        $(CONFIG_H) \
        $(SRC)/buffer.h \
-       $(SRC)/commands.h
+       $(SRC)/commands.h \
+       $(SRC)/dispextern.h \
+       $(SRC)/w32gui.h \
+       $(SRC)/window.h
 
 $(BLD)/unexw32.$(O) : \
        $(SRC)/unexw32.c \
@@ -1226,9 +1371,11 @@ $(BLD)/vm-limit.$(O) : \
 $(BLD)/window.$(O) : \
        $(SRC)/window.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
+       $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
@@ -1240,7 +1387,7 @@ $(BLD)/window.$(O) : \
        $(SRC)/keymap.h \
        $(SRC)/systime.h \
        $(SRC)/termchar.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/termhooks.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
@@ -1248,6 +1395,8 @@ $(BLD)/window.$(O) : \
 $(BLD)/xdisp.$(O) : \
        $(SRC)/xdisp.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1272,19 +1421,21 @@ $(BLD)/xdisp.$(O) : \
        $(SRC)/systime.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
 
-$(BLD)/xfaces.$(O): \
+$(BLD)/xfaces.$(O) : \
        $(SRC)/xfaces.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
+       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
+       $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/font.h \
@@ -1295,14 +1446,14 @@ $(BLD)/xfaces.$(O): \
        $(SRC)/systime.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
 
-$(BLD)/w32fns.$(O): \
+$(BLD)/w32fns.$(O) : \
        $(SRC)/w32fns.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1320,35 +1471,38 @@ $(BLD)/w32fns.$(O): \
        $(SRC)/keyboard.h \
        $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/w32font.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
 
-$(BLD)/w32menu.$(O): \
+$(BLD)/w32menu.$(O) : \
        $(SRC)/w32menu.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/systime.h \
        $(SRC)/termhooks.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
 
-$(BLD)/w32term.$(O): \
+$(BLD)/w32term.$(O) : \
        $(SRC)/w32term.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1365,83 +1519,69 @@ $(BLD)/w32term.$(O): \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
+       $(SRC)/process.h \
        $(SRC)/systime.h \
        $(SRC)/systty.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
-       $(SRC)/w32bdf.h \
+       $(SRC)/w32font.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
 
-$(BLD)/w32select.$(O): \
+$(BLD)/w32select.$(O) : \
        $(SRC)/w32select.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
-       $(SRC)/buffer.h \
-       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
-       $(SRC)/dispextern.h \
-       $(SRC)/frame.h \
        $(SRC)/keyboard.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
        $(SRC)/w32term.h
 
-$(BLD)/w32reg.$(O): \
+$(BLD)/w32reg.$(O) : \
        $(SRC)/w32reg.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h
 
-$(BLD)/w32xfns.$(O): \
+$(BLD)/w32xfns.$(O) : \
        $(SRC)/w32xfns.c \
        $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
-       $(SRC)/character.h \
-       $(SRC)/charset.h \
-       $(SRC)/fontset.h \
-       $(SRC)/frame.h \
-       $(SRC)/keyboard.h \
-       $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
-       $(SRC)/w32gui.h \
-       $(SRC)/w32term.h
-
-$(BLD)/w32bdf.$(O): \
-       $(SRC)/w32bdf.c \
-       $(CONFIG_H) \
-       $(SRC)/atimer.h \
-       $(SRC)/blockinput.h \
-       $(SRC)/character.h \
        $(SRC)/charset.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/fontset.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
        $(SRC)/systime.h \
-       $(SRC)/w32bdf.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h
 
-$(BLD)/w32font.$(O): \
+$(BLD)/w32font.$(O) : \
        $(SRC)/w32font.c \
        $(CONFIG_H) \
+       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
+       $(SRC)/coding.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/font.h \
        $(SRC)/fontset.h \
@@ -1450,11 +1590,13 @@ $(BLD)/w32font.$(O): \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h
 
-$(BLD)/w32uniscribe.$(O): \
+$(BLD)/w32uniscribe.$(O) : \
        $(SRC)/w32uniscribe.c \
        $(CONFIG_H) \
+       $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
+       $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/font.h \
        $(SRC)/fontset.h \