comparison nt/xemacs.mak @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 84b14dcb0985
children abe6d1db359e
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
143 !endif 143 !endif
144 !if !defined(GUNG_HO) 144 !if !defined(GUNG_HO)
145 GUNG_HO=0 145 GUNG_HO=0
146 !endif 146 !endif
147 147
148 # A little bit of adhockery. Default to use system malloc and
149 # DLL version of the C runtime library when using portable
150 # dumping. These are the optimal settings.
151 !if !defined(USE_SYSTEM_MALLOC)
152 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
153 !endif
154 !if !defined(USE_CRTDLL)
155 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
156 !endif
157
148 # 158 #
149 # System configuration 159 # System configuration
150 # 160 #
151 !if !defined(OS) 161 !if !defined(OS)
152 OS=Windows_95/98 162 OS=Windows_95/98
169 CONFIG_ERROR=0 179 CONFIG_ERROR=0
170 !if $(INFODOCK) && !exist("..\..\Infodock.rules") 180 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
171 !message Cannot build InfoDock without InfoDock sources 181 !message Cannot build InfoDock without InfoDock sources
172 CONFIG_ERROR=1 182 CONFIG_ERROR=1
173 !endif 183 !endif
184 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
185 !message Cannot use system allocator when dumping old way, use portable dumper.
186 CONFIG_ERROR=1
187 !endif
188 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
189 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
190 CONFIG_ERROR=1
191 !endif
192 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
193 !message GNU malloc currently cannot be used with CRT DLL.
194 !message [[[Developer note: If you want to fix it, read Q112297 first]]] ####
195 CONFIG_ERROR=1
196 !endif
174 !if !$(HAVE_MSW) && !$(HAVE_X) 197 !if !$(HAVE_MSW) && !$(HAVE_X)
175 !message Please specify at least one HAVE_MSW=1 and/or HAVE_X=1 198 !message Please specify at least one HAVE_MSW=1 and/or HAVE_X=1
176 CONFIG_ERROR=1 199 CONFIG_ERROR=1
177 !endif 200 !endif
178 !if $(HAVE_X) && !defined(X11_DIR) 201 !if $(HAVE_X) && !defined(X11_DIR)
263 OPT=-Od -Zi 286 OPT=-Od -Zi
264 !else 287 !else
265 OPT=-O2 -G5 288 OPT=-O2 -G5
266 !endif 289 !endif
267 290
268 CFLAGS=-nologo -W3 $(OPT) 291 !if $(USE_CRTDLL)
292 !if $(DEBUG_XEMACS)
293 C_LIBFLAG=-MDd
294 LIBC_LIB=msvcrtd.lib
295 !else
296 C_LIBFLAG=-MD
297 LIBC_LIB=msvcrt.lib
298 !endif
299 !else
300 C_LIBFLAG=-ML
301 LIBC_LIB=libc.lib
302 !endif
303
304 CFLAGS=-nologo -W3 $(OPT) $(C_LIBFLAG)
269 305
270 !if $(HAVE_X) 306 !if $(HAVE_X)
271 X_DEFINES=-DHAVE_X_WINDOWS 307 X_DEFINES=-DHAVE_X_WINDOWS
272 X_INCLUDES=-I$(X11_DIR)\include 308 X_INCLUDES=-I$(X11_DIR)\include
273 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib 309 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
345 !endif 381 !endif
346 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION) 382 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
347 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION 383 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION
348 !endif 384 !endif
349 !if $(USE_UNION_TYPE) 385 !if $(USE_UNION_TYPE)
386 UNION_DEFINES=-DUSE_UNION_TYPE
387 !endif
388
350 !if $(USE_PORTABLE_DUMPER) 389 !if $(USE_PORTABLE_DUMPER)
351 DUMPER_DEFINES=-DPDUMP 390 DUMPER_DEFINES=-DPDUMP
352 !endif 391 !endif
353 392
354 UNION_DEFINES=-DUSE_UNION_TYPE 393 !if $(USE_SYSTEM_MALLOC)
394 MALLOC_DEFINES=-DSYSTEM_MALLOC
395 !else
396 MALLOC_DEFINES=-DGNU_MALLOC
355 !endif 397 !endif
356 398
357 # Hard-coded paths 399 # Hard-coded paths
358 400
359 !if $(INFODOCK) 401 !if $(INFODOCK)
367 # Generic variables 409 # Generic variables
368 410
369 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib 411 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib
370 412
371 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \ 413 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
372 $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) $(DUMPER_DEFINES)\ 414 $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) \
415 $(DUMPER_DEFINES) $(MALLOC_DEFINES) \
373 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \ 416 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \
374 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES) 417 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
375 418
376 #------------------------------------------------------------------------------ 419 #------------------------------------------------------------------------------
377 420
472 515
473 #------------------------------------------------------------------------------ 516 #------------------------------------------------------------------------------
474 517
475 # LASTFILE Library 518 # LASTFILE Library
476 519
520 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
521
477 LASTFILE=$(OUTDIR)\lastfile.lib 522 LASTFILE=$(OUTDIR)\lastfile.lib
478 LASTFILE_SRC=$(XEMACS)\src 523 LASTFILE_SRC=$(XEMACS)\src
479 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c 524 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
480 LASTFILE_OBJS= \ 525 LASTFILE_OBJS= \
481 $(OUTDIR)\lastfile.obj 526 $(OUTDIR)\lastfile.obj
483 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS) 528 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
484 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS) 529 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
485 530
486 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c 531 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
487 $(CCV) $(LASTFILE_FLAGS) $** 532 $(CCV) $(LASTFILE_FLAGS) $**
533
534 !endif
488 535
489 #------------------------------------------------------------------------------ 536 #------------------------------------------------------------------------------
490 537
491 !if $(HAVE_X) 538 !if $(HAVE_X)
492 539
573 $(XEMACS)\src\floatfns.c \ 620 $(XEMACS)\src\floatfns.c \
574 $(XEMACS)\src\fns.c 621 $(XEMACS)\src\fns.c
575 DOC_SRC3=\ 622 DOC_SRC3=\
576 $(XEMACS)\src\font-lock.c \ 623 $(XEMACS)\src\font-lock.c \
577 $(XEMACS)\src\frame.c \ 624 $(XEMACS)\src\frame.c \
578 $(XEMACS)\src\free-hook.c \
579 $(XEMACS)\src\general.c \ 625 $(XEMACS)\src\general.c \
580 $(XEMACS)\src\glyphs.c \ 626 $(XEMACS)\src\glyphs.c \
581 $(XEMACS)\src\glyphs-eimage.c \ 627 $(XEMACS)\src\glyphs-eimage.c \
582 $(XEMACS)\src\glyphs-widget.c \ 628 $(XEMACS)\src\glyphs-widget.c \
583 $(XEMACS)\src\gmalloc.c \
584 $(XEMACS)\src\gui.c \ 629 $(XEMACS)\src\gui.c \
585 $(XEMACS)\src\gutter.c \ 630 $(XEMACS)\src\gutter.c \
586 $(XEMACS)\src\hash.c \ 631 $(XEMACS)\src\hash.c \
587 $(XEMACS)\src\imgproc.c \ 632 $(XEMACS)\src\imgproc.c \
588 $(XEMACS)\src\indent.c \ 633 $(XEMACS)\src\indent.c \
597 DOC_SRC4=\ 642 DOC_SRC4=\
598 $(XEMACS)\src\md5.c \ 643 $(XEMACS)\src\md5.c \
599 $(XEMACS)\src\menubar.c \ 644 $(XEMACS)\src\menubar.c \
600 $(XEMACS)\src\minibuf.c \ 645 $(XEMACS)\src\minibuf.c \
601 $(XEMACS)\src\nt.c \ 646 $(XEMACS)\src\nt.c \
602 $(XEMACS)\src\ntheap.c \
603 $(XEMACS)\src\ntplay.c \ 647 $(XEMACS)\src\ntplay.c \
604 $(XEMACS)\src\ntproc.c \ 648 $(XEMACS)\src\ntproc.c \
605 $(XEMACS)\src\objects.c \ 649 $(XEMACS)\src\objects.c \
606 $(XEMACS)\src\opaque.c \ 650 $(XEMACS)\src\opaque.c \
607 $(XEMACS)\src\print.c \ 651 $(XEMACS)\src\print.c \
625 $(XEMACS)\src\syntax.c \ 669 $(XEMACS)\src\syntax.c \
626 $(XEMACS)\src\sysdep.c \ 670 $(XEMACS)\src\sysdep.c \
627 $(XEMACS)\src\termcap.c \ 671 $(XEMACS)\src\termcap.c \
628 $(XEMACS)\src\tparam.c \ 672 $(XEMACS)\src\tparam.c \
629 $(XEMACS)\src\undo.c \ 673 $(XEMACS)\src\undo.c \
630 $(XEMACS)\src\unexnt.c \
631 $(XEMACS)\src\vm-limit.c \
632 $(XEMACS)\src\window.c \ 674 $(XEMACS)\src\window.c \
633 $(XEMACS)\src\widget.c 675 $(XEMACS)\src\widget.c
634 676
635 !if $(HAVE_X) 677 !if $(HAVE_X)
636 DOC_SRC6=\ 678 DOC_SRC6=\
686 ! endif 728 ! endif
687 !endif 729 !endif
688 730
689 !if $(DEBUG_XEMACS) 731 !if $(DEBUG_XEMACS)
690 DOC_SRC9=\ 732 DOC_SRC9=\
691 $(XEMACS)\src\debug.c 733 $(XEMACS)\src\debug.c \
734 $(XEMACS)\src\tests.c
735 !endif
736
737 !if !$(USE_SYSTEM_MALLOC)
738 DOC_SRC10=\
739 $(XEMACS)\src\free-hook.c \
740 $(XEMACS)\src\gmalloc.c \
741 $(XEMACS)\src\ntheap.c \
742 $(XEMACS)\src\vm-limit.c
743 !endif
744
745 !if !$(USE_PORTABLE_DUMPER)
746 DOC_SRC11=\
747 $(XEMACS)\src\unexnt.c
692 !endif 748 !endif
693 749
694 #------------------------------------------------------------------------------ 750 #------------------------------------------------------------------------------
695 751
696 # TEMACS Executable 752 # TEMACS Executable
697 753
698 # This may not exist 754 # This may not exist
699 !if "$(emacs_beta_version)" != "" 755 !if "$(emacs_beta_version)" != ""
700 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version) 756 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
701 !ENDIF 757 !ENDIF
758
759 !if !$(USE_PORTABLE_DUMPER)
760 TEMACS_ENTRYPOINT=-entry:_start
761 !endif
702 762
703 TEMACS_DIR=$(XEMACS)\src 763 TEMACS_DIR=$(XEMACS)\src
704 TEMACS=$(TEMACS_DIR)\temacs.exe 764 TEMACS=$(TEMACS_DIR)\temacs.exe
705 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc 765 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
706 TEMACS_SRC=$(XEMACS)\src 766 TEMACS_SRC=$(XEMACS)\src
707 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \ 767 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
708 kernel32.lib user32.lib gdi32.lib advapi32.lib \ 768 oldnames.lib kernel32.lib user32.lib gdi32.lib advapi32.lib \
709 shell32.lib wsock32.lib winmm.lib libc.lib 769 shell32.lib wsock32.lib winmm.lib winspool.lib $(LIBC_LIB)
710 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\ 770 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
711 -stack:0x800000 -entry:_start -subsystem:console\ 771 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:console\
712 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \ 772 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
713 -heap:0x00100000 -out:$@ 773 -heap:0x00100000 -out:$@ -nodefaultlib
714 TEMACS_CPP_FLAGS=-ML -c \ 774 TEMACS_CPP_FLAGS=-c \
715 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \ 775 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
716 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ 776 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
717 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ 777 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
718 $(EMACS_BETA_VERSION) \ 778 $(EMACS_BETA_VERSION) \
719 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \ 779 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
775 ! endif 835 ! endif
776 !endif 836 !endif
777 837
778 !if $(DEBUG_XEMACS) 838 !if $(DEBUG_XEMACS)
779 TEMACS_DEBUG_OBJS=\ 839 TEMACS_DEBUG_OBJS=\
780 $(OUTDIR)\debug.obj 840 $(OUTDIR)\debug.obj \
841 $(OUTDIR)\tests.obj
842 !endif
843
844 !if !$(USE_SYSTEM_MALLOC)
845 TEMACS_ALLOC_OBJS=\
846 $(OUTDIR)\free-hook.obj \
847 $(OUTDIR)\gmalloc.obj \
848 $(OUTDIR)\ntheap.obj \
849 $(OUTDIR)\vm-limit.obj
850 !endif
851
852 !if !$(USE_PORTABLE_DUMPER)
853 TEMACS_DUMP_OBJS=\
854 $(OUTDIR)\unexnt.obj
781 !endif 855 !endif
782 856
783 TEMACS_OBJS= \ 857 TEMACS_OBJS= \
784 $(TEMACS_X_OBJS)\ 858 $(TEMACS_X_OBJS)\
785 $(TEMACS_MSW_OBJS)\ 859 $(TEMACS_MSW_OBJS)\
786 $(TEMACS_CODING_OBJS)\ 860 $(TEMACS_CODING_OBJS)\
787 $(TEMACS_MULE_OBJS)\ 861 $(TEMACS_MULE_OBJS)\
788 $(TEMACS_DEBUG_OBJS)\ 862 $(TEMACS_DEBUG_OBJS)\
863 $(TEMACS_ALLOC_OBJS)\
864 $(TEMACS_DUMP_OBJS)\
789 $(OUTDIR)\abbrev.obj \ 865 $(OUTDIR)\abbrev.obj \
790 $(OUTDIR)\alloc.obj \ 866 $(OUTDIR)\alloc.obj \
791 $(OUTDIR)\alloca.obj \ 867 $(OUTDIR)\alloca.obj \
792 $(OUTDIR)\blocktype.obj \ 868 $(OUTDIR)\blocktype.obj \
793 $(OUTDIR)\buffer.obj \ 869 $(OUTDIR)\buffer.obj \
821 $(OUTDIR)\filemode.obj \ 897 $(OUTDIR)\filemode.obj \
822 $(OUTDIR)\floatfns.obj \ 898 $(OUTDIR)\floatfns.obj \
823 $(OUTDIR)\fns.obj \ 899 $(OUTDIR)\fns.obj \
824 $(OUTDIR)\font-lock.obj \ 900 $(OUTDIR)\font-lock.obj \
825 $(OUTDIR)\frame.obj \ 901 $(OUTDIR)\frame.obj \
826 $(OUTDIR)\free-hook.obj \
827 $(OUTDIR)\general.obj \ 902 $(OUTDIR)\general.obj \
828 $(OUTDIR)\glyphs.obj \ 903 $(OUTDIR)\glyphs.obj \
829 $(OUTDIR)\glyphs-eimage.obj \ 904 $(OUTDIR)\glyphs-eimage.obj \
830 $(OUTDIR)\glyphs-widget.obj \ 905 $(OUTDIR)\glyphs-widget.obj \
831 $(OUTDIR)\gmalloc.obj \
832 $(OUTDIR)\gui.obj \ 906 $(OUTDIR)\gui.obj \
833 $(OUTDIR)\gutter.obj \ 907 $(OUTDIR)\gutter.obj \
834 $(OUTDIR)\hash.obj \ 908 $(OUTDIR)\hash.obj \
835 $(OUTDIR)\indent.obj \ 909 $(OUTDIR)\indent.obj \
836 $(OUTDIR)\imgproc.obj \ 910 $(OUTDIR)\imgproc.obj \
844 $(OUTDIR)\menubar.obj \ 918 $(OUTDIR)\menubar.obj \
845 $(OUTDIR)\marker.obj \ 919 $(OUTDIR)\marker.obj \
846 $(OUTDIR)\md5.obj \ 920 $(OUTDIR)\md5.obj \
847 $(OUTDIR)\minibuf.obj \ 921 $(OUTDIR)\minibuf.obj \
848 $(OUTDIR)\nt.obj \ 922 $(OUTDIR)\nt.obj \
849 $(OUTDIR)\ntheap.obj \
850 $(OUTDIR)\ntplay.obj \ 923 $(OUTDIR)\ntplay.obj \
851 $(OUTDIR)\ntproc.obj \ 924 $(OUTDIR)\ntproc.obj \
852 $(OUTDIR)\objects.obj \ 925 $(OUTDIR)\objects.obj \
853 $(OUTDIR)\opaque.obj \ 926 $(OUTDIR)\opaque.obj \
854 $(OUTDIR)\print.obj \ 927 $(OUTDIR)\print.obj \
870 $(OUTDIR)\symbols.obj \ 943 $(OUTDIR)\symbols.obj \
871 $(OUTDIR)\syntax.obj \ 944 $(OUTDIR)\syntax.obj \
872 $(OUTDIR)\sysdep.obj \ 945 $(OUTDIR)\sysdep.obj \
873 $(OUTDIR)\tparam.obj \ 946 $(OUTDIR)\tparam.obj \
874 $(OUTDIR)\undo.obj \ 947 $(OUTDIR)\undo.obj \
875 $(OUTDIR)\unexnt.obj \
876 $(OUTDIR)\vm-limit.obj \
877 $(OUTDIR)\widget.obj \ 948 $(OUTDIR)\widget.obj \
878 $(OUTDIR)\window.obj \ 949 $(OUTDIR)\window.obj \
879 $(OUTDIR)\xemacs.res 950 $(OUTDIR)\xemacs.res
880 951
881 # Rules 952 # Rules
909 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) 980 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS)
910 !if $(DEBUG_XEMACS) 981 !if $(DEBUG_XEMACS)
911 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp 982 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
912 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp 983 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
913 @$(DEL) bscmake.tmp 984 @$(DEL) bscmake.tmp
985 !endif
986 !if $(USE_PORTABLE_DUMPER)
987 @if exist $(TEMACS_DIR)\xemacs.dmp del $(TEMACS_DIR)\xemacs.dmp
914 !endif 988 !endif
915 link.exe @<< 989 link.exe @<<
916 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS) 990 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS)
917 << 991 <<
918 992
1146 1220
1147 # LISP bits 'n bobs 1221 # LISP bits 'n bobs
1148 1222
1149 LOADPATH=$(LISP) 1223 LOADPATH=$(LISP)
1150 1224
1225 # Rebuild docfile target
1226 docfile ::
1227 if exist $(DOC) del $(DOC)
1228 docfile :: $(DOC)
1229
1151 $(DOC): $(LIB_SRC)\make-docfile.exe 1230 $(DOC): $(LIB_SRC)\make-docfile.exe
1152 $(DEL) $(DOC) 1231 if exist $(DOC) del $(DOC)
1232 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1233 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1153 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages 1234 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
1154 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1) 1235 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
1155 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2) 1236 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
1156 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3) 1237 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
1157 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4) 1238 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
1158 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5) 1239 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
1159 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6) 1240 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
1160 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7) 1241 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
1161 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8) 1242 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
1162 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9) 1243 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
1244 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC10)
1245 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC11)
1163 1246
1164 update-elc: 1247 update-elc:
1165 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1166 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH) 1248 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1167 set EMACSBOOTSTRAPMODULEPATH=$(MODULES) 1249 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1168 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el 1250 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el
1169 1251
1170 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE 1252 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
1171 # requirements have changed. 1253 # requirements have changed.
1172 dump-xemacs: $(TEMACS) 1254 dump-xemacs: temacs
1173 @echo >$(TEMACS_DIR)\SATISFIED 1255 @echo >$(TEMACS_DIR)\SATISFIED
1174 cd $(TEMACS_DIR) 1256 cd $(TEMACS_DIR)
1175 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH) 1257 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1258 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1176 -1 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\loadup.el dump 1259 -1 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\loadup.el dump
1260 !if $(USE_PORTABLE_DUMPER)
1261 copy temacs.exe xemacs.exe
1262 !endif
1177 cd $(NT) 1263 cd $(NT)
1178 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@ 1264 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
1179
1180 #------------------------------------------------------------------------------ 1265 #------------------------------------------------------------------------------
1181 1266
1182 # use this rule to build the complete system 1267 # use this rule to build the complete system
1183 all: $(XEMACS)\Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \ 1268 all: $(XEMACS)\Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
1184 $(LIB_SRC_TOOLS) $(RUNEMACS) $(TEMACS) update-elc $(DOC) dump-xemacs \ 1269 $(LIB_SRC_TOOLS) $(RUNEMACS) $(TEMACS) update-elc $(DOC) dump-xemacs \
1252 depend: 1337 depend:
1253 cd $(SRCDIR) 1338 cd $(SRCDIR)
1254 perl ./make-src-depend > depend.tmp 1339 perl ./make-src-depend > depend.tmp
1255 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')" 1340 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
1256 1341
1342 installation::
1343 @if exist $(XEMACS)\Installation del $(XEMACS)\Installation
1344
1345 installation:: $(XEMACS)\Installation
1346
1257 $(XEMACS)\Installation: 1347 $(XEMACS)\Installation:
1258 @type > $(XEMACS)\Installation << 1348 @type > $(XEMACS)\Installation <<
1259 !if defined(OS) 1349 !if defined(OS)
1260 OS: $(OS) 1350 OS: $(OS)
1261 !endif 1351 !endif
1342 !if $(USE_UNION_TYPE) 1432 !if $(USE_UNION_TYPE)
1343 Using union type for Lisp object storage. 1433 Using union type for Lisp object storage.
1344 !endif 1434 !endif
1345 !if $(USE_PORTABLE_DUMPER) 1435 !if $(USE_PORTABLE_DUMPER)
1346 Using portable dumper. 1436 Using portable dumper.
1437 !endif
1438 !if $(USE_SYSTEM_MALLOC)
1439 Using system malloc.
1440 !endif
1441 !if $(USE_CRTDLL)
1442 Using DLL version of C runtime library
1347 !endif 1443 !endif
1348 !if $(DEBUG_XEMACS) 1444 !if $(DEBUG_XEMACS)
1349 Compiling in extra debug checks. XEmacs will be slow! 1445 Compiling in extra debug checks. XEmacs will be slow!
1350 !endif 1446 !endif
1351 <<NOKEEP 1447 <<NOKEEP