Mercurial > hg > xemacs-beta
comparison nt/xemacs.mak @ 632:406bf4f67ac1
[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 <stephen@xemacs.org>
* 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.
author | stephent |
---|---|
date | Thu, 19 Jul 2001 07:19:58 +0000 |
parents | 28e2f03164f1 |
children | 2538b7200a20 |
comparison
equal
deleted
inserted
replaced
631:abac34c62a39 | 632:406bf4f67ac1 |
---|---|
44 MAKEDIRSTRING=$(MAKEDIR:\=\\) | 44 MAKEDIRSTRING=$(MAKEDIR:\=\\) |
45 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=) | 45 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=) |
46 | 46 |
47 | 47 |
48 # Define a variable for the 'del' command to use | 48 # Define a variable for the 'del' command to use |
49 # N.B. Windows Millenium Edition's ERASE can only handle one target (file or | |
50 # wildcard) per invocation. Make sure each use has only one target! | |
49 DEL=-del | 51 DEL=-del |
50 | 52 |
51 # Define a variable for 'copy' command to use | 53 # Define a variable for 'copy' command to use |
52 # Suppress confirmation for overwriting files | 54 # Suppress confirmation for overwriting files |
53 COPY=xcopy /q /y | 55 COPY=xcopy /q /y |
123 HAVE_XPM=0 | 125 HAVE_XPM=0 |
124 !endif | 126 !endif |
125 !if !defined(HAVE_PNG) | 127 !if !defined(HAVE_PNG) |
126 HAVE_PNG=0 | 128 HAVE_PNG=0 |
127 !endif | 129 !endif |
130 !if !defined(HAVE_ZLIB) | |
131 HAVE_ZLIB=$(HAVE_PNG) | |
132 !endif | |
128 !if !defined(HAVE_TIFF) | 133 !if !defined(HAVE_TIFF) |
129 HAVE_TIFF=0 | 134 HAVE_TIFF=0 |
130 !endif | 135 !endif |
131 !if !defined(HAVE_JPEG) | 136 !if !defined(HAVE_JPEG) |
132 HAVE_JPEG=0 | 137 HAVE_JPEG=0 |
163 !endif | 168 !endif |
164 !if !defined(USE_UNION_TYPE) | 169 !if !defined(USE_UNION_TYPE) |
165 USE_UNION_TYPE=0 | 170 USE_UNION_TYPE=0 |
166 !endif | 171 !endif |
167 !if !defined(USE_MINITAR) | 172 !if !defined(USE_MINITAR) |
168 USE_MINITAR=1 | 173 USE_MINITAR=$(HAVE_ZLIB) |
169 !endif | 174 !endif |
170 !if !defined(USE_MINIMAL_TAGBITS) | 175 !if !defined(USE_MINIMAL_TAGBITS) |
171 USE_MINIMAL_TAGBITS=0 | 176 USE_MINIMAL_TAGBITS=0 |
172 !endif | 177 !endif |
173 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION) | 178 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION) |
426 !endif | 431 !endif |
427 !if $(HAVE_TOOLBARS) | 432 !if $(HAVE_TOOLBARS) |
428 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS | 433 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS |
429 MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c | 434 MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c |
430 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj | 435 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj |
431 MSW_LIBS=$(MSW_LIBS) comctl32.lib | |
432 !endif | 436 !endif |
433 !if $(HAVE_DIALOGS) | 437 !if $(HAVE_DIALOGS) |
434 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS | 438 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS |
435 MSW_DIALOG_SRC=$(SRC)\dialog.c $(SRC)\dialog-msw.c | 439 MSW_DIALOG_SRC=$(SRC)\dialog.c $(SRC)\dialog-msw.c |
436 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj | 440 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj |
437 !endif | 441 !endif |
438 !if $(HAVE_WIDGETS) | 442 !if $(HAVE_WIDGETS) |
439 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS | 443 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS |
444 !endif | |
445 !if $(HAVE_TOOLBARS) || $(HAVE_WIDGETS) | |
446 MSW_LIBS=$(MSW_LIBS) comctl32.lib | |
440 !endif | 447 !endif |
441 !if $(HAVE_NATIVE_SOUND) | 448 !if $(HAVE_NATIVE_SOUND) |
442 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND | 449 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND |
443 !endif | 450 !endif |
444 !endif | 451 !endif |
504 XEMACS_INCLUDES=\ | 511 XEMACS_INCLUDES=\ |
505 $(SRC)\config.h \ | 512 $(SRC)\config.h \ |
506 $(SRC)\Emacs.ad.h \ | 513 $(SRC)\Emacs.ad.h \ |
507 $(SRC)\paths.h | 514 $(SRC)\paths.h |
508 | 515 |
516 # #### Copying is cheap, we should just force these | |
509 $(SRC)\config.h: config.h | 517 $(SRC)\config.h: config.h |
510 @$(COPY) config.h $(SRC) | 518 @$(COPY) config.h $(SRC) |
511 | 519 |
512 $(SRC)\Emacs.ad.h: Emacs.ad.h | 520 $(SRC)\Emacs.ad.h: Emacs.ad.h |
513 @$(COPY) Emacs.ad.h $(SRC) | 521 @$(COPY) Emacs.ad.h $(SRC) |
862 TEMACS_CPP_FLAGS=-c \ | 870 TEMACS_CPP_FLAGS=-c \ |
863 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \ | 871 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \ |
864 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ | 872 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ |
865 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ | 873 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ |
866 $(EMACS_BETA_VERSION) \ | 874 $(EMACS_BETA_VERSION) \ |
875 $(EMACS_PATCH_LEVEL) \ | |
867 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \ | 876 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \ |
868 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \ | 877 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \ |
869 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\" | 878 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\" |
870 | 879 |
871 !if $(HAVE_X_WINDOWS) | 880 !if $(HAVE_X_WINDOWS) |
1431 $(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder" | 1440 $(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder" |
1432 $(DEL) PlaceHolder | 1441 $(DEL) PlaceHolder |
1433 | 1442 |
1434 mostlyclean: | 1443 mostlyclean: |
1435 $(DEL) $(XEMACS)\Installation | 1444 $(DEL) $(XEMACS)\Installation |
1436 $(DEL) $(OUTDIR)\*.lib $(OUTDIR)\*.obj $(OUTDIR)\*.pdb | 1445 $(DEL) $(OUTDIR)\*.lib |
1437 $(DEL) $(OUTDIR)\*.res $(OUTDIR)\*.sbr | 1446 $(DEL) $(OUTDIR)\*.obj |
1438 $(DEL) $(SRC)\*.exe $(SRC)\*.map $(SRC)\*.bsc $(SRC)\*.pdb | 1447 $(DEL) $(OUTDIR)\*.pdb |
1439 $(DEL) $(LIB_SRC)\*.exe $(LIB_SRC)\*.obj $(LIB_SRC)\*.pdb | 1448 $(DEL) $(OUTDIR)\*.res |
1449 $(DEL) $(OUTDIR)\*.sbr | |
1450 $(DEL) $(SRC)\*.exe | |
1451 $(DEL) $(SRC)\*.map | |
1452 $(DEL) $(SRC)\*.bsc | |
1453 $(DEL) $(SRC)\*.pdb | |
1454 $(DEL) $(LIB_SRC)\*.exe | |
1455 $(DEL) $(LIB_SRC)\*.obj | |
1456 $(DEL) $(LIB_SRC)\*.pdb | |
1440 $(DEL) $(LIB_SRC)\*.res | 1457 $(DEL) $(LIB_SRC)\*.res |
1441 | 1458 |
1442 clean: mostlyclean versionclean | 1459 clean: mostlyclean versionclean |
1443 $(DEL) $(XEMACS)\TAGS | 1460 $(DEL) $(XEMACS)\TAGS |
1444 | 1461 |
1445 nicenclean: clean | 1462 nicenclean: clean |
1446 $(DEL) $(NT)\*.bak $(NT)\*.orig $(NT)\*.rej $(NT)\*.tmp | 1463 $(DEL) $(NT)\*.bak |
1447 $(DEL) $(LIB_SRC)\*.bak $(LIB_SRC)\*.orig $(LIB_SRC)\*.rej | 1464 $(DEL) $(NT)\*.orig |
1465 $(DEL) $(NT)\*.rej | |
1466 $(DEL) $(NT)\*.tmp | |
1467 $(DEL) $(LIB_SRC)\*.bak | |
1468 $(DEL) $(LIB_SRC)\*.orig | |
1469 $(DEL) $(LIB_SRC)\*.rej | |
1448 $(DEL) $(LIB_SRC)\*.tmp | 1470 $(DEL) $(LIB_SRC)\*.tmp |
1449 $(DEL) $(SRC)\*.bak $(SRC)\*.orig $(SRC)\*.rej $(SRC)\*.tmp | 1471 $(DEL) $(SRC)\*.bak |
1450 $(DEL) /s $(LISP)\*.bak $(LISP)\*.orig $(LISP)\*.rej $(LISP)\*.tmp | 1472 $(DEL) $(SRC)\*.orig |
1473 $(DEL) $(SRC)\*.rej | |
1474 $(DEL) $(SRC)\*.tmp | |
1475 $(DEL) $(LISP)\*.bak | |
1476 $(DEL) $(LISP)\*.orig | |
1477 $(DEL) $(LISP)\*.rej | |
1478 $(DEL) $(LISP)\*.tmp | |
1451 | 1479 |
1452 ## This is used in making a distribution. | 1480 ## This is used in making a distribution. |
1453 ## Do not use it on development directories! | 1481 ## Do not use it on development directories! |
1454 distclean: nicenclean | 1482 distclean: nicenclean |
1455 $(DEL) $(SRC)\config.h $(SRC)\paths.h $(SRC)\Emacs.ad.h | 1483 $(DEL) $(SRC)\config.h |
1456 $(DEL) $(LIB_SRC)\$(CONFIG_VALUES) | 1484 $(DEL) $(SRC)\paths.h |
1485 $(DEL) $(SRC)\Emacs.ad.h | |
1486 $(DEL) $(CONFIG_VALUES) | |
1457 $(DEL) $(INFODIR)\*.info* | 1487 $(DEL) $(INFODIR)\*.info* |
1458 $(DEL) /s /q $(LISP)\*.elc | 1488 $(DEL) $(LISP)\*.elc |
1459 | 1489 |
1460 realclean: distclean | 1490 realclean: distclean |
1461 | 1491 |
1462 versionclean: | 1492 versionclean: |
1463 $(DEL) $(SRC)\xemacs.exe $(LIB_SRC)\DOC | 1493 $(DEL) $(SRC)\xemacs.exe |
1494 $(DEL) $(LIB_SRC)\DOC | |
1464 | 1495 |
1465 #not sure about those wildcards. DOS wildcards are stupid compared to Unix, | 1496 #not sure about those wildcards. DOS wildcards are stupid compared to Unix, |
1466 #and could end up deleting *everything* instead of just backup files or | 1497 #and could end up deleting *everything* instead of just backup files or |
1467 #whatever. | 1498 #whatever. |
1468 #extraclean: realclean | 1499 #extraclean: realclean |