comparison nt/xemacs.mak @ 1203:5f2f8dcbfb3e

[xemacs-hg @ 2003-01-12 11:04:30 by michaels] 2002-12-16 Ben Wing <ben@xemacs.org> * README (NOTE): * config.inc.samp: * config.inc.samp (PACKAGE_PREFIX): * config.inc.samp (GTK_DIR): * config.inc.samp (COMPFACE_DIR): * config.inc.samp (USE_FASTCALL): * config.inc.samp (HAVE_VC6): New. * config.inc.samp (PROFILE_SUPPORT): * config.inc.samp (DEBUG_XEMACS): * config.inc.samp (USE_PORTABLE_DUMPER): * config.inc.samp (USE_KKCC): New. * config.inc.samp (USE_UNION_TYPE): New. * xemacs.dsp (CFG): * xemacs.mak (HAVE_VC6): * xemacs.mak (ERROR_CHECK_ALL): New. * xemacs.mak (CPLUSPLUS_COMPILE): New. * xemacs.mak (USE_KKCC): New. * xemacs.mak (USE_UNION_TYPE): New. * xemacs.mak (USE_PORTABLE_DUMPER): * xemacs.mak (PROFILE_FLAGS): * xemacs.mak (CPLUSPLUS_COMPILE_FLAGS): New. * xemacs.mak (DUMPER_DEFINES): * xemacs.mak (KKCC_DEFINES): New. * xemacs.mak (DEFINES): * xemacs.mak (LASTFILE_FLAGS): * xemacs.mak (TEMACS_CPP_FLAGS_NO_CFLAGS): * xemacs.mak (OS): Support C++ compilation, KKCC compilation. See src/ChangeLog. Add stuff about the evilness of USE_UNION_TYPE.
author michaels
date Sun, 12 Jan 2003 11:04:30 +0000
parents 23dedeadeaad
children f99d3d25df86
comparison
equal deleted inserted replaced
1202:6041a741b6d6 1203:5f2f8dcbfb3e
186 DEBUG_XEMACS=0 186 DEBUG_XEMACS=0
187 !endif 187 !endif
188 !if !defined(HAVE_VC6) 188 !if !defined(HAVE_VC6)
189 HAVE_VC6=1 189 HAVE_VC6=1
190 !endif 190 !endif
191
191 !if !defined(ERROR_CHECK_ALL) 192 !if !defined(ERROR_CHECK_ALL)
192 # Turn off when not a beta XEmacs. 193 !if "$(emacs_is_beta)" != ""
193 ERROR_CHECK_ALL=1 194 ERROR_CHECK_ALL=1
195 !else
196 ERROR_CHECK_ALL=0
197 !endif
198 !endif
199
200 !if !defined(CPLUSPLUS_COMPILE)
201 !if $(ERROR_CHECK_ALL)
202 CPLUSPLUS_COMPILE=1
203 !else
204 CPLUSPLUS_COMPILE=0
205 !endif
206 !endif
207
208 !if !defined(USE_KKCC)
209 USE_KKCC=0
210 !endif
211 !if !defined(USE_UNION_TYPE)
212 USE_UNION_TYPE=0
194 !endif 213 !endif
195 !if !defined(QUICK_BUILD) 214 !if !defined(QUICK_BUILD)
196 QUICK_BUILD=0 215 QUICK_BUILD=0
197 !endif 216 !endif
198 !if !defined(VERBOSECC) 217 !if !defined(VERBOSECC)
202 DEPEND=0 221 DEPEND=0
203 !endif 222 !endif
204 !if !defined(USE_PORTABLE_DUMPER) 223 !if !defined(USE_PORTABLE_DUMPER)
205 USE_PORTABLE_DUMPER=1 224 USE_PORTABLE_DUMPER=1
206 !endif 225 !endif
207 !if !defined(USE_UNION_TYPE)
208 USE_UNION_TYPE=0
209 !endif
210 !if !defined(USE_MINITAR) 226 !if !defined(USE_MINITAR)
211 USE_MINITAR=$(HAVE_ZLIB) 227 USE_MINITAR=$(HAVE_ZLIB)
212 !endif
213 !if !defined(USE_KKCC)
214 USE_KKCC=1
215 !endif 228 !endif
216 229
217 # A little bit of adhockery. Default to use system malloc and 230 # A little bit of adhockery. Default to use system malloc and
218 # DLL version of the C runtime library when using portable 231 # DLL version of the C runtime library when using portable
219 # dumping. These are the optimal settings. 232 # dumping. These are the optimal settings.
428 PROFILE_FLAGS=-profile 441 PROFILE_FLAGS=-profile
429 !else 442 !else
430 PROFILE_FLAGS= 443 PROFILE_FLAGS=
431 !endif 444 !endif
432 445
446 !if $(CPLUSPLUS_COMPILE)
447 CPLUSPLUS_COMPILE_FLAGS=-TP
448 !else
449 CPLUSPLUS_COMPILE_FLAGS=
450 !endif
451
433 CFLAGS_NO_OPT=-nologo -W3 -DSTRICT $(DEBUG_FLAGS_COMPILE) 452 CFLAGS_NO_OPT=-nologo -W3 -DSTRICT $(DEBUG_FLAGS_COMPILE)
434 453
435 CFLAGS_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS) 454 CFLAGS_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS)
436 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG) 455 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG)
437 456
525 544
526 !if $(USE_PORTABLE_DUMPER) 545 !if $(USE_PORTABLE_DUMPER)
527 DUMPER_DEFINES=-DPDUMP 546 DUMPER_DEFINES=-DPDUMP
528 !endif 547 !endif
529 548
549 !if $(USE_KKCC)
550 KKCC_DEFINES=-DUSE_KKCC
551 !endif
552
530 !if $(USE_SYSTEM_MALLOC) 553 !if $(USE_SYSTEM_MALLOC)
531 MALLOC_DEFINES=-DSYSTEM_MALLOC 554 MALLOC_DEFINES=-DSYSTEM_MALLOC
532 !else 555 !else
533 MALLOC_DEFINES=-DGNU_MALLOC 556 MALLOC_DEFINES=-DGNU_MALLOC
534 !endif 557 !endif
546 # Generic variables 569 # Generic variables
547 570
548 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR) 571 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR)
549 572
550 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) $(UNION_DEFINES) \ 573 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) $(UNION_DEFINES) \
551 $(DUMPER_DEFINES) $(MALLOC_DEFINES) $(QUICK_DEFINES) \ 574 $(DUMPER_DEFINES) $(KKCC_DEFINES) $(MALLOC_DEFINES) \
552 $(ERROR_CHECK_DEFINES) \ 575 $(QUICK_DEFINES) $(ERROR_CHECK_DEFINES) \
553 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \ 576 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
554 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES) 577 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
555 578
556 #------------------------------------------------------------------------------ 579 #------------------------------------------------------------------------------
557 580
662 685
663 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER) 686 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
664 687
665 LASTFILE=$(OUTDIR)\lastfile.lib 688 LASTFILE=$(OUTDIR)\lastfile.lib
666 LASTFILE_SRC=$(SRC) 689 LASTFILE_SRC=$(SRC)
667 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c 690 LASTFILE_FLAGS=$(CFLAGS) $(CPLUSPLUS_COMPILE_FLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
668 LASTFILE_OBJS= \ 691 LASTFILE_OBJS= \
669 $(OUTDIR)\lastfile.obj 692 $(OUTDIR)\lastfile.obj
670 693
671 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS) 694 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
672 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS) 695 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
747 mpr.lib uuid.lib imm32.lib $(LIBC_LIB) 770 mpr.lib uuid.lib imm32.lib $(LIBC_LIB)
748 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS_LINK) -base:0x1000000\ 771 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS_LINK) -base:0x1000000\
749 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\ 772 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
750 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \ 773 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
751 -heap:0x00100000 -nodefaultlib $(PROFILE_FLAGS) setargv.obj 774 -heap:0x00100000 -nodefaultlib $(PROFILE_FLAGS) setargv.obj
752 TEMACS_CPP_FLAGS_NO_CFLAGS=-c $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \ 775 TEMACS_CPP_FLAGS_NO_CFLAGS=-c $(CPLUSPLUS_COMPILE_FLAGS) \
776 $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
753 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ 777 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
754 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ 778 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
755 $(EMACS_BETA_VERSION) \ 779 $(EMACS_BETA_VERSION) \
756 $(EMACS_PATCH_LEVEL) \ 780 $(EMACS_PATCH_LEVEL) \
757 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \ 781 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
1458 Building XEmacs using make flags "$(MAKEFLAGS)". 1482 Building XEmacs using make flags "$(MAKEFLAGS)".
1459 Building XEmacs in "$(MAKEDIR:\=\\)". 1483 Building XEmacs in "$(MAKEDIR:\=\\)".
1460 !if defined(CCV) 1484 !if defined(CCV)
1461 Using compiler "$(CC) $(CFLAGS)". 1485 Using compiler "$(CC) $(CFLAGS)".
1462 !endif 1486 !endif
1487 !if $(CPLUSPLUS_COMPILE)
1488 Compiling as C++.
1489 !endif
1463 Installing XEmacs in "$(INSTALL_DIR:\=\\)". 1490 Installing XEmacs in "$(INSTALL_DIR:\=\\)".
1464 Package path is $(PATH_PACKAGEPATH). 1491 Package path is $(PATH_PACKAGEPATH).
1465 !if $(INFODOCK) 1492 !if $(INFODOCK)
1466 Building InfoDock. 1493 Building InfoDock.
1467 !endif 1494 !endif
1475 Compiling in international (MULE) support. 1502 Compiling in international (MULE) support.
1476 !endif 1503 !endif
1477 !if $(HAVE_GTK) 1504 !if $(HAVE_GTK)
1478 -------------------------------------------------------------------- 1505 --------------------------------------------------------------------
1479 WARNING: You specified HAVE_GTK=1, but we are compiling WITHOUT GTK support. 1506 WARNING: You specified HAVE_GTK=1, but we are compiling WITHOUT GTK support.
1480 WARNING: gtk-xemacs is not currently supported on MSWindows (mingw or msvc). 1507 WARNING: gtk-xemacs is not currently supported on MS Windows (mingw or msvc).
1481 WARNING: Yes, we know that gtk has been ported to native MSWindows, but 1508 WARNING: Yes, we know that gtk has been ported to native MS Windows, but
1482 WARNING: XEmacs is not yet ready to use that port. 1509 WARNING: XEmacs is not yet ready to use that port.
1483 -------------------------------------------------------------------- 1510 --------------------------------------------------------------------
1484 !endif 1511 !endif
1485 !if $(HAVE_XPM) 1512 !if $(HAVE_XPM)
1486 Compiling in support for XPM images. 1513 Compiling in support for XPM images.
1529 !if $(HAVE_NATIVE_SOUND) 1556 !if $(HAVE_NATIVE_SOUND)
1530 Compiling in support for native sounds. 1557 Compiling in support for native sounds.
1531 !endif 1558 !endif
1532 !if $(USE_UNION_TYPE) 1559 !if $(USE_UNION_TYPE)
1533 Using union type for Lisp object storage. 1560 Using union type for Lisp object storage.
1561 WARNING: ---------------------------------------------------------
1562 WARNING: This tends to trigger compiler bugs, especially when combined
1563 WARNING: with MULE and ERROR_CHECKING. Crashes in pdump have recently
1564 WARNING: been observed using Visual C++ in combination with union type,
1565 WARNING: MULE, and ERROR_CHECKING.
1566 WARNING: ---------------------------------------------------------
1534 !endif 1567 !endif
1535 !if $(USE_PORTABLE_DUMPER) 1568 !if $(USE_PORTABLE_DUMPER)
1536 Using portable dumper. 1569 Using portable dumper.
1537 !endif 1570 !endif
1538 !if $(USE_SYSTEM_MALLOC) 1571 !if $(USE_SYSTEM_MALLOC)
1540 !endif 1573 !endif
1541 !if $(USE_CRTDLL) 1574 !if $(USE_CRTDLL)
1542 Using DLL version of C runtime library. 1575 Using DLL version of C runtime library.
1543 !endif 1576 !endif
1544 !if $(ERROR_CHECK_ALL) 1577 !if $(ERROR_CHECK_ALL)
1545 Compiling in extra internal error-checking. XEmacs will be slow! 1578 Compiling in extra internal error-checking.
1579 WARNING: ---------------------------------------------------------
1580 WARNING: Compiling in support for runtime error checking.
1581 WARNING: XEmacs will run noticeably more slowly as a result.
1582 WARNING: Error checking is on by default for XEmacs beta releases.
1583 WARNING: ---------------------------------------------------------
1546 !endif 1584 !endif
1547 !if $(DEBUG_XEMACS) 1585 !if $(DEBUG_XEMACS)
1548 Compiling in debugging support (no slowdown). 1586 Compiling in debugging support (no slowdown).
1549 !endif 1587 !endif
1550 !if $(OPTIMIZED_BUILD) 1588 !if $(OPTIMIZED_BUILD)