* buffer.c (struct sortstr.size, record_overlay_string): Don't truncate size to int.
[bpt/emacs.git] / src / makefile.w32-in
index 9d0f7df..d4fafcf 100644 (file)
@@ -1,6 +1,5 @@
 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-#   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
+# Copyright (C) 2000-2011  Free Software Foundation, Inc.
 
 # This file is part of GNU Emacs.
 
@@ -29,7 +28,7 @@ EMACSLOADPATH=$(CURDIR)/../lisp
 # HAVE_CONFIG_H is required by some generic gnu sources stuck into
 # the emacs source tree.
 #
-LOCAL_FLAGS     = -Demacs=1 -DHAVE_CONFIG_H -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
+LOCAL_FLAGS     = -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
 
 SRC             = .
 EMACS           = $(BLD)/emacs.exe
@@ -41,6 +40,7 @@ TLIB2           = $(BLD)/temacs2.$(A)
 TOBJ            = $(BLD)/firstfile.$(O)
 TRES           = $(BLD)/emacs.res
 TLASTLIB       = $(BLD)/lastfile.$(A)
+GNULIB         = ../lib/$(BLD)/libgnu.$(A)
 
 DOC            = $(OBJDIR)/etc/DOC-X
 
@@ -72,7 +72,6 @@ OBJ1 =  $(BLD)/alloc.$(O)             \
        $(BLD)/eval.$(O)                \
        $(BLD)/fileio.$(O)              \
        $(BLD)/filelock.$(O)            \
-       $(BLD)/filemode.$(O)            \
        $(BLD)/fns.$(O)                 \
        $(BLD)/indent.$(O)              \
        $(BLD)/insdel.$(O)              \
@@ -81,7 +80,6 @@ OBJ1 =  $(BLD)/alloc.$(O)             \
        $(BLD)/lread.$(O)               \
        $(BLD)/macros.$(O)              \
        $(BLD)/marker.$(O)              \
-       $(BLD)/md5.$(O)                 \
        $(BLD)/minibuf.$(O)             \
        $(BLD)/w32.$(O)                 \
        $(BLD)/w32heap.$(O)             \
@@ -107,13 +105,13 @@ OBJ2 =  $(BLD)/sysdep.$(O)                \
        $(BLD)/floatfns.$(O)            \
        $(BLD)/frame.$(O)               \
        $(BLD)/gmalloc.$(O)             \
+       $(BLD)/gnutls.$(O)              \
        $(BLD)/intervals.$(O)           \
        $(BLD)/composite.$(O)           \
        $(BLD)/ralloc.$(O)              \
        $(BLD)/textprop.$(O)            \
        $(BLD)/vm-limit.$(O)            \
        $(BLD)/region-cache.$(O)        \
-       $(BLD)/strftime.$(O)            \
        $(BLD)/bidi.$(O)                \
        $(BLD)/charset.$(O)             \
        $(BLD)/character.$(O)           \
@@ -141,6 +139,7 @@ LIBS =  $(TLIB0)    \
        $(TLIB1)        \
        $(TLIB2)        \
        $(TLASTLIB)     \
+       $(GNULIB)       \
        $(WINMM)        \
        $(ADVAPI32)     \
        $(GDI32)        \
@@ -152,6 +151,7 @@ LIBS =  $(TLIB0)    \
        $(OLE32)        \
        $(COMCTL32)     \
        $(UNISCRIBE)    \
+       $(USER_LIBS)    \
        $(libc)
 
 #
@@ -175,7 +175,7 @@ $(EMACS):       $(DOC) $(TEMACS)
 #
 temacs:         stamp_BLD $(TEMACS)
 $(TEMACS):      $(TLIB0) $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) \
-                 ../nt/$(BLD)/addsection.exe
+                 ../nt/$(BLD)/addsection.exe $(GNULIB)
        $(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
        "../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 21
 
@@ -193,6 +193,9 @@ make-buildobj-CMD:
        echo $(OBJ2)            \>> buildobj.h
        echo ^">> buildobj.h
 
+# "
+# The above line is here to countermand the single quote
+# on the last "echo" command above, wrt font-lock.
 make-buildobj-SH:
        echo '#define BUILDOBJ $(DQUOTE)\'  > buildobj.h
        echo $(OBJ0)                   '\' >> buildobj.h
@@ -200,6 +203,39 @@ make-buildobj-SH:
        echo $(OBJ2)                   '\' >> buildobj.h
        echo '$(DQUOTE)'                   >> buildobj.h
 
+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 \
+       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 \
+       charset.c coding.c category.c ccl.c character.c chartab.c \
+       cm.c term.c terminal.c xfaces.c \
+       emacs.c keyboard.c macros.c keymap.c sysdep.c \
+       buffer.c filelock.c insdel.c marker.c \
+       minibuf.c fileio.c dired.c \
+       cmds.c casetab.c casefiddle.c indent.c search.c regex.c undo.c \
+       alloc.c data.c doc.c editfns.c callint.c \
+       eval.c floatfns.c fns.c print.c lread.c \
+       syntax.c bytecode.c \
+       process.c callproc.c unexw32.c \
+       region-cache.c sound.c atimer.c \
+       doprnt.c intervals.c textprop.c composite.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)
+
+globals.h: gl-stamp
+       @cmd /c rem true
+
+gl-stamp: ../lib-src/$(BLD)/make-docfile.exe $(GLOBAL_SOURCES)
+       - $(DEL) gl-tmp
+       "../lib-src/$(BLD)/make-docfile" -d . -g $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
+       cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
+       - $(DEL) gl-tmp
+       echo timestamp > $@
+
 bootstrap: bootstrap-emacs
 
 #
@@ -208,9 +244,15 @@ 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:
+bootstrap-temacs-CMD:
+       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(ESC_CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
+
+bootstrap-temacs-SH:
        $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
 
+bootstrap-temacs:
+       $(MAKE) $(MFLAGS) bootstrap-temacs-$(SHELLTYPE)
+
 #
 # Dump an Emacs executable named bootstrap-emacs containing the
 # files from loadup.el in source form.
@@ -276,7 +318,7 @@ clean:
        - $(DEL) "s/*.h~" "m/*.h~"
        - $(DEL) $(COMPILER_TEMP_FILES)
        - $(DEL_TREE) $(OBJDIR)
-       - $(DEL) stamp_BLD
+       - $(DEL) stamp_BLD gl-stamp globals.h
        - $(DEL) buildobj.h
 
 distclean:     cleanall
@@ -296,7 +338,7 @@ cleanall:   clean
 ##
 ## This works only with GNU Make.
 
-TAGS: $(OBJ0) $(OBJ1) $(OBJ2)
+TAGS: $(OBJ0) $(OBJ1) $(OBJ2) $(CURDIR)/m/intel386.h $(CURDIR)/s/ms-w32.h
        $(MAKE) $(MFLAGS) TAGS-$(MAKETYPE)
 
 TAGS-LISP: $(OBJ0) $(OBJ1) $(OBJ2)
@@ -310,7 +352,7 @@ TAGS-gmake:
          $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ1))
        ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
          $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ2)) \
-         $(CURDIR)/*.h
+         $(CURDIR)/*.h $(CURDIR)/m/intel386.h $(CURDIR)/s/ms-w32.h
 
 TAGS-nmake:
        echo This target is not supported with NMake
@@ -344,13 +386,22 @@ CONFIG_H   = $(EMACS_ROOT)/src/s/ms-w32.h \
             $(EMACS_ROOT)/src/m/intel386.h \
             $(EMACS_ROOT)/src/config.h \
             $(EMACS_ROOT)/nt/inc/sys/stat.h
+LISP_H     = $(SRC)/lisp.h \
+            $(SRC)/globals.h \
+            $(EMACS_ROOT)/lib/intprops.h \
+            $(EMACS_ROOT)/nt/inc/inttypes.h \
+            $(EMACS_ROOT)/nt/inc/stdint.h
+PROCESS_H  = $(SRC)/process.h \
+            $(EMACS_ROOT)/nt/inc/unistd.h \
+            $(SRC)/gnutls.h
 
 $(BLD)/alloc.$(O) : \
        $(SRC)/alloc.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -361,7 +412,6 @@ $(BLD)/alloc.$(O) : \
        $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
-       $(SRC)/process.h \
        $(SRC)/puresize.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
@@ -375,7 +425,7 @@ $(BLD)/atimer.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/syssignal.h \
@@ -384,12 +434,14 @@ $(BLD)/atimer.$(O) : \
 $(BLD)/bidi.$(O) : \
        $(SRC)/bidi.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/bidimirror.h \
        $(SRC)/biditype.h \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/dispextern.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h
 
 $(BLD)/buffer.$(O) : \
@@ -398,7 +450,7 @@ $(BLD)/buffer.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/param.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -420,11 +472,13 @@ $(BLD)/buffer.$(O) : \
 $(BLD)/bytecode.$(O) : \
        $(SRC)/bytecode.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/dispextern.h \
        $(SRC)/syntax.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -432,8 +486,9 @@ $(BLD)/callint.$(O) : \
        $(SRC)/callint.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
+       $(SRC)/character.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
        $(SRC)/composite.h \
@@ -449,8 +504,10 @@ $(BLD)/callproc.$(O) : \
        $(CONFIG_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/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -462,7 +519,6 @@ $(BLD)/callproc.$(O) : \
        $(SRC)/dispextern.h \
        $(SRC)/epaths.h \
        $(SRC)/frame.h \
-       $(SRC)/process.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
        $(SRC)/systty.h \
@@ -473,7 +529,7 @@ $(BLD)/callproc.$(O) : \
 $(BLD)/casefiddle.$(O) : \
        $(SRC)/casefiddle.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/commands.h \
@@ -484,14 +540,14 @@ $(BLD)/casefiddle.$(O) : \
 $(BLD)/casetab.$(O) : \
        $(SRC)/casetab.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h
 
 $(BLD)/category.$(O) : \
        $(SRC)/category.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
@@ -501,7 +557,7 @@ $(BLD)/category.$(O) : \
 $(BLD)/ccl.$(O) : \
        $(SRC)/ccl.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
@@ -511,7 +567,7 @@ $(BLD)/ccl.$(O) : \
 $(BLD)/character.$(O) : \
        $(SRC)/character.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
@@ -522,7 +578,7 @@ $(BLD)/charset.$(O) : \
        $(SRC)/charset.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
@@ -533,7 +589,7 @@ $(BLD)/charset.$(O) : \
 $(BLD)/chartab.$(O) : \
        $(SRC)/chartab.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h
@@ -542,7 +598,7 @@ $(BLD)/cmds.$(O) : \
        $(SRC)/cmds.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/coding.h \
@@ -560,7 +616,8 @@ $(BLD)/cmds.$(O) : \
 $(BLD)/coding.$(O) : \
        $(SRC)/coding.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
@@ -569,6 +626,7 @@ $(BLD)/coding.$(O) : \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
+       $(SRC)/systime.h \
        $(SRC)/termhooks.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
@@ -576,7 +634,8 @@ $(BLD)/coding.$(O) : \
 $(BLD)/composite.$(O) : \
        $(SRC)/composite.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
@@ -586,6 +645,7 @@ $(BLD)/composite.$(O) : \
        $(SRC)/font.h \
        $(SRC)/frame.h \
        $(SRC)/intervals.h \
+       $(SRC)/systime.h \
        $(SRC)/termhooks.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
@@ -594,7 +654,7 @@ $(BLD)/data.$(O) : \
        $(SRC)/data.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
@@ -618,7 +678,8 @@ $(BLD)/dired.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/dir.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/lib/filemode.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -636,7 +697,8 @@ $(BLD)/dispnew.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -651,7 +713,6 @@ $(BLD)/dispnew.$(O) : \
        $(SRC)/indent.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
-       $(SRC)/process.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
        $(SRC)/termchar.h \
@@ -668,7 +729,7 @@ $(BLD)/doc.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/coding.h \
@@ -681,7 +742,7 @@ $(BLD)/doprnt.$(O) : \
        $(SRC)/doprnt.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/character.h
 
 $(BLD)/editfns.$(O) : \
@@ -690,7 +751,9 @@ $(BLD)/editfns.$(O) : \
        $(EMACS_ROOT)/nt/inc/pwd.h \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/lib/strftime.h \
+       $(EMACS_ROOT)/lib/verify.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -709,8 +772,10 @@ $(BLD)/emacs.$(O) : \
        $(CONFIG_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/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -722,11 +787,11 @@ $(BLD)/emacs.$(O) : \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
-       $(SRC)/process.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
        $(SRC)/systty.h \
        $(SRC)/termhooks.h \
+       $(SRC)/unexec.h \
        $(SRC)/w32.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
@@ -736,7 +801,7 @@ $(BLD)/eval.$(O) : \
        $(SRC)/eval.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/coding.h \
@@ -754,7 +819,7 @@ $(BLD)/fileio.$(O) : \
        $(EMACS_ROOT)/nt/inc/pwd.h \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -776,17 +841,13 @@ $(BLD)/filelock.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/systime.h
 
-$(BLD)/filemode.$(O) : \
-       $(SRC)/filemode.c \
-       $(CONFIG_H)
-
 $(BLD)/firstfile.$(O) : \
        $(SRC)/firstfile.c \
        $(CONFIG_H)
@@ -794,7 +855,7 @@ $(BLD)/firstfile.$(O) : \
 $(BLD)/floatfns.$(O) : \
        $(SRC)/floatfns.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/syssignal.h
 
 $(BLD)/fns.$(O) : \
@@ -804,7 +865,9 @@ $(BLD)/fns.$(O) : \
        $(EMACS_ROOT)/nt/inc/nl_types.h \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/lib/md5.h \
+       $(EMACS_ROOT)/lib/sha1.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -817,7 +880,6 @@ $(BLD)/fns.$(O) : \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
-       $(SRC)/md5.h \
        $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
@@ -825,7 +887,8 @@ $(BLD)/fns.$(O) : \
 $(BLD)/font.$(O) : \
        $(SRC)/font.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
@@ -835,6 +898,7 @@ $(BLD)/font.$(O) : \
        $(SRC)/font.h \
        $(SRC)/fontset.h \
        $(SRC)/frame.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
@@ -843,7 +907,7 @@ $(BLD)/fontset.$(O) : \
        $(SRC)/fontset.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -868,7 +932,7 @@ $(BLD)/frame.$(O) : \
        $(SRC)/frame.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -893,7 +957,7 @@ $(BLD)/fringe.$(O) : \
        $(SRC)/fringe.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -910,12 +974,20 @@ $(BLD)/gmalloc.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(SRC)/getpagesize.h
 
+$(BLD)/gnutls.$(O) : \
+       $(SRC)/gnutls.c \
+       $(CONFIG_H) \
+       $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
+       $(SRC)/w32.h
+
 $(BLD)/image.$(O) : \
        $(SRC)/image.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/ccl.h \
@@ -928,6 +1000,7 @@ $(BLD)/image.$(O) : \
        $(SRC)/frame.h \
        $(SRC)/systime.h \
        $(SRC)/termhooks.h \
+       $(SRC)/w32.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h \
        $(SRC)/window.h
@@ -936,7 +1009,7 @@ $(BLD)/indent.$(O) : \
        $(SRC)/indent.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
@@ -959,7 +1032,7 @@ $(BLD)/insdel.$(O) : \
        $(SRC)/insdel.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -976,7 +1049,7 @@ $(BLD)/intervals.$(O) : \
        $(SRC)/intervals.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
@@ -994,7 +1067,8 @@ $(BLD)/keyboard.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1009,7 +1083,6 @@ $(BLD)/keyboard.$(O) : \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/macros.h \
-       $(SRC)/process.h \
        $(SRC)/puresize.h \
        $(SRC)/syntax.h \
        $(SRC)/syssignal.h \
@@ -1025,7 +1098,7 @@ $(BLD)/keymap.$(O) : \
        $(SRC)/keymap.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1055,7 +1128,7 @@ $(BLD)/lread.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1077,7 +1150,7 @@ $(BLD)/macros.$(O) : \
        $(SRC)/macros.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
@@ -1092,20 +1165,15 @@ $(BLD)/macros.$(O) : \
 $(BLD)/marker.$(O) : \
        $(SRC)/marker.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.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)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/coding.h \
@@ -1125,7 +1193,7 @@ $(BLD)/minibuf.$(O) : \
        $(SRC)/minibuf.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/coding.h \
@@ -1151,12 +1219,14 @@ $(BLD)/w32.$(O) : \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
        $(EMACS_ROOT)/nt/inc/sys/socket.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/lib/allocator.h \
+       $(EMACS_ROOT)/lib/careadlinkat.h \
+       $(LISP_H) \
+       $(PROCESS_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 \
@@ -1165,14 +1235,14 @@ $(BLD)/w32.$(O) : \
 $(BLD)/w32heap.$(O) : \
        $(SRC)/w32heap.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/w32heap.h
 
 $(BLD)/w32inevt.$(O) : \
        $(SRC)/w32inevt.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/coding.h \
@@ -1194,12 +1264,12 @@ $(BLD)/w32proc.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/file.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_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 \
@@ -1211,13 +1281,15 @@ $(BLD)/w32proc.$(O) : \
 $(BLD)/w32console.$(O) : \
        $(SRC)/w32console.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/character.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/disptab.h \
        $(SRC)/frame.h \
+       $(SRC)/systime.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/w32gui.h \
@@ -1228,7 +1300,9 @@ $(BLD)/print.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/lib/ftoastr.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1242,7 +1316,6 @@ $(BLD)/print.$(O) : \
        $(SRC)/frame.h \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
-       $(SRC)/process.h \
        $(SRC)/systime.h \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
@@ -1257,9 +1330,11 @@ $(BLD)/process.$(O) : \
        $(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/ioctl.h \
        $(EMACS_ROOT)/nt/inc/sys/socket.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1270,7 +1345,6 @@ $(BLD)/process.$(O) : \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
-       $(SRC)/process.h \
        $(SRC)/sysselect.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
@@ -1287,7 +1361,7 @@ $(BLD)/ralloc.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/getpagesize.h \
@@ -1296,7 +1370,7 @@ $(BLD)/ralloc.$(O) : \
 $(BLD)/regex.$(O) : \
        $(SRC)/regex.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
@@ -1306,7 +1380,7 @@ $(BLD)/regex.$(O) : \
 $(BLD)/region-cache.$(O) : \
        $(SRC)/region-cache.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/region-cache.h
 
@@ -1314,7 +1388,7 @@ $(BLD)/scroll.$(O) : \
        $(SRC)/scroll.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
@@ -1330,7 +1404,7 @@ $(BLD)/search.$(O) : \
        $(SRC)/search.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1352,22 +1426,18 @@ $(BLD)/sound.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/dispextern.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
        $(SRC)/w32gui.h
 
-$(BLD)/strftime.$(O) : \
-       $(SRC)/strftime.c \
-       $(CONFIG_H) \
-       $(EMACS_ROOT)/nt/inc/sys/time.h
-
 $(BLD)/syntax.$(O) : \
        $(SRC)/syntax.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
@@ -1378,6 +1448,7 @@ $(BLD)/syntax.$(O) : \
        $(SRC)/keymap.h \
        $(SRC)/regex.h \
        $(SRC)/syntax.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h
 
 $(BLD)/sysdep.$(O) : \
@@ -1388,9 +1459,14 @@ $(BLD)/sysdep.$(O) : \
        $(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/socket.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/lib/allocator.h \
+       $(EMACS_ROOT)/lib/careadlinkat.h \
+       $(EMACS_ROOT)/lib/ignore-value.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/cm.h \
@@ -1399,7 +1475,6 @@ $(BLD)/sysdep.$(O) : \
        $(SRC)/dispextern.h \
        $(SRC)/frame.h \
        $(SRC)/keyboard.h \
-       $(SRC)/process.h \
        $(SRC)/sysselect.h \
        $(SRC)/syssignal.h \
        $(SRC)/systime.h \
@@ -1417,8 +1492,9 @@ $(BLD)/term.$(O) : \
        $(CONFIG_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/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1439,6 +1515,7 @@ $(BLD)/term.$(O) : \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
+       $(SRC)/tparam.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -1446,7 +1523,7 @@ $(BLD)/terminal.$(O) : \
        $(SRC)/terminal.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
@@ -1461,45 +1538,51 @@ $(BLD)/terminal.$(O) : \
 $(BLD)/textprop.$(O) : \
        $(SRC)/textprop.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
        $(SRC)/intervals.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/tparam.$(O) : \
        $(SRC)/tparam.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h
+       $(LISP_H) \
+       $(SRC)/tparam.h
 
 $(BLD)/undo.$(O) : \
        $(SRC)/undo.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/commands.h \
        $(SRC)/dispextern.h \
+       $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
 $(BLD)/unexw32.$(O) : \
        $(SRC)/unexw32.c \
        $(CONFIG_H) \
+       $(SRC)/unexec.h \
        $(SRC)/w32heap.h
 
 $(BLD)/vm-limit.$(O) : \
        $(SRC)/vm-limit.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/mem-limits.h
 
 $(BLD)/window.$(O) : \
        $(SRC)/window.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1525,7 +1608,8 @@ $(BLD)/xdisp.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1545,7 +1629,6 @@ $(BLD)/xdisp.$(O) : \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
        $(SRC)/macros.h \
-       $(SRC)/process.h \
        $(SRC)/region-cache.h \
        $(SRC)/systime.h \
        $(SRC)/termchar.h \
@@ -1559,7 +1642,7 @@ $(BLD)/xfaces.$(O) : \
        $(SRC)/xfaces.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1585,7 +1668,7 @@ $(BLD)/w32fns.$(O) : \
        $(SRC)/w32fns.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1614,7 +1697,7 @@ $(BLD)/w32menu.$(O) : \
        $(SRC)/w32menu.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1637,8 +1720,10 @@ $(BLD)/w32term.$(O) : \
        $(SRC)/w32term.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/unistd.h \
+       $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1655,7 +1740,6 @@ $(BLD)/w32term.$(O) : \
        $(SRC)/intervals.h \
        $(SRC)/keyboard.h \
        $(SRC)/keymap.h \
-       $(SRC)/process.h \
        $(SRC)/systime.h \
        $(SRC)/systty.h \
        $(SRC)/termchar.h \
@@ -1671,14 +1755,13 @@ $(BLD)/w32select.$(O) : \
        $(SRC)/w32select.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
-       $(SRC)/keyboard.h \
        $(SRC)/systime.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32heap.h \
@@ -1688,7 +1771,7 @@ $(BLD)/w32reg.$(O) : \
        $(SRC)/w32reg.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/systime.h \
@@ -1699,7 +1782,7 @@ $(BLD)/w32xfns.$(O) : \
        $(SRC)/w32xfns.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/charset.h \
@@ -1716,7 +1799,8 @@ $(BLD)/w32xfns.$(O) : \
 $(BLD)/w32font.$(O) : \
        $(SRC)/w32font.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
@@ -1726,6 +1810,7 @@ $(BLD)/w32font.$(O) : \
        $(SRC)/font.h \
        $(SRC)/fontset.h \
        $(SRC)/frame.h \
+       $(SRC)/systime.h \
        $(SRC)/w32font.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h
@@ -1733,7 +1818,8 @@ $(BLD)/w32font.$(O) : \
 $(BLD)/w32uniscribe.$(O) : \
        $(SRC)/w32uniscribe.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(LISP_H) \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
@@ -1742,6 +1828,7 @@ $(BLD)/w32uniscribe.$(O) : \
        $(SRC)/font.h \
        $(SRC)/fontset.h \
        $(SRC)/frame.h \
+       $(SRC)/systime.h \
        $(SRC)/w32font.h \
        $(SRC)/w32gui.h \
        $(SRC)/w32term.h