]> code.delx.au - gnu-emacs/blobdiff - src/makefile.w32-in
upstream
[gnu-emacs] / src / makefile.w32-in
index f58ec1bb279126b4de1f5a52c3435704f983ba55..a296f6eb393bd78a05091a60e61fda892dc94206 100644 (file)
@@ -25,9 +25,9 @@ ALL = emacs
 EMACSLOADPATH=$(CURDIR)/../lisp
 
 # Size in MBs of the static heap in temacs.exe.
-HEAPSIZE = 27
+HEAPSIZE = $(EMACS_HEAPSIZE)
 
-LOCAL_FLAGS     = -Demacs=1 -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
+LOCAL_FLAGS     = -Demacs=1 -I../lib -I../nt/inc $(EMACS_EXTRA_C_FLAGS)
 
 SRC             = .
 EMACS           = $(BLD)/emacs.exe
@@ -125,6 +125,7 @@ OBJ2 =  $(BLD)/sysdep.$(O)          \
        $(BLD)/terminal.$(O)            \
        $(BLD)/menu.$(O)                \
        $(BLD)/xml.$(O)                 \
+       $(BLD)/profiler.$(O)            \
        $(BLD)/w32term.$(O)             \
        $(BLD)/w32xfns.$(O)             \
        $(BLD)/w32fns.$(O)              \
@@ -206,7 +207,7 @@ make-buildobj-SH:
 GLOBAL_SOURCES =   dosfns.c msdos.c \
        xterm.c xfns.c xmenu.c xselect.c xrdb.c xsmfns.c fringe.c image.c \
        fontset.c menu.c dbusbind.c \
-       w32.c w32console.c w32fns.c w32heap.c w32inevt.c \
+       w32.c w32console.c w32fns.c w32heap.c w32inevt.c cygw32.c \
        w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c \
        font.c w32font.c w32uniscribe.c \
        dispnew.c frame.c scroll.c xdisp.c window.c bidi.c \
@@ -222,18 +223,18 @@ GLOBAL_SOURCES =   dosfns.c msdos.c \
        process.c callproc.c unexw32.c \
        region-cache.c sound.c atimer.c \
        doprnt.c intervals.c textprop.c composite.c \
-       gnutls.c xml.c
+       gnutls.c xml.c profiler.c
 SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
        xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
 obj = $(GLOBAL_SOURCES:.c=.o)
 
 globals.h: gl-stamp
-       @cmd /c rem true
+       @cmd $(SWITCHCHAR)c rem true
 
 gl-stamp: ../lib-src/$(BLD)/make-docfile.exe $(GLOBAL_SOURCES)
        - $(DEL) gl-tmp
        "$(THISDIR)/../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"
+       fc.exe $(SWITCHCHAR)b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h
        - $(DEL) gl-tmp
        echo timestamp > $@
 
@@ -246,10 +247,10 @@ bootstrap: bootstrap-emacs
 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
 #          this can break with GNU Make 3.81 and later if sh.exe is used.
 bootstrap-temacs-CMD:
-       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(ESC_CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
+       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(ESC_CFLAGS) -DPURESIZE=$(EMACS_PURESIZE)$(ARGQUOTE)
 
 bootstrap-temacs-SH:
-       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
+       $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=$(EMACS_PURESIZE)$(ARGQUOTE)
 
 bootstrap-temacs:
        $(MAKE) $(MFLAGS) bootstrap-temacs-$(SHELLTYPE)
@@ -412,8 +413,6 @@ CONF_POST_H    = $(SRC)/conf_post.h \
                 $(MS_W32_H)
 CONFIG_H       = $(SRC)/config.h \
                 $(CONF_POST_H)
-DIR_H          = $(NT_INC)/sys/dir.h \
-                $(SRC)/ndir.h
 W32GUI_H       = $(SRC)/w32gui.h \
                 $(SYSTIME_H)
 DISPEXTERN_H   = $(SRC)/dispextern.h \
@@ -422,10 +421,11 @@ DISPEXTERN_H   = $(SRC)/dispextern.h \
                 $(W32GUI_H)
 FILEMODE_H     = $(GNU_LIB)/filemode.h \
                 $(NT_INC)/sys/stat.h
-FONT_H         = $(SRC)/font.h \
-                $(CCL_H)
 FRAME_H        = $(SRC)/frame.h \
                 $(DISPEXTERN_H)
+FONT_H         = $(SRC)/font.h \
+                $(CCL_H) \
+                $(FRAME_H)
 FTOASTR_H      = $(GNU_LIB)/ftoastr.h \
                 $(GNU_LIB)/intprops.h
 GRP_H          = $(NT_INC)/grp.h \
@@ -470,11 +470,15 @@ SYSSIGNAL_H    = $(SRC)/syssignal.h \
 SYSTTY_H       = $(SRC)/systty.h \
                 $(NT_INC)/sys/ioctl.h \
                 $(NT_INC)/unistd.h
+SYSWAIT_H      = $(SRC)/syswait.h \
+                $(NT_INC)/sys/wait.h
 TERMHOOKS_H    = $(SRC)/termhooks.h \
                 $(SYSTIME_H)
 W32FONT_H      = $(SRC)/w32font.h \
                 $(FONT_H)
 W32TERM_H      = $(SRC)/w32term.h \
+                $(ATIMER_H) \
+                $(FRAME_H) \
                 $(W32GUI_H)
 WINDOW_H       = $(SRC)/window.h \
                 $(DISPEXTERN_H)
@@ -484,6 +488,7 @@ $(BLD)/alloc.$(O) : \
        $(SRC)/blockinput.h \
        $(SRC)/puresize.h \
        $(SRC)/w32.h \
+       $(SRC)/w32heap.h \
        $(NT_INC)/unistd.h \
        $(GNU_LIB)/verify.h \
        $(BUFFER_H) \
@@ -574,6 +579,7 @@ $(BLD)/callproc.$(O) : \
        $(PROCESS_H) \
        $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
+       $(SYSWAIT_H) \
        $(TERMHOOKS_H)
 
 $(BLD)/casefiddle.$(O) : \
@@ -706,6 +712,7 @@ $(BLD)/dired.$(O) : \
        $(SRC)/blockinput.h \
        $(SRC)/commands.h \
        $(SRC)/regex.h \
+       $(NT_INC)/dirent.h \
        $(NT_INC)/pwd.h \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
@@ -714,7 +721,6 @@ $(BLD)/dired.$(O) : \
        $(CHARSET_H) \
        $(CODING_H) \
        $(CONFIG_H) \
-       $(DIR_H) \
        $(FILEMODE_H) \
        $(GRP_H) \
        $(LISP_H) \
@@ -729,8 +735,9 @@ $(BLD)/dispnew.$(O) : \
        $(SRC)/disptab.h \
        $(SRC)/indent.h \
        $(SRC)/termchar.h \
-       $(SRC)/termopts.h \
+       $(SRC)/w32.h \
        $(NT_INC)/unistd.h \
+       $(GNU_LIB)/fpending.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -793,8 +800,10 @@ $(BLD)/emacs.$(O) : \
        $(SRC)/unexec.h \
        $(SRC)/w32.h \
        $(SRC)/w32heap.h \
+       $(SRC)/w32select.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/unistd.h \
+       $(GNU_LIB)/close-stream.h \
        $(GNU_LIB)/ignore-value.h \
        $(ATIMER_H) \
        $(BUFFER_H) \
@@ -808,6 +817,7 @@ $(BLD)/emacs.$(O) : \
        $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
+       $(W32FONT_H) \
        $(W32TERM_H) \
        $(WINDOW_H)
 
@@ -825,7 +835,9 @@ $(BLD)/fileio.$(O) : \
        $(SRC)/fileio.c \
        $(SRC)/blockinput.h \
        $(SRC)/commands.h \
+       $(SRC)/w32.h \
        $(NT_INC)/pwd.h \
+       $(NT_INC)/sys/file.h \
        $(NT_INC)/sys/stat.h \
        $(NT_INC)/unistd.h \
        $(BUFFER_H) \
@@ -953,6 +965,7 @@ $(BLD)/fringe.$(O) : \
 
 $(BLD)/gmalloc.$(O) : \
        $(SRC)/gmalloc.c \
+       $(SRC)/w32heap.h \
        $(NT_INC)/stdint.h \
        $(NT_INC)/unistd.h \
        $(CONFIG_H)
@@ -972,6 +985,13 @@ $(BLD)/xml.$(O) : \
        $(CONFIG_H) \
        $(LISP_H)
 
+$(BLD)/profiler.$(O) : \
+       $(SRC)/profiler.c \
+       $(CONFIG_H) \
+       $(LISP_H) \
+       $(SYSSIGNAL_H) \
+       $(SYSTIME_H)
+
 $(BLD)/image.$(O) : \
        $(SRC)/image.c \
        $(SRC)/blockinput.h \
@@ -999,7 +1019,6 @@ $(BLD)/indent.$(O) : \
        $(SRC)/indent.h \
        $(SRC)/region-cache.h \
        $(SRC)/termchar.h \
-       $(SRC)/termopts.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CONFIG_H) \
@@ -1154,9 +1173,11 @@ $(BLD)/minibuf.$(O) : \
 
 $(BLD)/w32.$(O) : \
        $(SRC)/w32.c \
-       $(SRC)/ndir.h \
        $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
+       $(SRC)/w32select.h \
+       $(NT_INC)/dirent.h \
        $(NT_INC)/pwd.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/sys/time.h \
@@ -1173,6 +1194,7 @@ $(BLD)/w32.$(O) : \
 
 $(BLD)/w32heap.$(O) : \
        $(SRC)/w32heap.c \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
        $(CONFIG_H) \
        $(LISP_H)
@@ -1194,8 +1216,8 @@ $(BLD)/w32inevt.$(O) : \
 
 $(BLD)/w32proc.$(O) : \
        $(SRC)/w32proc.c \
-       $(SRC)/syswait.h \
        $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
        $(NT_INC)/nl_types.h \
        $(NT_INC)/sys/file.h \
@@ -1207,13 +1229,14 @@ $(BLD)/w32proc.$(O) : \
        $(PROCESS_H) \
        $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
+       $(SYSWAIT_H) \
        $(W32TERM_H)
 
 $(BLD)/w32console.$(O) : \
        $(SRC)/w32console.c \
        $(SRC)/disptab.h \
        $(SRC)/termchar.h \
-       $(SRC)/w32heap.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32inevt.h \
        $(CHARACTER_H) \
        $(CODING_H) \
@@ -1222,6 +1245,7 @@ $(BLD)/w32console.$(O) : \
        $(FRAME_H) \
        $(LISP_H) \
        $(TERMHOOKS_H) \
+       $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/print.$(O) : \
@@ -1250,7 +1274,6 @@ $(BLD)/process.$(O) : \
        $(SRC)/composite.h \
        $(SRC)/gnutls.h \
        $(SRC)/sysselect.h \
-       $(SRC)/syswait.h \
        $(SRC)/termopts.h \
        $(NT_INC)/arpa/inet.h \
        $(NT_INC)/netdb.h \
@@ -1273,6 +1296,7 @@ $(BLD)/process.$(O) : \
        $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
+       $(SYSWAIT_H) \
        $(TERMHOOKS_H) \
        $(W32TERM_H) \
        $(WINDOW_H)
@@ -1356,7 +1380,6 @@ $(BLD)/sysdep.$(O) : \
        $(SRC)/blockinput.h \
        $(SRC)/cm.h \
        $(SRC)/sysselect.h \
-       $(SRC)/syswait.h \
        $(SRC)/termchar.h \
        $(SRC)/termopts.h \
        $(NT_INC)/netdb.h \
@@ -1381,6 +1404,7 @@ $(BLD)/sysdep.$(O) : \
        $(SYSSIGNAL_H) \
        $(SYSTIME_H) \
        $(SYSTTY_H) \
+       $(SYSWAIT_H) \
        $(TERMHOOKS_H) \
        $(WINDOW_H)
 
@@ -1392,7 +1416,6 @@ $(BLD)/term.$(O) : \
        $(SRC)/disptab.h \
        $(SRC)/keymap.h \
        $(SRC)/termchar.h \
-       $(SRC)/termopts.h \
        $(SRC)/tparam.h \
        $(NT_INC)/sys/file.h \
        $(NT_INC)/sys/time.h \
@@ -1410,6 +1433,7 @@ $(BLD)/term.$(O) : \
        $(SYSSIGNAL_H) \
        $(SYSTTY_H) \
        $(TERMHOOKS_H) \
+       $(W32TERM_H) \
        $(WINDOW_H)
 
 $(BLD)/terminal.$(O) : \
@@ -1450,12 +1474,16 @@ $(BLD)/undo.$(O) : \
 $(BLD)/unexw32.$(O) : \
        $(SRC)/unexw32.c \
        $(SRC)/unexec.h \
+       $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
-       $(CONFIG_H)
+       $(CONFIG_H) \
+       $(LISP_H)
 
 $(BLD)/vm-limit.$(O) : \
        $(SRC)/vm-limit.c \
        $(SRC)/mem-limits.h \
+       $(SRC)/w32heap.h \
        $(NT_INC)/unistd.h \
        $(CONFIG_H) \
        $(LISP_H)
@@ -1536,7 +1564,9 @@ $(BLD)/w32fns.$(O) : \
        $(SRC)/epaths.h \
        $(SRC)/fontset.h \
        $(SRC)/w32.h \
+       $(SRC)/w32common.h \
        $(SRC)/w32heap.h \
+       $(NT_INC)/unistd.h \
        $(BUFFER_H) \
        $(CCL_H) \
        $(CHARACTER_H) \
@@ -1559,7 +1589,7 @@ $(BLD)/w32menu.$(O) : \
        $(SRC)/w32menu.c \
        $(SRC)/blockinput.h \
        $(SRC)/keymap.h \
-       $(SRC)/w32heap.h \
+       $(SRC)/w32common.h \
        $(BUFFER_H) \
        $(CHARACTER_H) \
        $(CHARSET_H) \
@@ -1609,10 +1639,11 @@ $(BLD)/w32select.$(O) : \
        $(SRC)/w32select.c \
        $(SRC)/blockinput.h \
        $(SRC)/composite.h \
-       $(SRC)/w32heap.h \
+       $(SRC)/w32common.h \
        $(CHARSET_H) \
        $(CODING_H) \
        $(CONFIG_H) \
+       $(KEYBOARD_H) \
        $(LISP_H) \
        $(W32TERM_H)