]> code.delx.au - gnu-emacs/blobdiff - src/makefile.w32-in
Merge from trunk
[gnu-emacs] / src / makefile.w32-in
index ad21419ca7f91469217ed57c5e4fa05cc318d636..62c40ca1f943f8b60e415178da24aa4cb7050780 100644 (file)
@@ -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)             \
@@ -113,7 +111,6 @@ OBJ2 =  $(BLD)/sysdep.$(O)          \
        $(BLD)/textprop.$(O)            \
        $(BLD)/vm-limit.$(O)            \
        $(BLD)/region-cache.$(O)        \
-       $(BLD)/strftime.$(O)            \
        $(BLD)/bidi.$(O)                \
        $(BLD)/charset.$(O)             \
        $(BLD)/character.$(O)           \
@@ -204,6 +201,38 @@ 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
+
+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
 
 #
@@ -280,7 +309,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
@@ -348,13 +377,16 @@ 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
+PROCESS_H  = $(SRC)/process.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 \
@@ -365,7 +397,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 \
@@ -379,7 +410,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 \
@@ -388,7 +419,7 @@ $(BLD)/atimer.$(O) : \
 $(BLD)/bidi.$(O) : \
        $(SRC)/bidi.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/bidimirror.h \
        $(SRC)/biditype.h \
        $(SRC)/buffer.h \
@@ -402,7 +433,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 \
@@ -424,7 +455,7 @@ $(BLD)/buffer.$(O) : \
 $(BLD)/bytecode.$(O) : \
        $(SRC)/bytecode.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/character.h \
        $(SRC)/dispextern.h \
@@ -436,7 +467,7 @@ $(BLD)/callint.$(O) : \
        $(SRC)/callint.c \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/coding.h \
        $(SRC)/commands.h \
@@ -453,8 +484,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 \
@@ -466,7 +499,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 \
@@ -477,7 +509,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 \
@@ -488,14 +520,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 \
@@ -505,7 +537,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 \
@@ -515,7 +547,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 \
@@ -526,7 +558,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 \
@@ -537,7 +569,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
@@ -546,7 +578,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 \
@@ -564,7 +596,7 @@ $(BLD)/cmds.$(O) : \
 $(BLD)/coding.$(O) : \
        $(SRC)/coding.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
@@ -580,7 +612,7 @@ $(BLD)/coding.$(O) : \
 $(BLD)/composite.$(O) : \
        $(SRC)/composite.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
@@ -598,7 +630,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 \
@@ -622,7 +654,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 \
@@ -640,7 +673,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 \
@@ -655,7 +689,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 \
@@ -672,7 +705,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 \
@@ -685,7 +718,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) : \
@@ -694,7 +727,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/intprops.h \
+       $(EMACS_ROOT)/lib/strftime.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -713,8 +748,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 \
@@ -726,11 +763,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 \
@@ -740,7 +777,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 \
@@ -758,7 +795,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 \
@@ -780,17 +817,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)
@@ -798,7 +831,7 @@ $(BLD)/firstfile.$(O) : \
 $(BLD)/floatfns.$(O) : \
        $(SRC)/floatfns.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/syssignal.h
 
 $(BLD)/fns.$(O) : \
@@ -806,9 +839,11 @@ $(BLD)/fns.$(O) : \
        $(CONFIG_H) \
        $(EMACS_ROOT)/nt/inc/langinfo.h \
        $(EMACS_ROOT)/nt/inc/nl_types.h \
+       $(EMACS_ROOT)/nt/inc/stdint.h \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/time.h \
-       $(SRC)/lisp.h \
+       $(EMACS_ROOT)/lib/md5.h \
+       $(LISP_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -821,7 +856,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
@@ -829,7 +863,7 @@ $(BLD)/fns.$(O) : \
 $(BLD)/font.$(O) : \
        $(SRC)/font.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
@@ -847,7 +881,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 \
@@ -872,7 +906,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 \
@@ -897,7 +931,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 \
@@ -919,7 +953,7 @@ $(BLD)/image.$(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)/ccl.h \
@@ -940,7 +974,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 \
@@ -963,7 +997,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 \
@@ -980,7 +1014,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 \
@@ -998,7 +1032,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 \
@@ -1013,7 +1048,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 \
@@ -1029,7 +1063,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 \
@@ -1059,7 +1093,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 \
@@ -1081,7 +1115,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 \
@@ -1096,20 +1130,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 \
@@ -1129,7 +1158,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 \
@@ -1155,12 +1184,12 @@ $(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 \
+       $(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 \
@@ -1169,14 +1198,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 \
@@ -1198,12 +1227,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 \
@@ -1215,7 +1244,7 @@ $(BLD)/w32proc.$(O) : \
 $(BLD)/w32console.$(O) : \
        $(SRC)/w32console.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/character.h \
        $(SRC)/coding.h \
        $(SRC)/composite.h \
@@ -1232,7 +1261,10 @@ $(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 \
+       $(EMACS_ROOT)/lib/intprops.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/buffer.h \
@@ -1246,7 +1278,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 \
@@ -1261,9 +1292,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 \
@@ -1274,7 +1307,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 \
@@ -1291,7 +1323,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 \
@@ -1300,7 +1332,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 \
@@ -1310,7 +1342,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
 
@@ -1318,7 +1350,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 \
@@ -1334,7 +1366,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 \
@@ -1356,22 +1388,17 @@ $(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 \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/category.h \
        $(SRC)/character.h \
@@ -1392,9 +1419,12 @@ $(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/ignore-value.h \
+       $(LISP_H) \
+       $(PROCESS_H) \
        $(SRC)/atimer.h \
        $(SRC)/blockinput.h \
        $(SRC)/cm.h \
@@ -1403,7 +1433,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 \
@@ -1421,8 +1450,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 \
@@ -1443,6 +1473,7 @@ $(BLD)/term.$(O) : \
        $(SRC)/termchar.h \
        $(SRC)/termhooks.h \
        $(SRC)/termopts.h \
+       $(SRC)/tparam.h \
        $(SRC)/w32gui.h \
        $(SRC)/window.h
 
@@ -1450,7 +1481,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 \
@@ -1465,7 +1496,7 @@ $(BLD)/terminal.$(O) : \
 $(BLD)/textprop.$(O) : \
        $(SRC)/textprop.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/composite.h \
        $(SRC)/dispextern.h \
@@ -1476,12 +1507,13 @@ $(BLD)/textprop.$(O) : \
 $(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 \
+       $(LISP_H) \
        $(SRC)/buffer.h \
        $(SRC)/commands.h \
        $(SRC)/dispextern.h \
@@ -1491,19 +1523,20 @@ $(BLD)/undo.$(O) : \
 $(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 \
@@ -1529,7 +1562,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 \
@@ -1549,7 +1583,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 \
@@ -1563,7 +1596,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 \
@@ -1589,7 +1622,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 \
@@ -1618,7 +1651,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 \
@@ -1641,8 +1674,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 \
@@ -1659,7 +1694,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 \
@@ -1675,14 +1709,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 \
@@ -1692,7 +1725,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 \
@@ -1703,7 +1736,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 \
@@ -1720,7 +1753,7 @@ $(BLD)/w32xfns.$(O) : \
 $(BLD)/w32font.$(O) : \
        $(SRC)/w32font.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \
@@ -1737,7 +1770,7 @@ $(BLD)/w32font.$(O) : \
 $(BLD)/w32uniscribe.$(O) : \
        $(SRC)/w32uniscribe.c \
        $(CONFIG_H) \
-       $(SRC)/lisp.h \
+       $(LISP_H) \
        $(SRC)/ccl.h \
        $(SRC)/character.h \
        $(SRC)/charset.h \