1 # Makefile for Microsoft NMAKE
2 # Copyright (C) 1995 Board of Trustees, University of Illinois.
3 # Copyright (C) 1995, 1996, 2000 Ben Wing.
4 # Copyright (C) 1995 Sun Microsystems, Inc.
5 # Copyright (C) 1998 Free Software Foundation, Inc.
7 # This file is part of XEmacs.
9 # XEmacs is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the
11 # Free Software Foundation; either version 2, or (at your option) any
14 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 # You should have received a copy of the GNU General Public License
20 # along with XEmacs; see the file COPYING. If not, write to
21 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 # Boston, MA 02111-1307, USA.
24 # Synched up with: Not in FSF.
31 LIB_SRC=$(XEMACS)\lib-src
32 MODULES=$(XEMACS)\modules
36 LWLIB_SRCDIR=$(XEMACS)\lwlib
37 MAKEDIRSTRING=$(MAKEDIR:\=\\)
38 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=)
41 # Define a variable for the 'del' command to use
44 # Program name and version
46 !include "$(XEMACS)\version.sh"
50 !if !defined(INFODOCK)
55 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
56 PROGRAM_DEFINES=-DINFODOCK \
57 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
58 -DPATH_PROGNAME=\"infodock\" \
59 -DEMACS_PROGNAME=\"infodock\" \
60 -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
61 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
62 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
63 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
65 !if "$(emacs_beta_version)" != ""
66 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)-b$(emacs_beta_version)
68 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
71 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
72 -DPATH_PROGNAME=\"xemacs\" \
73 -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\" \
74 -DEMACS_PROGNAME=\"xemacs\"
78 # Command line options defaults
80 !if !defined(INSTALL_DIR)
82 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
84 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
87 !if !defined(HAVE_MULE)
90 !if !defined(PACKAGE_PATH)
91 ! if !defined(PACKAGE_PREFIX)
92 PACKAGE_PREFIX=c:\Program Files\XEmacs
95 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
97 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
100 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
101 !if !defined(HAVE_MS_WINDOWS)
104 !if !defined(HAVE_X_WINDOWS)
107 !if !defined(HAVE_XPM)
110 !if !defined(HAVE_PNG)
113 !if !defined(HAVE_TIFF)
116 !if !defined(HAVE_JPEG)
119 !if !defined(HAVE_XFACE)
122 !if !defined(HAVE_GIF)
125 !if !defined(HAVE_TOOLBARS)
126 HAVE_TOOLBARS=$(HAVE_XPM)
128 !if !defined(HAVE_DIALOGS)
131 !if !defined(HAVE_MSW_C_DIRED)
134 !if !defined(HAVE_NATIVE_SOUND)
137 !if !defined(HAVE_WIDGETS)
140 !if !defined(DEBUG_XEMACS)
143 !if !defined(QUICK_BUILD)
146 !if !defined(USE_UNION_TYPE)
149 !if !defined(USE_MINITAR)
152 !if !defined(USE_MINIMAL_TAGBITS)
153 USE_MINIMAL_TAGBITS=0
155 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
156 USE_INDEXED_LRECORD_IMPLEMENTATION=0
158 !if !defined(USE_PORTABLE_DUMPER)
159 USE_PORTABLE_DUMPER=0
161 !if !defined(GUNG_HO)
165 # A little bit of adhockery. Default to use system malloc and
166 # DLL version of the C runtime library when using portable
167 # dumping. These are the optimal settings.
168 !if !defined(USE_SYSTEM_MALLOC)
169 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
171 !if !defined(USE_CRTDLL)
172 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
176 # System configuration
180 EMACS_CONFIGURATION=i586-pc-win32
181 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
182 EMACS_CONFIGURATION=i586-pc-win32
183 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
184 EMACS_CONFIGURATION=mips-pc-win32
185 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
186 EMACS_CONFIGURATION=alpha-pc-win32
187 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
188 EMACS_CONFIGURATION=ppc-pc-win32
190 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
197 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
198 !message Cannot build InfoDock without InfoDock sources
201 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
202 !message Cannot use system allocator when dumping old way, use portable dumper.
205 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
206 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
209 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
210 !message GNU malloc currently cannot be used with CRT DLL.
211 !message [[[Developer note: If you want to fix it, read Q112297 first]]] ####
214 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_X_WINDOWS)
215 !message Please specify at least one HAVE_MS_WINDOWS=1 and/or HAVE_X_WINDOWS=1
218 !if $(HAVE_X_WINDOWS) && !defined(X11_DIR)
219 !message Please specify root directory for your X11 installation: X11_DIR=path
222 !if $(HAVE_X_WINDOWS) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
223 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
226 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
227 !message Please specify root directory for your XPM installation: XPM_DIR=path
230 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
231 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
234 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
235 !message Please specify root directory for your PNG installation: PNG_DIR=path
238 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
239 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
242 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
243 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
246 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
247 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
250 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
251 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
254 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
255 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
258 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
259 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
262 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
263 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
266 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
267 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
270 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
271 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
274 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
275 !message Toolbars require XPM support
279 !error Configuration error(s) found
286 USE_MINIMAL_TAGBITS=$(GUNG_HO)
287 USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
291 # Whether to use dependency information generated by make-src-depend
297 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
299 # generate an nmake-readable version of depend
300 # #### here, it doesn't seem to matter if we double ^'s!
301 # results are the same with all single ^ and all double ^^!
303 ! if [perl -p -e "s/^\x23if defined(.+)/!if defined$$1/; s/^\x23e/!e/;" \
304 -e "s/([\s=^])([\w\d\.\-^]+\.[ch^])/$$1$(SRC:\=\\)\\$$2/g;" \
305 -e "s/^(.+)\.o:(.+)/$(OUTDIR:\=\\)\\$$1.obj:$$2 $(NT:\=\\)\\config.inc/;" \
306 < $(SRC)\depend > $(OUTDIR)\depend.tmp]
308 ! include "$(OUTDIR)\depend.tmp"
310 ! if [echo WARNING: Compiling without dependency information.]
315 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
317 !if !defined(VERBOSECC)
345 CFLAGS=-nologo -W3 $(OPT) $(C_LIBFLAG)
347 !if $(HAVE_X_WINDOWS)
348 X_DEFINES=-DHAVE_X_WINDOWS
349 X_INCLUDES=-I$(X11_DIR)\include
350 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
353 !if $(HAVE_MS_WINDOWS)
354 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
357 !if $(HAVE_MSW_C_DIRED)
358 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MSW_C_DIRED
359 MSW_C_DIRED_SRC=$(SRC)\dired-msw.c
360 MSW_C_DIRED_OBJ=$(OUTDIR)\dired-msw.obj
363 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
364 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
365 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
368 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
369 MSW_GIF_SRC=$(SRC)\dgif_lib.c $(SRC)\gif_io.c
370 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
373 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
374 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
375 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
378 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
379 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
380 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
383 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
384 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
385 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
388 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
389 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
390 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
393 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
394 MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c
395 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
396 MSW_LIBS=$(MSW_LIBS) comctl32.lib
399 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
400 MSW_DIALOG_SRC=$(SRC)\dialog.c $(SRC)\dialog-msw.c
401 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
404 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
406 !if $(HAVE_NATIVE_SOUND)
407 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
416 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
417 DEBUG_FLAGS=-debug:full
421 QUICK_DEFINES=-DQUICK_BUILD
424 !if $(USE_MINIMAL_TAGBITS)
425 TAGBITS_DEFINES=-DUSE_MINIMAL_TAGBITS
427 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
428 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION
430 !if $(USE_UNION_TYPE)
431 UNION_DEFINES=-DUSE_UNION_TYPE
434 !if $(USE_PORTABLE_DUMPER)
435 DUMPER_DEFINES=-DPDUMP
438 !if $(USE_SYSTEM_MALLOC)
439 MALLOC_DEFINES=-DSYSTEM_MALLOC
441 MALLOC_DEFINES=-DGNU_MALLOC
452 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
456 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR)
458 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
459 $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) \
460 $(DUMPER_DEFINES) $(MALLOC_DEFINES) $(QUICK_DEFINES) \
461 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
462 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
464 #------------------------------------------------------------------------------
474 $(SRC)\config.h: config.h
477 $(SRC)\Emacs.ad.h: Emacs.ad.h
478 copy Emacs.ad.h $(SRC)
480 $(SRC)\paths.h: paths.h
483 #------------------------------------------------------------------------------
487 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE
490 # Creating config.values to be used by config.el
492 CONFIG_VALUES = $(LIB_SRC)\config.values
493 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
495 # MAKEDIR has to be made into a string.
496 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
497 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
499 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
501 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
503 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
505 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
507 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
509 # PATH_PACKAGEPATH is already a quoted string.
510 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
514 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
516 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** -link -incremental:no setargv.obj
519 # Individual dependencies
520 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
521 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
522 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
524 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib -link -incremental:no
526 $(LIB_SRC)/minitar.exe : $(NT)/minitar.mak $(NT)/minitar.c
527 nmake -nologo -f minitar.mak ZLIB="$(ZLIB_DIR)" NT="$(NT)" LIB_SRC="$(LIB_SRC)"
530 $(LIB_SRC)/etags.exe \
531 $(LIB_SRC)/hexl.exe \
533 $(LIB_SRC)/make-docfile.exe \
534 $(LIB_SRC)/mmencode.exe \
535 $(LIB_SRC)/movemail.exe \
536 $(LIB_SRC)/sorted-doc.exe \
537 $(LIB_SRC)/wakeup.exe
541 $(LIB_SRC)/minitar.exe
543 !if $(USE_PORTABLE_DUMPER)
546 $(LIB_SRC)/make-dump-id.exe \
551 minitar: $(LIB_SRC)/minitar.exe
553 #------------------------------------------------------------------------------
555 # dump-id.c file that contains the dump id
557 $(SRC)\dump-id.c : $(LIB_SRC)/make-dump-id.exe
559 $(LIB_SRC)\make-dump-id.exe
562 #------------------------------------------------------------------------------
566 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
568 LASTFILE=$(OUTDIR)\lastfile.lib
570 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
572 $(OUTDIR)\lastfile.obj
574 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
575 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
577 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
578 $(CCV) $(LASTFILE_FLAGS) $**
582 #------------------------------------------------------------------------------
584 !if $(HAVE_X_WINDOWS)
588 LWLIB=$(OUTDIR)\lwlib.lib
589 LWLIB_FLAGS=$(CFLAGS) $(INCLUDES) $(DEFINES) \
590 -DNEED_ATHENA -DNEED_LUCID \
591 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
594 $(OUTDIR)\lwlib-config.obj \
595 $(OUTDIR)\lwlib-utils.obj \
596 $(OUTDIR)\lwlib-Xaw.obj \
597 $(OUTDIR)\lwlib-Xlw.obj \
598 $(OUTDIR)\lwlib.obj \
599 $(OUTDIR)\xlwmenu.obj \
600 $(OUTDIR)\xlwscrollbar.obj
602 $(LWLIB): $(LWLIB_OBJS)
603 link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
605 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRCDIR)\lwlib-config.c
606 $(CCV) $(LWLIB_FLAGS) $**
608 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRCDIR)\lwlib-utils.c
609 $(CCV) $(LWLIB_FLAGS) $**
611 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRCDIR)\lwlib-Xaw.c
612 $(CCV) $(LWLIB_FLAGS) $**
614 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRCDIR)\lwlib-Xlw.c
615 $(CCV) $(LWLIB_FLAGS) $**
617 $(OUTDIR)\lwlib.obj: $(LWLIB_SRCDIR)\lwlib.c
618 $(CCV) $(LWLIB_FLAGS) $**
620 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRCDIR)\xlwmenu.c
621 $(CCV) $(LWLIB_FLAGS) $**
623 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRCDIR)\xlwscrollbar.c
624 $(CCV) $(LWLIB_FLAGS) $**
627 #------------------------------------------------------------------------------
638 $(SRC)\casefiddle.c \
643 $(SRC)\console-stream.c \
657 $(SRC)\event-stream.c \
661 $(SRC)\file-coding.c \
670 $(SRC)\getloadavg.c \
672 $(SRC)\glyphs-eimage.c \
673 $(SRC)\glyphs-widget.c \
682 $(SRC)\line-number.c \
698 $(SRC)\process-nt.c \
702 $(SRC)\redisplay-output.c \
723 !if $(HAVE_X_WINDOWS)
725 $(SRC)\balloon_help.c \
729 $(SRC)\EmacsFrame.c \
730 $(SRC)\EmacsManager.c \
731 $(SRC)\EmacsShell-sub.c\
732 $(SRC)\EmacsShell.c \
740 $(SRC)\redisplay-x.c \
741 $(SRC)\scrollbar-x.c \
748 !if $(HAVE_MS_WINDOWS)
750 $(SRC)\console-msw.c \
751 $(SRC)\device-msw.c \
754 $(SRC)\glyphs-msw.c \
756 $(SRC)\menubar-msw.c \
757 $(SRC)\objects-msw.c \
758 $(SRC)\redisplay-msw.c \
759 $(SRC)\scrollbar-msw.c \
760 $(SRC)\select-msw.c \
770 $(SRC)\mule-charset.c \
772 ! if $(HAVE_X_WINDOWS)
773 DOC_SRC8=$(DOC_SRC8) $(SRC)\input-method-xlib.c
783 !if !$(USE_SYSTEM_MALLOC)
791 !if !$(USE_PORTABLE_DUMPER)
799 #------------------------------------------------------------------------------
804 !if "$(emacs_beta_version)" != ""
805 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
808 !if !$(USE_PORTABLE_DUMPER)
809 TEMACS_ENTRYPOINT=-entry:_start
811 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
815 TEMACS=$(TEMACS_DIR)\temacs.exe
816 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
818 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
819 oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \
820 shell32.lib wsock32.lib winmm.lib winspool.lib ole32.lib uuid.lib $(LIBC_LIB)
821 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
822 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
823 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
824 -heap:0x00100000 -nodefaultlib -incremental:no setargv.obj
825 TEMACS_CPP_FLAGS=-c \
826 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
827 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
828 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
829 $(EMACS_BETA_VERSION) \
830 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
831 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
832 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
834 !if $(HAVE_X_WINDOWS)
836 $(OUTDIR)\balloon-x.obj \
837 $(OUTDIR)\balloon_help.obj \
838 $(OUTDIR)\console-x.obj \
839 $(OUTDIR)\device-x.obj \
840 $(OUTDIR)\dialog-x.obj \
841 $(OUTDIR)\EmacsFrame.obj \
842 $(OUTDIR)\EmacsManager.obj \
843 $(OUTDIR)\EmacsShell.obj \
844 $(OUTDIR)\TopLevelEmacsShell.obj\
845 $(OUTDIR)\TransientEmacsShell.obj\
846 $(OUTDIR)\event-Xt.obj \
847 $(OUTDIR)\frame-x.obj \
848 $(OUTDIR)\glyphs-x.obj \
849 $(OUTDIR)\gui-x.obj \
850 $(OUTDIR)\menubar-x.obj \
851 $(OUTDIR)\objects-x.obj \
852 $(OUTDIR)\redisplay-x.obj \
853 $(OUTDIR)\scrollbar-x.obj \
854 $(OUTDIR)\xgccache.obj \
856 $(OUTDIR)\select-x.obj
859 !if $(HAVE_MS_WINDOWS)
861 $(OUTDIR)\console-msw.obj \
862 $(OUTDIR)\device-msw.obj \
863 $(OUTDIR)\event-msw.obj \
864 $(OUTDIR)\frame-msw.obj \
865 $(OUTDIR)\glyphs-msw.obj \
866 $(OUTDIR)\gui-msw.obj \
867 $(OUTDIR)\menubar-msw.obj \
868 $(OUTDIR)\objects-msw.obj \
869 $(OUTDIR)\redisplay-msw.obj \
870 $(OUTDIR)\scrollbar-msw.obj \
871 $(OUTDIR)\select-msw.obj \
881 $(OUTDIR)\mule-charset.obj \
882 $(OUTDIR)\mule-ccl.obj
883 ! if $(HAVE_X_WINDOWS)
885 $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
891 $(OUTDIR)\debug.obj \
895 !if !$(USE_SYSTEM_MALLOC)
897 $(OUTDIR)\free-hook.obj \
898 $(OUTDIR)\gmalloc.obj \
899 $(OUTDIR)\ntheap.obj \
900 $(OUTDIR)\vm-limit.obj
903 !if !$(USE_PORTABLE_DUMPER)
914 $(TEMACS_CODING_OBJS)\
916 $(TEMACS_DEBUG_OBJS)\
917 $(TEMACS_ALLOC_OBJS)\
919 $(OUTDIR)\abbrev.obj \
920 $(OUTDIR)\alloc.obj \
921 $(OUTDIR)\blocktype.obj \
922 $(OUTDIR)\buffer.obj \
923 $(OUTDIR)\bytecode.obj \
924 $(OUTDIR)\callint.obj \
925 $(OUTDIR)\callproc.obj \
926 $(OUTDIR)\casefiddle.obj \
927 $(OUTDIR)\casetab.obj \
928 $(OUTDIR)\chartab.obj \
929 $(OUTDIR)\cmdloop.obj \
931 $(OUTDIR)\console-stream.obj \
932 $(OUTDIR)\console.obj \
934 $(OUTDIR)\device.obj \
935 $(OUTDIR)\dired.obj \
937 $(OUTDIR)\doprnt.obj \
938 $(OUTDIR)\dragdrop.obj \
939 $(OUTDIR)\dynarr.obj \
940 $(OUTDIR)\editfns.obj \
941 $(OUTDIR)\elhash.obj \
942 $(OUTDIR)\emacs.obj \
944 $(OUTDIR)\event-stream.obj \
945 $(OUTDIR)\events.obj \
946 $(OUTDIR)\extents.obj \
947 $(OUTDIR)\faces.obj \
948 $(OUTDIR)\file-coding.obj \
949 $(OUTDIR)\fileio.obj \
950 $(OUTDIR)\filemode.obj \
951 $(OUTDIR)\floatfns.obj \
953 $(OUTDIR)\font-lock.obj \
954 $(OUTDIR)\frame.obj \
955 $(OUTDIR)\general.obj \
956 $(OUTDIR)\getloadavg.obj \
957 $(OUTDIR)\glyphs.obj \
958 $(OUTDIR)\glyphs-eimage.obj \
959 $(OUTDIR)\glyphs-widget.obj \
961 $(OUTDIR)\gutter.obj \
963 $(OUTDIR)\indent.obj \
964 $(OUTDIR)\imgproc.obj \
965 $(OUTDIR)\insdel.obj \
967 $(OUTDIR)\keymap.obj \
968 $(OUTDIR)\line-number.obj \
969 $(OUTDIR)\lread.obj \
970 $(OUTDIR)\lstream.obj \
971 $(OUTDIR)\macros.obj \
972 $(OUTDIR)\menubar.obj \
973 $(OUTDIR)\marker.obj \
975 $(OUTDIR)\minibuf.obj \
977 $(OUTDIR)\ntplay.obj \
978 $(OUTDIR)\ntproc.obj \
979 $(OUTDIR)\objects.obj \
980 $(OUTDIR)\opaque.obj \
981 $(OUTDIR)\print.obj \
982 $(OUTDIR)\process.obj \
983 $(OUTDIR)\process-nt.obj \
984 $(OUTDIR)\profile.obj \
985 $(OUTDIR)\rangetab.obj \
986 $(OUTDIR)\realpath.obj \
987 $(OUTDIR)\redisplay-output.obj \
988 $(OUTDIR)\redisplay.obj \
989 $(OUTDIR)\regex.obj \
990 $(OUTDIR)\scrollbar.obj \
991 $(OUTDIR)\search.obj \
992 $(OUTDIR)\select.obj \
993 $(OUTDIR)\signal.obj \
994 $(OUTDIR)\sound.obj \
995 $(OUTDIR)\specifier.obj \
996 $(OUTDIR)\strftime.obj \
997 $(OUTDIR)\symbols.obj \
998 $(OUTDIR)\syntax.obj \
999 $(OUTDIR)\sysdep.obj \
1000 $(OUTDIR)\tparam.obj \
1001 $(OUTDIR)\undo.obj \
1002 $(OUTDIR)\widget.obj \
1003 $(OUTDIR)\window.obj \
1009 .SUFFIXES: .c .obj .texi .info
1013 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1014 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
1016 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1017 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@
1020 $(OUTDIR)\emacs.obj: $(XEMACS)\version.sh
1022 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
1023 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
1025 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
1026 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
1028 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c
1030 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
1031 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
1033 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
1034 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
1036 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) $(OUTDIR)\xemacs.res
1038 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
1039 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
1042 !if $(USE_PORTABLE_DUMPER)
1043 @if exist $(SRC)\dump-id.c del $(SRC)\dump-id.c
1044 # make a new dump id file. There is probably a better way to do this, but this works
1045 @if exist $(OUTDIR)\dump-id.obj del $(OUTDIR)\dump-id.obj
1046 nmake -nologo -f xemacs.mak OUTDIR=$(OUTDIR) $(OUTDIR)\dump-id.obj
1048 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1052 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS)
1056 $(OUTDIR)\xemacs.res: xemacs.rc
1060 PROGNAME=$(SRC)\xemacs.exe
1061 TEMACS_BATCH="$(LIB_SRC)\i" "$(TEMACS)" -batch
1062 XEMACS_BATCH="$(LIB_SRC)\i" "$(PROGNAME)" -vanilla -batch
1064 # Section handling automated tests starts here
1066 blddir=$(MAKEDIR:\=\\)\\..
1067 temacs_loadup=$(TEMACS_BATCH) -l $(LISP)/loadup.el
1068 dump_temacs = $(temacs_loadup) dump
1069 run_temacs = $(temacs_loadup) run-temacs
1070 ## We have automated tests!!
1071 testdir=../tests/automated
1072 batch_test_emacs=-batch -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
1074 # .PHONY: check check-temacs
1078 $(PROGNAME) $(batch_test_emacs)
1082 set EMACSBOOTSTRAPLOADPATH=$(LISP)
1083 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1084 $(run_temacs) $(batch_test_emacs)
1086 # Section handling automated tests ends here
1088 # Section handling tags starts here
1093 @echo If you don't have a copy of etags around, then do 'make lib-src' first.
1094 @echo To make use of the tags file, put the following in your .emacs:
1095 @echo (setq tag-table-alist
1096 @echo '(("$(XEMACSDIRSTRING)\\" . "$(XEMACSDIRSTRING)\\")))
1099 set PATH=lib-src;%PATH%
1100 # we need to double ^, but only before backslash! Doubling it elsewhere
1101 # causes problems. I don't understand this -- CMD.EXE uses ^ as a quoting
1102 # convention of sorts, but appears to leave it alone inside of double quotes,
1103 # even before \. Could this be nmake interference?
1104 etags -a -r "/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
1105 etags -a -l none -r "/^(def\(var\|un\|alias\|const\|macro\|subst\|struct\|face\|group\|custom\|ine-\(function\|compiler-macro\|[a-z-]+alias\)\)[ ]+'?\([^ ]+\)/\3/" $(tagslisp)\*.el
1107 # Section handling tags ends here
1109 # Section handling info starts here
1111 !if !defined(MAKEINFO)
1112 MAKEINFO=$(XEMACS_BATCH) -l texinfmt -f batch-texinfo-format
1115 MANDIR = $(XEMACS)\man
1116 INFODIR = $(XEMACS)\info
1118 $(INFODIR)\cl.info \
1119 $(INFODIR)\custom.info \
1120 $(INFODIR)\emodules.info \
1121 $(INFODIR)\external-widget.info \
1122 $(INFODIR)\info.info \
1123 $(INFODIR)\standards.info \
1124 $(INFODIR)\term.info \
1125 $(INFODIR)\termcap.info \
1126 $(INFODIR)\texinfo.info \
1127 $(INFODIR)\widget.info \
1128 $(INFODIR)\xemacs-faq.info \
1129 $(INFODIR)\xemacs.info \
1130 $(INFODIR)\lispref.info \
1131 $(INFODIR)\new-users-guide.info \
1132 $(INFODIR)\internals.info
1134 {$(MANDIR)}.texi{$(INFODIR)}.info:
1139 $(MANDIR)\xemacs\abbrevs.texi \
1140 $(MANDIR)\xemacs\basic.texi \
1141 $(MANDIR)\xemacs\buffers.texi \
1142 $(MANDIR)\xemacs\building.texi \
1143 $(MANDIR)\xemacs\calendar.texi \
1144 $(MANDIR)\xemacs\cmdargs.texi \
1145 $(MANDIR)\xemacs\custom.texi \
1146 $(MANDIR)\xemacs\display.texi \
1147 $(MANDIR)\xemacs\entering.texi \
1148 $(MANDIR)\xemacs\files.texi \
1149 $(MANDIR)\xemacs\fixit.texi \
1150 $(MANDIR)\xemacs\frame.texi \
1151 $(MANDIR)\xemacs\glossary.texi \
1152 $(MANDIR)\xemacs\gnu.texi \
1153 $(MANDIR)\xemacs\help.texi \
1154 $(MANDIR)\xemacs\indent.texi \
1155 $(MANDIR)\xemacs\keystrokes.texi \
1156 $(MANDIR)\xemacs\killing.texi \
1157 $(MANDIR)\xemacs\m-x.texi \
1158 $(MANDIR)\xemacs\major.texi \
1159 $(MANDIR)\xemacs\mark.texi \
1160 $(MANDIR)\xemacs\menus.texi \
1161 $(MANDIR)\xemacs\mini.texi \
1162 $(MANDIR)\xemacs\misc.texi \
1163 $(MANDIR)\xemacs\mouse.texi \
1164 $(MANDIR)\xemacs\mule.texi \
1165 $(MANDIR)\xemacs\new.texi \
1166 $(MANDIR)\xemacs\packages.texi \
1167 $(MANDIR)\xemacs\picture.texi \
1168 $(MANDIR)\xemacs\programs.texi \
1169 $(MANDIR)\xemacs\reading.texi \
1170 $(MANDIR)\xemacs\regs.texi \
1171 $(MANDIR)\xemacs\search.texi \
1172 $(MANDIR)\xemacs\sending.texi \
1173 $(MANDIR)\xemacs\startup.texi \
1174 $(MANDIR)\xemacs\text.texi \
1175 $(MANDIR)\xemacs\trouble.texi \
1176 $(MANDIR)\xemacs\undo.texi \
1177 $(MANDIR)\xemacs\windows.texi \
1178 $(MANDIR)\xemacs\xemacs.texi
1181 $(MANDIR)\lispref\abbrevs.texi \
1182 $(MANDIR)\lispref\annotations.texi \
1183 $(MANDIR)\lispref\back.texi \
1184 $(MANDIR)\lispref\backups.texi \
1185 $(MANDIR)\lispref\buffers.texi \
1186 $(MANDIR)\lispref\building.texi \
1187 $(MANDIR)\lispref\commands.texi \
1188 $(MANDIR)\lispref\compile.texi \
1189 $(MANDIR)\lispref\consoles-devices.texi \
1190 $(MANDIR)\lispref\control.texi \
1191 $(MANDIR)\lispref\customize.texi \
1192 $(MANDIR)\lispref\databases.texi \
1193 $(MANDIR)\lispref\debugging.texi \
1194 $(MANDIR)\lispref\dialog.texi \
1195 $(MANDIR)\lispref\display.texi \
1196 $(MANDIR)\lispref\dragndrop.texi \
1197 $(MANDIR)\lispref\edebug-inc.texi \
1198 $(MANDIR)\lispref\edebug.texi \
1199 $(MANDIR)\lispref\errors.texi \
1200 $(MANDIR)\lispref\eval.texi \
1201 $(MANDIR)\lispref\extents.texi \
1202 $(MANDIR)\lispref\faces.texi \
1203 $(MANDIR)\lispref\files.texi \
1204 $(MANDIR)\lispref\frames.texi \
1205 $(MANDIR)\lispref\functions.texi \
1206 $(MANDIR)\lispref\glyphs.texi \
1207 $(MANDIR)\lispref\hash-tables.texi \
1208 $(MANDIR)\lispref\help.texi \
1209 $(MANDIR)\lispref\hooks.texi \
1210 $(MANDIR)\lispref\index.texi \
1211 $(MANDIR)\lispref\internationalization.texi \
1212 $(MANDIR)\lispref\intro.texi \
1213 $(MANDIR)\lispref\keymaps.texi \
1214 $(MANDIR)\lispref\ldap.texi \
1215 $(MANDIR)\lispref\lispref.texi \
1216 $(MANDIR)\lispref\lists.texi \
1217 $(MANDIR)\lispref\loading.texi \
1218 $(MANDIR)\lispref\locals.texi \
1219 $(MANDIR)\lispref\macros.texi \
1220 $(MANDIR)\lispref\maps.texi \
1221 $(MANDIR)\lispref\markers.texi \
1222 $(MANDIR)\lispref\menus.texi \
1223 $(MANDIR)\lispref\minibuf.texi \
1224 $(MANDIR)\lispref\modes.texi \
1225 $(MANDIR)\lispref\mouse.texi \
1226 $(MANDIR)\lispref\mule.texi \
1227 $(MANDIR)\lispref\numbers.texi \
1228 $(MANDIR)\lispref\objects.texi \
1229 $(MANDIR)\lispref\os.texi \
1230 $(MANDIR)\lispref\positions.texi \
1231 $(MANDIR)\lispref\processes.texi \
1232 $(MANDIR)\lispref\range-tables.texi \
1233 $(MANDIR)\lispref\scrollbars.texi \
1234 $(MANDIR)\lispref\searching.texi \
1235 $(MANDIR)\lispref\sequences.texi \
1236 $(MANDIR)\lispref\specifiers.texi \
1237 $(MANDIR)\lispref\streams.texi \
1238 $(MANDIR)\lispref\strings.texi \
1239 $(MANDIR)\lispref\symbols.texi \
1240 $(MANDIR)\lispref\syntax.texi \
1241 $(MANDIR)\lispref\text.texi \
1242 $(MANDIR)\lispref\tips.texi \
1243 $(MANDIR)\lispref\toolbar.texi \
1244 $(MANDIR)\lispref\tooltalk.texi \
1245 $(MANDIR)\lispref\variables.texi \
1246 $(MANDIR)\lispref\windows.texi \
1247 $(MANDIR)\lispref\x-windows.texi
1250 $(MANDIR)\internals\internals.texi \
1251 $(MANDIR)\internals\index.texi
1253 NEW_USERS_GUIDE_SRCS = \
1254 $(MANDIR)\new-users-guide\custom1.texi \
1255 $(MANDIR)\new-users-guide\custom2.texi \
1256 $(MANDIR)\new-users-guide\edit.texi \
1257 $(MANDIR)\new-users-guide\enter.texi \
1258 $(MANDIR)\new-users-guide\files.texi \
1259 $(MANDIR)\new-users-guide\help.texi \
1260 $(MANDIR)\new-users-guide\modes.texi \
1261 $(MANDIR)\new-users-guide\new-users-guide.texi \
1262 $(MANDIR)\new-users-guide\region.texi \
1263 $(MANDIR)\new-users-guide\search.texi \
1264 $(MANDIR)\new-users-guide\xmenu.texi
1266 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
1268 $(MAKEINFO) xemacs.texi
1272 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
1273 cd $(MANDIR)\lispref
1274 $(MAKEINFO) lispref.texi
1277 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
1278 cd $(MANDIR)\internals
1279 $(MAKEINFO) internals.texi
1282 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
1283 cd $(MANDIR)\new-users-guide
1284 $(MAKEINFO) new-users-guide.texi
1287 info: makeinfo-test $(INFO_FILES)
1290 @<<makeinfo_test.bat
1292 if exist "$(MAKEINFO)" goto test_done
1293 @$(XEMACS_BATCH) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
1294 @if not errorlevel 1 goto suggest_makeinfo
1295 @echo XEmacs 'info' cannot be built!
1296 @echo Install XEmacs package 'texinfo' (see README.packages).
1298 @echo Consider specifying path to makeinfo program: MAKEINFO=path
1299 @echo as this will build info docs faster than XEmacs using 'texinfo'.
1300 @if errorlevel 1 exit 1
1304 # Section handling info ends here
1306 #------------------------------------------------------------------------------
1312 # Rebuild docfile target
1314 if exist $(DOC) del $(DOC)
1317 $(DOC): $(LIB_SRC)\make-docfile.exe $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(DOC_SRC9) $(DOC_SRC10) $(DOC_SRC11)
1318 if exist $(DOC) del $(DOC)
1319 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1320 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1321 $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
1322 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
1323 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
1324 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
1325 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
1326 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
1327 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
1328 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
1329 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
1330 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
1331 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC10)
1332 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC11)
1335 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1336 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1337 $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\update-elc.el
1339 # This file is touched by update-elc.el when redumping is necessary.
1340 $(TEMACS_DIR)\NEEDTODUMP :
1341 @echo >$(TEMACS_DIR)\NEEDTODUMP
1343 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
1344 # requirements have changed.
1346 $(PROGNAME) : $(TEMACS) $(TEMACS_DIR)\NEEDTODUMP
1347 @echo >$(TEMACS_DIR)\SATISFIED
1349 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1350 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1351 $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\loadup.el dump
1352 !if $(USE_PORTABLE_DUMPER)
1353 rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
1355 $(TEMACS_LFLAGS) -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1357 # Make the resource section read/write since almost all of it is the dump
1358 # data which needs to be writable. This avoids having to copy it.
1359 editbin -nologo -section:.rsrc,rw xemacs.exe
1360 del $(TEMACS_DIR)\xemacs.dmp
1363 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
1364 #------------------------------------------------------------------------------
1366 # use this rule to build the complete system
1367 all: installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
1368 $(LIB_SRC_TOOLS) $(TEMACS) update-elc $(DOC) $(PROGNAME) \
1369 update-elc-2 update-auto-and-custom info
1371 temacs: $(LASTFILE) $(TEMACS)
1373 # use this rule to install the system
1376 @echo Installing in $(INSTALL_DIR) ...
1377 @echo PlaceHolder > PlaceHolder
1378 @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
1379 @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
1380 @$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
1381 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
1382 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1383 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1384 @copy $(SRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1385 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\"
1386 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
1387 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
1388 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
1389 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
1390 @$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
1391 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
1392 @$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
1393 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
1394 @$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
1398 $(DEL) $(XEMACS)\Installation
1399 $(DEL) $(OUTDIR)\*.lib $(OUTDIR)\*.obj $(OUTDIR)\*.pdb
1400 $(DEL) $(OUTDIR)\*.res $(OUTDIR)\*.sbr
1401 $(DEL) $(SRC)\*.exe $(SRC)\*.map $(SRC)\*.bsc $(SRC)\*.pdb
1402 $(DEL) $(LIB_SRC)\*.exe $(LIB_SRC)\*.obj $(LIB_SRC)\*.pdb
1403 $(DEL) $(LIB_SRC)\*.res
1405 clean: mostlyclean versionclean
1406 $(DEL) $(XEMACS)\TAGS
1409 $(DEL) $(NT)\*.bak $(NT)\*.orig $(NT)\*.rej $(NT)\*.tmp
1410 $(DEL) $(LIB_SRC)\*.bak $(LIB_SRC)\*.orig $(LIB_SRC)\*.rej
1411 $(DEL) $(LIB_SRC)\*.tmp
1412 $(DEL) $(SRC)\*.bak $(SRC)\*.orig $(SRC)\*.rej $(SRC)\*.tmp
1413 $(DEL) /s $(LISP)\*.bak $(LISP)\*.orig $(LISP)\*.rej $(LISP)\*.tmp
1415 ## This is used in making a distribution.
1416 ## Do not use it on development directories!
1417 distclean: nicenclean
1418 $(DEL) $(SRC)\config.h $(SRC)\paths.h $(SRC)\Emacs.ad.h
1419 $(DEL) $(LIB_SRC)\$(CONFIG_VALUES)
1420 $(DEL) $(INFODIR)\*.info*
1421 $(DEL) /s /q $(LISP)\*.elc
1423 realclean: distclean
1426 $(DEL) $(SRC)\xemacs.exe $(LIB_SRC)\DOC
1428 #not sure about those wildcards. DOS wildcards are stupid compared to Unix,
1429 #and could end up deleting *everything* instead of just backup files or
1431 #extraclean: realclean
1432 # $(DEL) *~ *.*~ #* m\*~ m\#* s\*~ s\#*
1436 perl ./make-src-depend > depend.tmp
1437 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
1439 $(XEMACS)\Installation:: installation
1442 @type > $(XEMACS)\Installation <<
1447 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for `$(EMACS_CONFIGURATION)'.
1449 Building XEmacs in \"$(MAKEDIR:\=\\)\".
1451 Using compiler \"$(CC) $(CFLAGS)\".
1453 Installing XEmacs in \"$(INSTALL_DIR:\=\\)\".
1454 Package path is $(PATH_PACKAGEPATH:"=\").
1458 !if $(HAVE_MS_WINDOWS)
1459 Compiling in support for Microsoft Windows native GUI.
1461 !if $(HAVE_X_WINDOWS)
1462 Compiling in support for X-Windows.
1468 Compiling in support for XPM images.
1470 --------------------------------------------------------------------
1471 WARNING: Compiling without XPM support.
1472 WARNING: You should strongly consider installing XPM.
1473 WARNING: Otherwise toolbars and other graphics will look suboptimal.
1474 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
1475 --------------------------------------------------------------------
1478 Compiling in support for GIF images.
1481 Compiling in support for PNG images.
1483 --------------------------------------------------------------------
1484 WARNING: Compiling without PNG image support.
1485 WARNING: You should strongly consider installing the PNG libraries.
1486 WARNING: Otherwise certain images and glyphs may not display.
1487 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
1488 --------------------------------------------------------------------
1491 Compiling in support for TIFF images.
1494 Compiling in support for JPEG images.
1497 Compiling in support for X-Face message headers.
1499 !if $(HAVE_TOOLBARS)
1500 Compiling in support for toolbars.
1503 Compiling in support for dialogs.
1506 Compiling in support for widgets.
1508 !if $(HAVE_NATIVE_SOUND)
1509 Compiling in support for native sounds.
1511 !if $(HAVE_MSW_C_DIRED)
1512 Compiling in fast dired implementation.
1514 --------------------------------------------------------------------
1515 WARNING: Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs
1516 WARNING: to use C primitives to significantly speed up dired, at the
1517 WARNING: expense of an additional ~4KB of code.
1518 --------------------------------------------------------------------
1520 !if $(USE_MINIMAL_TAGBITS)
1521 Using minimal tagbits.
1523 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
1524 Using indexed lrecord implementation.
1526 !if $(USE_UNION_TYPE)
1527 Using union type for Lisp object storage.
1529 !if $(USE_PORTABLE_DUMPER)
1530 Using portable dumper.
1532 !if $(USE_SYSTEM_MALLOC)
1533 Using system malloc.
1536 Using DLL version of C runtime library
1539 Compiling in extra debug checks. XEmacs will be slow!
1542 Disabling non-essential build actions. Use with care!
1545 @echo --------------------------------------------------------------------
1546 @type $(XEMACS)\Installation
1547 @echo --------------------------------------------------------------------
1549 # Update out-of-date .elcs, other than needed for dumping.
1551 $(XEMACS_BATCH) -l update-elc-2.el -f batch-update-elc-2 $(LISP)
1553 # Update auto-autoloads.el and custom-load.el, similar to what
1554 # XEmacs.rules does for xemacs-packages. This used to delete
1555 # auto-autoloads.el first, but that's a bad idea, because it forces
1556 # rebuilding from scratch, which is time-consuming; and the autoload
1557 # code is specifically written to do in-place updating. However, if
1558 # your auto-autoload file is messed up and you want it rebuilt from
1559 # scratch, delete it from the command line and then nmake with this
1561 update-auto-and-custom:
1562 # Combine into one invocation to avoid repeated startup penalty.
1563 $(XEMACS_BATCH) -l autoload -f batch-update-one-directory $(LISP) -f batch-byte-compile-one-file $(LISP)\auto-autoloads.el -l cus-dep -f Custom-make-one-dependency $(LISP) -f batch-byte-compile-one-file $(LISP)\custom-load.el
1564 @$(DEL) $(LISP)\auto-autoloads.el~
1565 @$(DEL) $(LISP)\custom-load.el~
1567 # DO NOT DELETE THIS LINE -- make depend depends on it.