Contents in 1999-06-04-13 of release-21-2.
[chise/xemacs-chise.git.1] / nt / xemacs.mak
index 4743085..9cff2b0 100644 (file)
@@ -28,6 +28,7 @@ XEMACS=..
 LISP=$(XEMACS)\lisp
 MODULES=$(XEMACS)\modules
 NT=$(XEMACS)\nt
+OUTDIR=$(NT)\obj
 
 # Program name and version
 
@@ -66,11 +67,18 @@ INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
 ! endif
 !endif
+!if !defined(HAVE_MULE)
+HAVE_MULE=0
+!endif
 !if !defined(PACKAGE_PATH)
 ! if !defined(PACKAGE_PREFIX)
 PACKAGE_PREFIX=c:\Program Files\XEmacs
 ! endif
+! if $(HAVE_MULE)
 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
+! else
+PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
+! endif
 !endif
 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
 !if !defined(HAVE_MSW)
@@ -79,9 +87,6 @@ HAVE_MSW=1
 !if !defined(HAVE_X)
 HAVE_X=0
 !endif
-!if !defined(HAVE_MULE)
-HAVE_MULE=0
-!endif
 !if !defined(HAVE_XPM)
 HAVE_XPM=0
 !endif
@@ -94,6 +99,9 @@ HAVE_TIFF=0
 !if !defined(HAVE_JPEG)
 HAVE_JPEG=0
 !endif
+!if !defined(HAVE_XFACE)
+HAVE_XFACE=0
+!endif
 !if !defined(HAVE_GIF)
 HAVE_GIF=1
 !endif
@@ -125,7 +133,8 @@ USE_INDEXED_LRECORD_IMPLEMENTATION=0
 #
 # System configuration
 #
-!if !defined(PROCESSOR_ARCHITECTURE) && "$(OS)" != "Windows_NT"
+!if !defined(OS)
+OS=Windows_95/98
 EMACS_CONFIGURATION=i586-pc-win32
 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
 EMACS_CONFIGURATION=i586-pc-win32
@@ -199,8 +208,16 @@ CONFIG_ERROR=1
 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
 CONFIG_ERROR=1
 !endif
+!if $(HAVE_MSW) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
+!message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
+CONFIG_ERROR=1
+!endif
+!if $(HAVE_MSW) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
+!message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
+CONFIG_ERROR=1
+!endif
 !if $(HAVE_MSW) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
-!error Toolbars require XPM support
+!message Toolbars require XPM support
 CONFIG_ERROR=1
 !endif
 !if $(CONFIG_ERROR)
@@ -216,76 +233,6 @@ USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
 !endif
 
 #
-# Small configuration report
-#
-!if !defined(CONF_REPORT_ALREADY_PRINTED)
-!if [set CONF_REPORT_ALREADY_PRINTED=1]
-!endif
-!message ------------------------------------------------
-!message XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename) configured for "$(EMACS_CONFIGURATION)".
-!message 
-!message Installation directory is "$(INSTALL_DIR)".
-!message Package path is "$(PACKAGE_PATH)".
-!message 
-!if $(INFODOCK)
-!message Building InfoDock.
-!endif
-!if $(HAVE_MSW)
-!message Compiling in support for native GUI.
-!endif
-!if $(HAVE_X)
-!message Compiling in support for X-Windows.
-!endif
-!if $(HAVE_MULE)
-!message Compiling in MULE.
-!endif
-!if $(HAVE_XPM)
-!message Compiling in support for XPM images.
-!endif
-!if $(HAVE_GIF)
-!message Compiling in support for GIF images.
-!endif
-!if $(HAVE_PNG)
-!message Compiling in support for PNG images.
-!endif
-!if $(HAVE_TIFF)
-!message Compiling in support for TIFF images.
-!endif
-!if $(HAVE_JPEG)
-!message Compiling in support for JPEG images.
-!endif
-!if $(HAVE_TOOLBARS)
-!message Compiling in support for toolbars.
-!endif
-!if $(HAVE_DIALOGS)
-!message Compiling in support for dialogs.
-!endif
-!if $(HAVE_NATIVE_SOUND)
-!message Compiling in support for native sounds.
-!endif
-!if $(HAVE_MSW_C_DIRED)
-# Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs to use C
-# primitives to significantly speed up dired, at the expense of an
-# additional ~4KB of code.
-!message Compiling in fast dired implementation.
-!endif
-!if $(USE_MINIMAL_TAGBITS)
-!message Using minimal tagbits.
-!endif
-!if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
-!message Using indexed lrecord implementation.
-!endif
-!if $(USE_UNION_TYPE)
-!message Using union type for Lisp object storage.
-!endif
-!if $(DEBUG_XEMACS)
-!message Compiling in extra debug checks. XEmacs will be slow!
-!endif
-!message ------------------------------------------------
-!message 
-!endif # !defined(CONF_REPORT_ALREADY_PRINTED)
-
-#
 # Compiler command echo control. Define VERBOSECC=1 to get vebose compilation.
 #
 !if !defined(VERBOSECC)
@@ -300,7 +247,7 @@ CCV=@$(CC)
 !if $(DEBUG_XEMACS)
 OPT=-Od -Zi
 !else
-OPT=-O2 -G5 -Zi
+OPT=-O2 -G5
 !endif
 
 CFLAGS=-nologo -W3 $(OPT)
@@ -345,6 +292,11 @@ MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
 !endif
+!if $(HAVE_XFACE)
+MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
+MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
+MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
+!endif
 !if $(HAVE_TOOLBARS)
 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
 MSW_TOOLBAR_SRC=$(XEMACS)\src\toolbar.c $(XEMACS)\src\toolbar-msw.c
@@ -367,7 +319,7 @@ MULE_DEFINES=-DMULE
 
 !if $(DEBUG_XEMACS)
 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG 
-DEBUG_FLAGS= -debugtype:both -debug:full
+DEBUG_FLAGS=-debug:full
 !endif
 
 !if $(USE_MINIMAL_TAGBITS)
@@ -399,49 +351,6 @@ DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
        -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \
        -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
 
-OUTDIR=obj
-
-#
-# Creating simplified versions of Installation and Installation.el
-#
-# Some values cannot be written on the same line with
-# their key, since they cannot be put inside an echo command.
-# Macro substitution (:"=\", :\=\\) can be performed on values in order
-# to create a legal string in LISP for Installation.el.
-#
-!if [echo OS: $(OS)>Installation] ||\
-[echo XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for ^`$(EMACS_CONFIGURATION)^'.>>Installation] ||\
-[echo Where should the build process find the source code?>>Installation] ||\
-[echo $(MAKEDIR:\=\\)>>Installation]
-!endif
-# Compiler Information
-!if defined(CCV) &&\
-[echo What compiler should XEmacs be built with?>>Installation] &&\
-[echo $(CC) $(CFLAGS)>>Installation]
-!endif
-# Window System Information
-!if [echo What window system should XEmacs use?>>Installation]
-!endif
-!if (defined (HAVE_X) && $(HAVE_X) == 1)
-!if [echo X11>>Installation]
-!endif
-!endif
-!if (defined (HAVE_MSW) && $(HAVE_MSW) == 1)
-!if [echo MS Windows>>Installation]
-!endif
-!endif
-!if (!defined (HAVE_MSW) && !defined (HAVE_X))
-!if [echo Please specify at least one HAVE_MSW^=1 and^/or HAVE_X^=1>>Installation]
-!endif
-!endif
-# Creation of Installation.el
-!if [type Installation] ||\
-[echo (setq Installation-string ^">Installation.el] ||\
-[type Installation >>Installation.el] ||\
-[echo ^")>>Installation.el]
-!endif
-
-
 #------------------------------------------------------------------------------
 
 default: $(OUTDIR)\nul all 
@@ -452,8 +361,7 @@ $(OUTDIR)\nul:
 XEMACS_INCLUDES=\
  $(XEMACS)\src\config.h \
  $(XEMACS)\src\Emacs.ad.h \
- $(XEMACS)\src\paths.h \
- $(XEMACS)\src\puresize-adjust.h
+ $(XEMACS)\src\paths.h
 
 $(XEMACS)\src\config.h:        config.h
        copy config.h $(XEMACS)\src
@@ -464,9 +372,6 @@ $(XEMACS)\src\Emacs.ad.h:   Emacs.ad.h
 $(XEMACS)\src\paths.h: paths.h
        copy paths.h $(XEMACS)\src
 
-$(XEMACS)\src\puresize-adjust.h:       puresize-adjust.h
-       copy puresize-adjust.h $(XEMACS)\src
-
 #------------------------------------------------------------------------------
 
 # lib-src programs
@@ -481,17 +386,18 @@ CONFIG_VALUES = $(LIB_SRC)\config.values
 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
 !endif
 # MAKEDIR has to be made into a string.
-!if [echo blddir>>$(CONFIG_VALUES) && echo ^"$(MAKEDIR:\=\\)\\..^">>$(CONFIG_VALUES)]
+#!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
+!if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
 !endif
-!if [echo CC>>$(CONFIG_VALUES) && echo ^"$(CC:\=\\)^">>$(CONFIG_VALUES)]
+!if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
 !endif
-!if [echo CFLAGS>>$(CONFIG_VALUES) && echo ^"$(CFLAGS:\=\\)^">>$(CONFIG_VALUES)]
+!if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
 !endif
-!if [echo CPP>>$(CONFIG_VALUES) && echo ^"$(CPP:\=\\)^">>$(CONFIG_VALUES)]
+!if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
 !endif
-!if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo ^"$(CPPFLAGS:\=\\)^">>$(CONFIG_VALUES)]
+!if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
 !endif
-!if [echo LISPDIR>>$(CONFIG_VALUES) && echo ^"$(MAKEDIR:\=\\)\\$(LISP:\=\\)^">>$(CONFIG_VALUES)]
+!if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
 !endif
 # PATH_PACKAGEPATH is already a quoted string.
 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
@@ -500,7 +406,7 @@ CONFIG_VALUES = $(LIB_SRC)\config.values
 # Inferred rule
 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
        @cd $(LIB_SRC)
-       $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $**
+       $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** -link -incremental:no
        @cd $(NT)
 
 # Individual dependencies
@@ -508,7 +414,7 @@ ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
        @cd $(LIB_SRC)
-       $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib
+       $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib -link -incremental:no
        @cd $(NT)
 
 LIB_SRC_TOOLS = \
@@ -527,10 +433,10 @@ LIB_SRC_TOOLS = \
 RUNEMACS = $(XEMACS)\src\runxemacs.exe
 
 $(RUNEMACS): $(LIB_SRC)\run.c $(LIB_SRC)\run.res
-       $(CCV) -I$(LIB_SRC) -O2 -Fe$@ $** kernel32.lib user32.lib
+       $(CCV) -I$(LIB_SRC) $(CFLAGS) -Fe$@ -Fo$(LIB_SRC) -Fd$(LIB_SRC)\ $** kernel32.lib user32.lib -link -incremental:no
 
 $(LIB_SRC)\run.res: $(LIB_SRC)\run.rc
-       rc -I$(LIB_SRC) -FO$(LIB_SRC)\run.res $(LIB_SRC)\run.rc
+       rc -I$(LIB_SRC) -Fo$@ $**
 
 #------------------------------------------------------------------------------
 
@@ -538,7 +444,7 @@ $(LIB_SRC)\run.res: $(LIB_SRC)\run.rc
 
 LASTFILE=$(OUTDIR)\lastfile.lib
 LASTFILE_SRC=$(XEMACS)\src
-LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -c
+LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
 LASTFILE_OBJS= \
        $(OUTDIR)\lastfile.obj
 
@@ -570,7 +476,7 @@ LWLIB_OBJS= \
        $(OUTDIR)\xlwscrollbar.obj
 
 $(LWLIB): $(LWLIB_OBJS)
-       link.exe -lib -nologo $(DEBUG_FLAGS) -out:$@ $(LWLIB_OBJS)
+       link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
 
 $(OUTDIR)\lwlib-config.obj:    $(LWLIB_SRC)\lwlib-config.c
         $(CCV) $(LWLIB_FLAGS) $**
@@ -676,6 +582,7 @@ DOC_SRC4=\
  $(XEMACS)\src\regex.c \
  $(XEMACS)\src\scrollbar.c \
  $(XEMACS)\src\search.c \
+ $(XEMACS)\src\select.c \
  $(XEMACS)\src\signal.c \
  $(XEMACS)\src\sound.c 
 DOC_SRC5=\
@@ -714,7 +621,7 @@ DOC_SRC6=\
  $(XEMACS)\src\balloon-x.c \
  $(XEMACS)\src\xgccache.c \
  $(XEMACS)\src\xmu.c \
- $(XEMACS)\src\xselect.c 
+ $(XEMACS)\src\select-x.c 
 !endif
 
 !if $(HAVE_MSW)
@@ -772,7 +679,8 @@ TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
  -stack:0x800000 -entry:_start -subsystem:console\
  -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
  -heap:0x00100000 -out:$@
-TEMACS_CPP_FLAGS=-ML -c $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
+TEMACS_CPP_FLAGS=-ML -c \
+ $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
  -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
  -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
  $(EMACS_BETA_VERSION) \
@@ -802,7 +710,7 @@ TEMACS_X_OBJS=\
        $(OUTDIR)\scrollbar-x.obj \
        $(OUTDIR)\xgccache.obj \
        $(OUTDIR)\xmu.obj \
-       $(OUTDIR)\xselect.obj
+       $(OUTDIR)\select-x.obj
 !endif
 
 !if $(HAVE_MSW)
@@ -922,6 +830,7 @@ TEMACS_OBJS= \
        $(OUTDIR)\regex.obj \
        $(OUTDIR)\scrollbar.obj \
        $(OUTDIR)\search.obj \
+       $(OUTDIR)\select.obj \
        $(OUTDIR)\signal.obj \
        $(OUTDIR)\sound.obj \
        $(OUTDIR)\specifier.obj \
@@ -935,7 +844,7 @@ TEMACS_OBJS= \
        $(OUTDIR)\vm-limit.obj \
        $(OUTDIR)\widget.obj \
        $(OUTDIR)\window.obj \
-       $(NT)\xemacs.res
+       $(OUTDIR)\xemacs.res
 
 # Rules
 
@@ -943,8 +852,13 @@ TEMACS_OBJS= \
 .SUFFIXES:     .c
 
 # nmake rule
+!if $(DEBUG_XEMACS)
 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
-       $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr
+       $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
+!else
+{$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
+       $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@
+!endif
 
 $(OUTDIR)\TopLevelEmacsShell.obj:      $(TEMACS_SRC)\EmacsShell-sub.c
        $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
@@ -952,7 +866,7 @@ $(OUTDIR)\TopLevelEmacsShell.obj:   $(TEMACS_SRC)\EmacsShell-sub.c
 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
        $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
 
-$(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c $(TEMACS_SRC)\puresize-adjust.h
+$(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c
 
 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
 #      !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
@@ -961,18 +875,17 @@ $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c $(TEMACS_SRC)\puresize-adjust.h
 #      !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
 
 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS)
+!if $(DEBUG_XEMACS)
+       @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
+       bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
+       @del bscmake.tmp
+!endif
        link.exe @<<
   $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS)
 <<
 
-$(NT)\xemacs.res: xemacs.rc
-       rc xemacs.rc
-
-# MSDEV Source Broswer file. "*.sbr" is too inclusive but this is harmless
-$(TEMACS_BROWSE): $(TEMACS_OBJS)
-       @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
-       bscmake -nologo -o$@ @bscmake.tmp
-       @del bscmake.tmp
+$(OUTDIR)\xemacs.res: xemacs.rc
+       rc -Fo$@ xemacs.rc
 
 #------------------------------------------------------------------------------
 
@@ -993,10 +906,7 @@ $(DOC): $(LIB_SRC)\make-docfile.exe
        $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
        $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
 
-$(LISP)\Installation.el: Installation.el
-       copy Installation.el $(LISP)
-
-update-elc: $(LISP)\Installation.el
+update-elc:
        set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
        set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
        $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el
@@ -1014,8 +924,8 @@ dump-xemacs: $(TEMACS)
 #------------------------------------------------------------------------------
 
 # use this rule to build the complete system
-all:   $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(LIB_SRC_TOOLS) $(RUNEMACS) \
-       $(TEMACS) $(TEMACS_BROWSE) update-elc $(DOC) dump-xemacs
+all:   Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(LIB_SRC_TOOLS) $(RUNEMACS) \
+       $(TEMACS) update-elc $(DOC) dump-xemacs
 
 temacs: $(TEMACS)
 
@@ -1047,14 +957,15 @@ distclean:
        del *.bak
        del *.orig
        del *.rej
-       del *.pdb
        del *.tmp
+       del Installation
        cd $(OUTDIR)
+       del *.lib
        del *.obj
+       del *.pdb
+       del *.res
        del *.sbr
-       del *.lib
        cd $(XEMACS)\$(TEMACS_DIR)
-       del puresize-adjust.h
        del config.h
        del paths.h
        del Emacs.ad.h
@@ -1071,6 +982,9 @@ distclean:
        del *.orig
        del *.rej
        del *.exe
+       del *.obj
+       del *.pdb
+       del *.res
        del $(CONFIG_VALUES)
        cd $(LISP)
        -del /s /q *.bak *.elc *.orig *.rej
@@ -1078,5 +992,98 @@ distclean:
 depend:
        mkdepend -f xemacs.mak -p$(OUTDIR)\ -o.obj -w9999 -- $(TEMACS_CPP_FLAGS) --  $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(DOC_SRC9) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c $(LIB_SRC)\run.c
 
+Installation:
+       @type > Installation <<
+!if defined(OS)
+OS: $(OS)
+!endif
+
+XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for `$(EMACS_CONFIGURATION)'.
+
+  Building XEmacs in \"$(MAKEDIR:\=\\)\".
+!if defined(CCV)
+  Using compiler \"$(CC) $(CFLAGS)\".
+!endif
+  Installing XEmacs in \"$(INSTALL_DIR:\=\\)\".
+  Package path is $(PATH_PACKAGEPATH:"=\").
+!if $(INFODOCK)
+  Building InfoDock.
+!endif
+!if $(HAVE_MSW)
+  Compiling in support for Microsoft Windows native GUI.
+!endif
+!if $(HAVE_X)
+  Compiling in support for X-Windows.
+!endif
+!if $(HAVE_MULE)
+  Compiling in MULE.
+!endif
+!if $(HAVE_XPM)
+  Compiling in support for XPM images.
+!else
+  --------------------------------------------------------------------
+  WARNING: Compiling without XPM support.
+  WARNING: You should strongly consider installing XPM.
+  WARNING: Otherwise toolbars and other graphics will look suboptimal.
+  WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
+  --------------------------------------------------------------------
+!endif
+!if $(HAVE_GIF)
+  Compiling in support for GIF images.
+!endif
+!if $(HAVE_PNG)
+  Compiling in support for PNG images.
+!else
+  --------------------------------------------------------------------
+  WARNING: Compiling without PNG image support.
+  WARNING: You should strongly consider installing the PNG libraries.
+  WARNING: Otherwise certain images and glyphs may not display.
+  WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
+  --------------------------------------------------------------------
+!endif
+!if $(HAVE_TIFF)
+  Compiling in support for TIFF images.
+!endif
+!if $(HAVE_JPEG)
+  Compiling in support for JPEG images.
+!endif
+!if $(HAVE_XFACE)
+  Compiling in support for X-Face message headers.
+!endif
+!if $(HAVE_TOOLBARS)
+  Compiling in support for toolbars.
+!endif
+!if $(HAVE_DIALOGS)
+  Compiling in support for dialogs.
+!endif
+!if $(HAVE_NATIVE_SOUND)
+  Compiling in support for native sounds.
+!endif
+!if $(HAVE_MSW_C_DIRED)
+  Compiling in fast dired implementation.
+!else
+  --------------------------------------------------------------------
+  WARNING: Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs
+  WARNING: to use C primitives to significantly speed up dired, at the
+  WARNING: expense of an additional ~4KB of code.
+  --------------------------------------------------------------------
+!endif
+!if $(USE_MINIMAL_TAGBITS)
+  Using minimal tagbits.
+!endif
+!if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
+  Using indexed lrecord implementation.
+!endif
+!if $(USE_UNION_TYPE)
+  Using union type for Lisp object storage.
+!endif
+!if $(DEBUG_XEMACS)
+  Compiling in extra debug checks. XEmacs will be slow!
+!endif
+<<NOKEEP
+       @echo --------------------------------------------------------------------
+       @type Installation
+       @echo --------------------------------------------------------------------
+
 # DO NOT DELETE THIS LINE -- make depend depends on it.