# HG changeset patch # User stephent # Date 995527198 0 # Node ID 406bf4f67ac1955f87868b7fb7d20c5b66bd37c8 # Parent abac34c62a39073ea5734ea43fea793b2aa50ba6 [xemacs-hg @ 2001-07-19 07:19:58 by stephent] xemacs-patches: <15142.14867.525787.322728@turnbull.sk.tsukuba.ac.jp> 2001-06-12 Stephen J. Turnbull * xemacs.mak (HAVE_ZLIB): New, defaults to HAVE_PNG. (USE_MINITAR): Default to HAVE_ZLIB. (MSW_LIBS): Add comctl32.lib if HAVE_WIDGETS. (mostlyclean, nicenclean, distclean, versionclean): Only one target per invocation of $(DEL); don't use unneeded switches (WinME support). (TEMACS_CPP_FLAGS): Add EMACS_PATCH_LEVEL. diff -r abac34c62a39 -r 406bf4f67ac1 nt/ChangeLog --- a/nt/ChangeLog Wed Jul 18 21:26:06 2001 +0000 +++ b/nt/ChangeLog Thu Jul 19 07:19:58 2001 +0000 @@ -1,3 +1,13 @@ +2001-06-12 Stephen J. Turnbull + + * xemacs.mak (HAVE_ZLIB): New, defaults to HAVE_PNG. + (USE_MINITAR): Default to HAVE_ZLIB. + (MSW_LIBS): Add comctl32.lib if HAVE_WIDGETS. + (mostlyclean, nicenclean, distclean, versionclean): Only one target + per invocation of $(DEL); don't use unneeded switches (WinME support). + + (TEMACS_CPP_FLAGS): Add EMACS_PATCH_LEVEL. + 2001-05-28 Nick V. Pakoulin * xemacs.mak (install): Replace calls to (x)copy commands with diff -r abac34c62a39 -r 406bf4f67ac1 nt/xemacs.mak --- a/nt/xemacs.mak Wed Jul 18 21:26:06 2001 +0000 +++ b/nt/xemacs.mak Thu Jul 19 07:19:58 2001 +0000 @@ -46,6 +46,8 @@ # Define a variable for the 'del' command to use +# N.B. Windows Millenium Edition's ERASE can only handle one target (file or +# wildcard) per invocation. Make sure each use has only one target! DEL=-del # Define a variable for 'copy' command to use @@ -125,6 +127,9 @@ !if !defined(HAVE_PNG) HAVE_PNG=0 !endif +!if !defined(HAVE_ZLIB) +HAVE_ZLIB=$(HAVE_PNG) +!endif !if !defined(HAVE_TIFF) HAVE_TIFF=0 !endif @@ -165,7 +170,7 @@ USE_UNION_TYPE=0 !endif !if !defined(USE_MINITAR) -USE_MINITAR=1 +USE_MINITAR=$(HAVE_ZLIB) !endif !if !defined(USE_MINIMAL_TAGBITS) USE_MINIMAL_TAGBITS=0 @@ -428,7 +433,6 @@ MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj -MSW_LIBS=$(MSW_LIBS) comctl32.lib !endif !if $(HAVE_DIALOGS) MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS @@ -438,6 +442,9 @@ !if $(HAVE_WIDGETS) MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS !endif +!if $(HAVE_TOOLBARS) || $(HAVE_WIDGETS) +MSW_LIBS=$(MSW_LIBS) comctl32.lib +!endif !if $(HAVE_NATIVE_SOUND) MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND !endif @@ -506,6 +513,7 @@ $(SRC)\Emacs.ad.h \ $(SRC)\paths.h +# #### Copying is cheap, we should just force these $(SRC)\config.h: config.h @$(COPY) config.h $(SRC) @@ -864,6 +872,7 @@ -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ $(EMACS_BETA_VERSION) \ + $(EMACS_PATCH_LEVEL) \ -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \ -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \ -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\" @@ -1433,34 +1442,56 @@ mostlyclean: $(DEL) $(XEMACS)\Installation - $(DEL) $(OUTDIR)\*.lib $(OUTDIR)\*.obj $(OUTDIR)\*.pdb - $(DEL) $(OUTDIR)\*.res $(OUTDIR)\*.sbr - $(DEL) $(SRC)\*.exe $(SRC)\*.map $(SRC)\*.bsc $(SRC)\*.pdb - $(DEL) $(LIB_SRC)\*.exe $(LIB_SRC)\*.obj $(LIB_SRC)\*.pdb + $(DEL) $(OUTDIR)\*.lib + $(DEL) $(OUTDIR)\*.obj + $(DEL) $(OUTDIR)\*.pdb + $(DEL) $(OUTDIR)\*.res + $(DEL) $(OUTDIR)\*.sbr + $(DEL) $(SRC)\*.exe + $(DEL) $(SRC)\*.map + $(DEL) $(SRC)\*.bsc + $(DEL) $(SRC)\*.pdb + $(DEL) $(LIB_SRC)\*.exe + $(DEL) $(LIB_SRC)\*.obj + $(DEL) $(LIB_SRC)\*.pdb $(DEL) $(LIB_SRC)\*.res clean: mostlyclean versionclean $(DEL) $(XEMACS)\TAGS nicenclean: clean - $(DEL) $(NT)\*.bak $(NT)\*.orig $(NT)\*.rej $(NT)\*.tmp - $(DEL) $(LIB_SRC)\*.bak $(LIB_SRC)\*.orig $(LIB_SRC)\*.rej + $(DEL) $(NT)\*.bak + $(DEL) $(NT)\*.orig + $(DEL) $(NT)\*.rej + $(DEL) $(NT)\*.tmp + $(DEL) $(LIB_SRC)\*.bak + $(DEL) $(LIB_SRC)\*.orig + $(DEL) $(LIB_SRC)\*.rej $(DEL) $(LIB_SRC)\*.tmp - $(DEL) $(SRC)\*.bak $(SRC)\*.orig $(SRC)\*.rej $(SRC)\*.tmp - $(DEL) /s $(LISP)\*.bak $(LISP)\*.orig $(LISP)\*.rej $(LISP)\*.tmp + $(DEL) $(SRC)\*.bak + $(DEL) $(SRC)\*.orig + $(DEL) $(SRC)\*.rej + $(DEL) $(SRC)\*.tmp + $(DEL) $(LISP)\*.bak + $(DEL) $(LISP)\*.orig + $(DEL) $(LISP)\*.rej + $(DEL) $(LISP)\*.tmp ## This is used in making a distribution. ## Do not use it on development directories! distclean: nicenclean - $(DEL) $(SRC)\config.h $(SRC)\paths.h $(SRC)\Emacs.ad.h - $(DEL) $(LIB_SRC)\$(CONFIG_VALUES) + $(DEL) $(SRC)\config.h + $(DEL) $(SRC)\paths.h + $(DEL) $(SRC)\Emacs.ad.h + $(DEL) $(CONFIG_VALUES) $(DEL) $(INFODIR)\*.info* - $(DEL) /s /q $(LISP)\*.elc + $(DEL) $(LISP)\*.elc realclean: distclean versionclean: - $(DEL) $(SRC)\xemacs.exe $(LIB_SRC)\DOC + $(DEL) $(SRC)\xemacs.exe + $(DEL) $(LIB_SRC)\DOC #not sure about those wildcards. DOS wildcards are stupid compared to Unix, #and could end up deleting *everything* instead of just backup files or