Mercurial > hg > xemacs-beta
comparison nt/xemacs.mak @ 325:f2b5d7006b0a r21-0-60
Import from CVS: tag r21-0-60
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:47:35 +0200 |
parents | 19dcec799385 |
children | 03446687b7cc |
comparison
equal
deleted
inserted
replaced
324:8f2460f6e1f6 | 325:f2b5d7006b0a |
---|---|
217 # | 217 # |
218 !if !defined(CONF_REPORT_ALREADY_PRINTED) | 218 !if !defined(CONF_REPORT_ALREADY_PRINTED) |
219 !if [set CONF_REPORT_ALREADY_PRINTED=1] | 219 !if [set CONF_REPORT_ALREADY_PRINTED=1] |
220 !endif | 220 !endif |
221 !message ------------------------------------------------ | 221 !message ------------------------------------------------ |
222 !message Configured for "$(EMACS_CONFIGURATION)". | 222 !message XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename) configured for "$(EMACS_CONFIGURATION)". |
223 !message | 223 !message |
224 !message Installation directory is "$(INSTALL_DIR)". | 224 !message Installation directory is "$(INSTALL_DIR)". |
225 !message Package path is $(PATH_PACKAGEPATH). | 225 !message Package path is $(PATH_PACKAGEPATH). |
226 !message | 226 !message |
227 !if $(INFODOCK) | 227 !if $(INFODOCK) |
396 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \ | 396 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \ |
397 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES) | 397 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES) |
398 | 398 |
399 OUTDIR=obj | 399 OUTDIR=obj |
400 | 400 |
401 # | |
402 # Creating simplified versions of Installation and Installation.el | |
403 # | |
404 # Some values cannot be written on the same line with | |
405 # their key, since they cannot be put inside an echo command. | |
406 # Macro substitution (:"=\", :\=\\) can be performed on values in order | |
407 # to create a legal string in LISP for Installation.el. | |
408 # | |
409 !if [echo OS: $(OS)>Installation] ||\ | |
410 [echo XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for ^`$(EMACS_CONFIGURATION)^'.>>Installation] ||\ | |
411 [echo Where should the build process find the source code?>>Installation] ||\ | |
412 [echo $(MAKEDIR:\=\\)>>Installation] | |
413 !endif | |
414 # Compiler Information | |
415 !if defined(CCV) &&\ | |
416 [echo What compiler should XEmacs be built with?>>Installation] &&\ | |
417 [echo $(CCV)>>Installation] | |
418 !endif | |
419 # Window System Information | |
420 !if [echo What window system should XEmacs use?>>Installation] | |
421 !endif | |
422 !if (defined (HAVE_X) && $(HAVE_X) == 1) | |
423 !if [echo X11>>Installation] | |
424 !endif | |
425 !endif | |
426 !if (defined (HAVE_MSW) && $(HAVE_MSW) == 1) | |
427 !if [echo MS Windows>>Installation] | |
428 !endif | |
429 !endif | |
430 !if (!defined (HAVE_MSW) && !defined (HAVE_X)) | |
431 !if [echo Please specify at least one HAVE_MSW^=1 and^/or HAVE_X^=1>>Installation] | |
432 !endif | |
433 !endif | |
434 # Creation of Installation.el | |
435 !if [type Installation] ||\ | |
436 [echo (setq Installation-string ^">Installation.el] ||\ | |
437 [type Installation >>Installation.el] ||\ | |
438 [echo ^")>>Installation.el] | |
439 !endif | |
440 | |
441 | |
401 #------------------------------------------------------------------------------ | 442 #------------------------------------------------------------------------------ |
402 | 443 |
403 default: $(OUTDIR)\nul all | 444 default: $(OUTDIR)\nul all |
404 | 445 |
405 $(OUTDIR)\nul: | 446 $(OUTDIR)\nul: |
428 # lib-src programs | 469 # lib-src programs |
429 | 470 |
430 LIB_SRC = $(XEMACS)\lib-src | 471 LIB_SRC = $(XEMACS)\lib-src |
431 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32 -DWINDOWSNT | 472 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32 -DWINDOWSNT |
432 | 473 |
474 # | |
475 # Creating config.values to be used by config.el | |
476 # | |
477 CONFIG_VALUES = $(LIB_SRC)\config.values | |
478 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)] | |
479 !endif | |
480 # MAKEDIR has to be made into a string. | |
481 !if [echo blddir>>$(CONFIG_VALUES) && echo ^"$(MAKEDIR:\=\\)\\..^">>$(CONFIG_VALUES)] | |
482 !endif | |
483 !if [echo CC>>$(CONFIG_VALUES) && echo ^"$(CC:\=\\)^">>$(CONFIG_VALUES)] | |
484 !endif | |
485 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo ^"$(CFLAGS:\=\\)^">>$(CONFIG_VALUES)] | |
486 !endif | |
487 !if [echo CPP>>$(CONFIG_VALUES) && echo ^"$(CPP:\=\\)^">>$(CONFIG_VALUES)] | |
488 !endif | |
489 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo ^"$(CPPFLAGS:\=\\)^">>$(CONFIG_VALUES)] | |
490 !endif | |
491 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo ^"$(MAKEDIR:\=\\)\\$(LISP:\=\\)^">>$(CONFIG_VALUES)] | |
492 !endif | |
493 # PATH_PACKAGEPATH is already a quoted string. | |
494 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)] | |
495 !endif | |
496 | |
433 # Inferred rule | 497 # Inferred rule |
434 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe : | 498 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe : |
435 @cd $(LIB_SRC) | 499 @cd $(LIB_SRC) |
436 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) -O2 -W3 -Fe$@ $** | 500 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) -O2 -W3 -Fe$@ $** |
437 @cd $(NT) | 501 @cd $(NT) |
438 | 502 |
439 # Individual dependencies | 503 # Individual dependencies |
440 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c | 504 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c |
441 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS) | 505 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS) |
442 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(ETAGS_DEPS) | 506 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS) |
443 | 507 |
444 LIB_SRC_TOOLS = \ | 508 LIB_SRC_TOOLS = \ |
445 $(LIB_SRC)/make-docfile.exe \ | 509 $(LIB_SRC)/make-docfile.exe \ |
446 $(LIB_SRC)/hexl.exe \ | 510 $(LIB_SRC)/hexl.exe \ |
447 $(LIB_SRC)/movemail.exe \ | 511 $(LIB_SRC)/movemail.exe \ |
949 @xcopy /q PROBLEMS "$(INSTALL_DIR)\" | 1013 @xcopy /q PROBLEMS "$(INSTALL_DIR)\" |
950 @xcopy /q README "$(INSTALL_DIR)\lock\" | 1014 @xcopy /q README "$(INSTALL_DIR)\lock\" |
951 @del "$(INSTALL_DIR)\lock\README" | 1015 @del "$(INSTALL_DIR)\lock\README" |
952 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\" | 1016 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\" |
953 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | 1017 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" |
1018 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | |
954 @copy $(XEMACS)\src\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | 1019 @copy $(XEMACS)\src\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" |
955 @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | 1020 @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" |
956 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\" | 1021 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\" |
957 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\" | 1022 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\" |
958 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\" | 1023 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\" |
983 del DOC | 1048 del DOC |
984 del *.bak | 1049 del *.bak |
985 del *.orig | 1050 del *.orig |
986 del *.rej | 1051 del *.rej |
987 del *.exe | 1052 del *.exe |
1053 del $(CONFIG_VALUES) | |
988 cd $(LISP) | 1054 cd $(LISP) |
989 -del /s /q *.bak *.elc *.orig *.rej | 1055 -del /s /q *.bak *.elc *.orig *.rej |
990 | 1056 |
991 depend: | 1057 depend: |
992 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 .\runemacs.c | 1058 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 .\runemacs.c |