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.
29 # APA: Since there seems to be no way to determine the directory where
30 # xemacs.mak is located (from within nmake) we just insist on the user
31 # to invoke nmake in the directory where xemacs.mak is.
32 !if !exist("$(MAKEDIR)\xemacs.mak")
33 !error Please run nmake from the directory of this makefile (xemacs\nt).
38 LIB_SRC=$(XEMACS)\lib-src
39 MODULES=$(XEMACS)\modules
43 LWLIB_SRCDIR=$(XEMACS)\lwlib
44 MAKEDIRSTRING=$(MAKEDIR:\=\\)
45 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=)
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!
53 # Program name and version
55 !include "$(XEMACS)\version.sh"
59 !if !defined(INFODOCK)
64 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
65 PROGRAM_DEFINES=-DINFODOCK \
66 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
67 -DPATH_PROGNAME=\"infodock\" \
68 -DEMACS_PROGNAME=\"infodock\" \
69 -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
70 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
71 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
72 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
74 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
75 !if "$(emacs_beta_version)" != ""
76 !if "$(emacs_is_beta)" != ""
77 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING)-b$(emacs_beta_version)
79 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING).$(emacs_beta_version)
83 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
84 -DPATH_PROGNAME=\"xemacs\" \
85 -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\" \
86 -DEMACS_PROGNAME=\"xemacs\"
90 # Command line options defaults
92 !if !defined(INSTALL_DIR)
94 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
96 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
99 !if !defined(HAVE_MULE)
102 !if !defined(PACKAGE_PATH)
103 ! if !defined(PACKAGE_PREFIX)
104 PACKAGE_PREFIX=c:\Program Files\XEmacs
107 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
109 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
112 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
113 !if !defined(HAVE_MS_WINDOWS)
116 !if !defined(HAVE_X_WINDOWS)
119 !if !defined(HAVE_XPM)
122 !if !defined(HAVE_PNG)
125 !if !defined(HAVE_ZLIB)
126 HAVE_ZLIB=$(HAVE_PNG)
128 !if !defined(HAVE_TIFF)
131 !if !defined(HAVE_JPEG)
134 !if !defined(HAVE_XFACE)
137 !if !defined(HAVE_GIF)
140 !if !defined(HAVE_GTK)
143 !if !defined(HAVE_TOOLBARS)
144 HAVE_TOOLBARS=$(HAVE_XPM)
146 !if !defined(HAVE_DIALOGS)
149 !if !defined(HAVE_MSW_C_DIRED)
152 !if !defined(HAVE_NATIVE_SOUND)
155 !if !defined(HAVE_WIDGETS)
158 !if !defined(DEBUG_XEMACS)
161 !if !defined(QUICK_BUILD)
164 !if !defined(USE_UNION_TYPE)
167 !if !defined(USE_MINITAR)
168 USE_MINITAR=$(HAVE_ZLIB)
170 !if !defined(USE_PORTABLE_DUMPER)
171 USE_PORTABLE_DUMPER=0
174 # A little bit of adhockery. Default to use system malloc and
175 # DLL version of the C runtime library when using portable
176 # dumping. These are the optimal settings.
177 !if !defined(USE_SYSTEM_MALLOC)
178 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
180 !if !defined(USE_CRTDLL)
181 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
185 # System configuration
189 EMACS_CONFIGURATION=i586-pc-win32
190 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
191 EMACS_CONFIGURATION=i586-pc-win32
192 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
193 EMACS_CONFIGURATION=mips-pc-win32
194 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
195 EMACS_CONFIGURATION=alpha-pc-win32
196 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
197 EMACS_CONFIGURATION=ppc-pc-win32
199 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
201 STACK_TRACE_EYE_CATCHER=$(XEMACS_VERSION_STRING:.=_)
202 STACK_TRACE_EYE_CATCHER=xemacs_$(STACK_TRACE_EYE_CATCHER:-=_)_$(EMACS_CONFIGURATION:-=_)
203 PROGRAM_DEFINES=$(PROGRAM_DEFINES) -DSTACK_TRACE_EYE_CATCHER=$(STACK_TRACE_EYE_CATCHER)
209 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
210 !message Cannot build InfoDock without InfoDock sources
213 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
214 !message Cannot use system allocator when dumping old way, use portable dumper.
217 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
218 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
221 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
222 !message GNU malloc currently cannot be used with CRT DLL.
223 !message [[[Developer note: If you want to fix it, read Q112297 first]]] ####
226 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_X_WINDOWS)
227 !message Please specify at least one HAVE_MS_WINDOWS=1 and/or HAVE_X_WINDOWS=1
230 !if $(HAVE_X_WINDOWS) && !defined(X11_DIR)
231 !message Please specify root directory for your X11 installation: X11_DIR=path
234 !if $(HAVE_X_WINDOWS) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
235 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
238 !if $(HAVE_MS_WINDOWS) && $(HAVE_GTK) && !defined(GTK_DIR)
239 !message Please specify root directory for your GTK installation: GTK_DIR=path
242 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
243 !message Please specify root directory for your XPM installation: XPM_DIR=path
246 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
247 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
250 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
251 !message Please specify root directory for your PNG installation: PNG_DIR=path
254 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
255 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
258 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
259 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
262 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
263 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
266 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
267 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
270 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
271 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
274 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
275 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
278 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
279 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
282 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
283 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
286 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
287 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
290 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
291 !message Toolbars require XPM support
295 !error Configuration error(s) found
299 # Whether to use dependency information generated by make-src-depend
304 !if $(DEPEND) && exist("$(SRC)\depend")
305 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
307 # generate an nmake-readable version of depend
308 # #### here, it doesn't seem to matter if we double ^'s!
309 # results are the same with all single ^ and all double ^^!
311 # #### Yuuuuuuuuuuck!!! Cygwin is too smart for its own good. If we are
312 # being run from within Cygwin, a Cygwin Perl seems to require twice as
313 # much backslash quoting. This does not happen, of course, with a non-
314 # Cygwin Perl, so in that circumstance, you'd be screwed and would have
315 # to fix this Makefile to not have a special Cygwin case.
316 ! if defined(_) || [perl -e "exit 1 if $$^O == 'cygwin';"]==1
317 ! if [perl -p -e "s/^\\x23if defined(.+)/!if defined$$1/; s/^\\x23e/!e/;" \
318 -e "s/([\\s=^])([\\w\\d\\.\\-^]+\\.[ch^])/$$1$(SRC:\=\\\\)\\\\$$2/g;" \
319 -e "s/^(.+)\\.o:(.+)/$(OUTDIR:\=\\\\)\\\\$$1.obj:$$2/;" \
320 < $(SRC)\depend > $(OUTDIR)\depend.tmp]
323 ! if [perl -p -e "s/^\x23if defined(.+)/!if defined$$1/; s/^\x23e/!e/;" \
324 -e "s/([\s=^])([\w\d\.\-^]+\.[ch^])/$$1$(SRC:\=\\)\\$$2/g;" \
325 -e "s/^(.+)\.o:(.+)/$(OUTDIR:\=\\)\\$$1.obj:$$2/;" \
326 < $(SRC)\depend > $(OUTDIR)\depend.tmp]
329 ! include "$(OUTDIR)\depend.tmp"
331 ! if [echo WARNING: Compiling without dependency information.]
336 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
338 !if !defined(VERBOSECC)
366 CFLAGS_NO_LIB=-nologo -W3 $(OPT)
367 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG)
369 !if $(HAVE_X_WINDOWS)
370 X_DEFINES=-DHAVE_X_WINDOWS
371 X_INCLUDES=-I$(X11_DIR)\include
372 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
375 !if $(HAVE_MS_WINDOWS)
376 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
379 !if $(HAVE_MSW_C_DIRED)
380 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MSW_C_DIRED
381 MSW_C_DIRED_SRC=$(SRC)\dired-msw.c
382 MSW_C_DIRED_OBJ=$(OUTDIR)\dired-msw.obj
385 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
386 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
387 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
390 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
391 MSW_GIF_SRC=$(SRC)\dgif_lib.c $(SRC)\gif_io.c
392 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
395 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
396 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
397 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
400 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
401 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
402 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
405 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
406 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
407 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
410 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
411 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
412 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
415 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
416 MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c
417 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
420 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
421 MSW_DIALOG_SRC=$(SRC)\dialog.c $(SRC)\dialog-msw.c
422 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
425 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
427 !if $(HAVE_TOOLBARS) || $(HAVE_WIDGETS)
428 MSW_LIBS=$(MSW_LIBS) comctl32.lib
430 !if $(HAVE_NATIVE_SOUND)
431 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
440 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
441 DEBUG_FLAGS=-debug:full
445 QUICK_DEFINES=-DQUICK_BUILD
448 !if $(USE_UNION_TYPE)
449 UNION_DEFINES=-DUSE_UNION_TYPE
452 !if $(USE_PORTABLE_DUMPER)
453 DUMPER_DEFINES=-DPDUMP
456 !if $(USE_SYSTEM_MALLOC)
457 MALLOC_DEFINES=-DSYSTEM_MALLOC
459 MALLOC_DEFINES=-DGNU_MALLOC
470 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
474 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR)
476 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) $(UNION_DEFINES) \
477 $(DUMPER_DEFINES) $(MALLOC_DEFINES) $(QUICK_DEFINES) \
478 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
479 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
481 #------------------------------------------------------------------------------
491 # #### Copying is cheap, we should just force these
492 $(SRC)\config.h: config.h
495 $(SRC)\Emacs.ad.h: Emacs.ad.h
496 copy Emacs.ad.h $(SRC)
498 $(SRC)\paths.h: paths.h
501 #------------------------------------------------------------------------------
505 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE
508 # Creating config.values to be used by config.el
510 CONFIG_VALUES = $(LIB_SRC)\config.values
511 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
513 # MAKEDIR has to be made into a string.
514 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
515 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
517 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
519 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
521 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
523 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
525 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
527 # PATH_PACKAGEPATH is already a quoted string.
528 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
532 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
534 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** -link -incremental:no setargv.obj
537 # Individual dependencies
538 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
539 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
540 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
542 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib -link -incremental:no
545 $(LIB_SRC)/winclient.exe: $(LIB_SRC)/winclient.c
547 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** user32.lib -link -incremental:no
550 $(LIB_SRC)/minitar.exe : $(NT)/minitar.c
551 $(CCV) $(CFLAGS_NO_LIB) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) -Fe$@ $** $(ZLIB_DIR)\zlib.lib -link -incremental:no
554 $(LIB_SRC)/etags.exe \
555 $(LIB_SRC)/hexl.exe \
557 $(LIB_SRC)/winclient.exe \
558 $(LIB_SRC)/make-docfile.exe \
559 $(LIB_SRC)/mmencode.exe \
560 $(LIB_SRC)/movemail.exe \
561 $(LIB_SRC)/sorted-doc.exe \
562 $(LIB_SRC)/wakeup.exe
566 $(LIB_SRC)/minitar.exe
568 !if $(USE_PORTABLE_DUMPER)
571 $(LIB_SRC)/make-dump-id.exe \
576 minitar: $(LIB_SRC)/minitar.exe
578 #------------------------------------------------------------------------------
580 # dump-id.c file that contains the dump id
582 $(SRC)\dump-id.c : $(LIB_SRC)/make-dump-id.exe
584 $(LIB_SRC)\make-dump-id.exe
587 #------------------------------------------------------------------------------
591 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
593 LASTFILE=$(OUTDIR)\lastfile.lib
595 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
597 $(OUTDIR)\lastfile.obj
599 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
600 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
602 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
603 $(CCV) $(LASTFILE_FLAGS) $**
607 #------------------------------------------------------------------------------
609 !if $(HAVE_X_WINDOWS)
613 LWLIB=$(OUTDIR)\lwlib.lib
614 LWLIB_FLAGS=$(CFLAGS) $(INCLUDES) $(DEFINES) \
615 -DNEED_ATHENA -DNEED_LUCID \
616 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
619 $(OUTDIR)\lwlib-config.obj \
620 $(OUTDIR)\lwlib-utils.obj \
621 $(OUTDIR)\lwlib-Xaw.obj \
622 $(OUTDIR)\lwlib-Xlw.obj \
623 $(OUTDIR)\lwlib.obj \
624 $(OUTDIR)\xlwmenu.obj \
625 $(OUTDIR)\xlwscrollbar.obj
627 $(LWLIB): $(LWLIB_OBJS)
628 link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
630 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRCDIR)\lwlib-config.c
631 $(CCV) $(LWLIB_FLAGS) $**
633 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRCDIR)\lwlib-utils.c
634 $(CCV) $(LWLIB_FLAGS) $**
636 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRCDIR)\lwlib-Xaw.c
637 $(CCV) $(LWLIB_FLAGS) $**
639 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRCDIR)\lwlib-Xlw.c
640 $(CCV) $(LWLIB_FLAGS) $**
642 $(OUTDIR)\lwlib.obj: $(LWLIB_SRCDIR)\lwlib.c
643 $(CCV) $(LWLIB_FLAGS) $**
645 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRCDIR)\xlwmenu.c
646 $(CCV) $(LWLIB_FLAGS) $**
648 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRCDIR)\xlwscrollbar.c
649 $(CCV) $(LWLIB_FLAGS) $**
652 #------------------------------------------------------------------------------
663 $(SRC)\casefiddle.c \
668 $(SRC)\console-stream.c \
682 $(SRC)\event-stream.c \
686 $(SRC)\file-coding.c \
695 $(SRC)\getloadavg.c \
697 $(SRC)\glyphs-eimage.c \
698 $(SRC)\glyphs-widget.c \
707 $(SRC)\line-number.c \
723 $(SRC)\process-nt.c \
727 $(SRC)\redisplay-output.c \
748 !if $(HAVE_X_WINDOWS)
750 $(SRC)\balloon_help.c \
754 $(SRC)\EmacsFrame.c \
755 $(SRC)\EmacsManager.c \
756 $(SRC)\EmacsShell-sub.c\
757 $(SRC)\EmacsShell.c \
765 $(SRC)\redisplay-x.c \
766 $(SRC)\scrollbar-x.c \
773 !if $(HAVE_MS_WINDOWS)
775 $(SRC)\console-msw.c \
776 $(SRC)\device-msw.c \
779 $(SRC)\glyphs-msw.c \
781 $(SRC)\menubar-msw.c \
782 $(SRC)\objects-msw.c \
783 $(SRC)\redisplay-msw.c \
784 $(SRC)\scrollbar-msw.c \
785 $(SRC)\select-msw.c \
795 $(SRC)\mule-charset.c \
797 ! if $(HAVE_X_WINDOWS)
798 DOC_SRC8=$(DOC_SRC8) $(SRC)\input-method-xlib.c
808 !if !$(USE_SYSTEM_MALLOC)
816 !if !$(USE_PORTABLE_DUMPER)
824 #------------------------------------------------------------------------------
829 !if "$(emacs_beta_version)" != ""
830 !if "$(emacs_is_beta)" != ""
831 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
833 EMACS_PATCH_LEVEL=-DEMACS_PATCH_LEVEL=$(emacs_beta_version)
837 !if !$(USE_PORTABLE_DUMPER)
838 TEMACS_ENTRYPOINT=-entry:_start
840 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
844 TEMACS=$(TEMACS_DIR)\temacs.exe
845 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
847 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
848 oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \
849 shell32.lib wsock32.lib winmm.lib winspool.lib ole32.lib uuid.lib $(LIBC_LIB)
850 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
851 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
852 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
853 -heap:0x00100000 -nodefaultlib -incremental:no setargv.obj
854 TEMACS_CPP_FLAGS=-c \
855 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
856 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
857 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
858 $(EMACS_BETA_VERSION) \
859 $(EMACS_PATCH_LEVEL) \
860 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
861 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
862 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
864 !if $(HAVE_X_WINDOWS)
866 $(OUTDIR)\balloon-x.obj \
867 $(OUTDIR)\balloon_help.obj \
868 $(OUTDIR)\console-x.obj \
869 $(OUTDIR)\device-x.obj \
870 $(OUTDIR)\dialog-x.obj \
871 $(OUTDIR)\EmacsFrame.obj \
872 $(OUTDIR)\EmacsManager.obj \
873 $(OUTDIR)\EmacsShell.obj \
874 $(OUTDIR)\TopLevelEmacsShell.obj\
875 $(OUTDIR)\TransientEmacsShell.obj\
876 $(OUTDIR)\event-Xt.obj \
877 $(OUTDIR)\frame-x.obj \
878 $(OUTDIR)\glyphs-x.obj \
879 $(OUTDIR)\gui-x.obj \
880 $(OUTDIR)\menubar-x.obj \
881 $(OUTDIR)\objects-x.obj \
882 $(OUTDIR)\redisplay-x.obj \
883 $(OUTDIR)\scrollbar-x.obj \
884 $(OUTDIR)\xgccache.obj \
886 $(OUTDIR)\select-x.obj
889 !if $(HAVE_MS_WINDOWS)
891 $(OUTDIR)\console-msw.obj \
892 $(OUTDIR)\device-msw.obj \
893 $(OUTDIR)\event-msw.obj \
894 $(OUTDIR)\frame-msw.obj \
895 $(OUTDIR)\glyphs-msw.obj \
896 $(OUTDIR)\gui-msw.obj \
897 $(OUTDIR)\menubar-msw.obj \
898 $(OUTDIR)\objects-msw.obj \
899 $(OUTDIR)\redisplay-msw.obj \
900 $(OUTDIR)\scrollbar-msw.obj \
901 $(OUTDIR)\select-msw.obj \
911 $(OUTDIR)\mule-charset.obj \
912 $(OUTDIR)\mule-ccl.obj
913 ! if $(HAVE_X_WINDOWS)
915 $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
921 $(OUTDIR)\debug.obj \
925 !if !$(USE_SYSTEM_MALLOC)
927 $(OUTDIR)\free-hook.obj \
928 $(OUTDIR)\gmalloc.obj \
929 $(OUTDIR)\ntheap.obj \
930 $(OUTDIR)\vm-limit.obj
933 !if !$(USE_PORTABLE_DUMPER)
944 $(TEMACS_CODING_OBJS)\
946 $(TEMACS_DEBUG_OBJS)\
947 $(TEMACS_ALLOC_OBJS)\
949 $(OUTDIR)\abbrev.obj \
950 $(OUTDIR)\alloc.obj \
951 $(OUTDIR)\blocktype.obj \
952 $(OUTDIR)\buffer.obj \
953 $(OUTDIR)\bytecode.obj \
954 $(OUTDIR)\callint.obj \
955 $(OUTDIR)\callproc.obj \
956 $(OUTDIR)\casefiddle.obj \
957 $(OUTDIR)\casetab.obj \
958 $(OUTDIR)\chartab.obj \
959 $(OUTDIR)\cmdloop.obj \
961 $(OUTDIR)\console-stream.obj \
962 $(OUTDIR)\console.obj \
964 $(OUTDIR)\device.obj \
965 $(OUTDIR)\dired.obj \
967 $(OUTDIR)\doprnt.obj \
968 $(OUTDIR)\dragdrop.obj \
969 $(OUTDIR)\dynarr.obj \
970 $(OUTDIR)\editfns.obj \
971 $(OUTDIR)\elhash.obj \
972 $(OUTDIR)\emacs.obj \
974 $(OUTDIR)\event-stream.obj \
975 $(OUTDIR)\events.obj \
976 $(OUTDIR)\extents.obj \
977 $(OUTDIR)\faces.obj \
978 $(OUTDIR)\file-coding.obj \
979 $(OUTDIR)\fileio.obj \
980 $(OUTDIR)\filemode.obj \
981 $(OUTDIR)\floatfns.obj \
983 $(OUTDIR)\font-lock.obj \
984 $(OUTDIR)\frame.obj \
985 $(OUTDIR)\general.obj \
986 $(OUTDIR)\getloadavg.obj \
987 $(OUTDIR)\glyphs.obj \
988 $(OUTDIR)\glyphs-eimage.obj \
989 $(OUTDIR)\glyphs-widget.obj \
991 $(OUTDIR)\gutter.obj \
993 $(OUTDIR)\indent.obj \
994 $(OUTDIR)\imgproc.obj \
995 $(OUTDIR)\insdel.obj \
997 $(OUTDIR)\keymap.obj \
998 $(OUTDIR)\line-number.obj \
999 $(OUTDIR)\lread.obj \
1000 $(OUTDIR)\lstream.obj \
1001 $(OUTDIR)\macros.obj \
1002 $(OUTDIR)\menubar.obj \
1003 $(OUTDIR)\marker.obj \
1005 $(OUTDIR)\minibuf.obj \
1007 $(OUTDIR)\ntplay.obj \
1008 $(OUTDIR)\ntproc.obj \
1009 $(OUTDIR)\objects.obj \
1010 $(OUTDIR)\opaque.obj \
1011 $(OUTDIR)\print.obj \
1012 $(OUTDIR)\process.obj \
1013 $(OUTDIR)\process-nt.obj \
1014 $(OUTDIR)\profile.obj \
1015 $(OUTDIR)\rangetab.obj \
1016 $(OUTDIR)\realpath.obj \
1017 $(OUTDIR)\redisplay-output.obj \
1018 $(OUTDIR)\redisplay.obj \
1019 $(OUTDIR)\regex.obj \
1020 $(OUTDIR)\scrollbar.obj \
1021 $(OUTDIR)\search.obj \
1022 $(OUTDIR)\select.obj \
1023 $(OUTDIR)\signal.obj \
1024 $(OUTDIR)\sound.obj \
1025 $(OUTDIR)\specifier.obj \
1026 $(OUTDIR)\strftime.obj \
1027 $(OUTDIR)\symbols.obj \
1028 $(OUTDIR)\syntax.obj \
1029 $(OUTDIR)\sysdep.obj \
1030 $(OUTDIR)\tparam.obj \
1031 $(OUTDIR)\undo.obj \
1032 $(OUTDIR)\widget.obj \
1033 $(OUTDIR)\window.obj \
1039 .SUFFIXES: .c .obj .texi .info
1043 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1044 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
1046 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1047 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@
1050 $(OUTDIR)\emacs.obj: $(XEMACS)\version.sh
1052 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
1053 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
1055 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
1056 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
1058 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c
1060 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
1061 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
1063 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
1064 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
1066 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) $(OUTDIR)\xemacs.res
1068 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
1069 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
1072 !if $(USE_PORTABLE_DUMPER)
1073 @if exist $(SRC)\dump-id.c del $(SRC)\dump-id.c
1074 # make a new dump id file. There is probably a better way to do this, but this works
1075 @if exist $(OUTDIR)\dump-id.obj del $(OUTDIR)\dump-id.obj
1076 nmake -nologo -f xemacs.mak OUTDIR=$(OUTDIR) $(OUTDIR)\dump-id.obj
1078 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1082 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS)
1086 $(OUTDIR)\xemacs.res: xemacs.rc
1090 PROGNAME=$(SRC)\xemacs.exe
1091 TEMACS_BATCH="$(LIB_SRC)\i" "$(TEMACS)" -batch
1092 XEMACS_BATCH="$(LIB_SRC)\i" "$(PROGNAME)" -vanilla -batch
1094 # Section handling automated tests starts here
1096 blddir=$(MAKEDIR:\=\\)\\..
1097 temacs_loadup=$(TEMACS_BATCH) -l $(LISP)/loadup.el
1098 dump_temacs = $(temacs_loadup) dump
1099 run_temacs = $(temacs_loadup) run-temacs
1100 ## We have automated tests!!
1101 testdir=../tests/automated
1102 batch_test_emacs=-batch -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
1104 # .PHONY: check check-temacs
1108 $(PROGNAME) $(batch_test_emacs)
1112 set EMACSBOOTSTRAPLOADPATH=$(LISP)
1113 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1114 $(run_temacs) $(batch_test_emacs)
1116 # Section handling automated tests ends here
1118 # Section handling tags starts here
1123 @echo If you don't have a copy of etags around, then do 'make lib-src' first.
1124 @echo To make use of the tags file, put the following in your .emacs:
1125 @echo (setq tag-table-alist
1126 @echo '(("$(XEMACSDIRSTRING)\\" . "$(XEMACSDIRSTRING)\\")))
1129 set PATH=lib-src;%PATH%
1130 # we need to double ^, but only before backslash! Doubling it elsewhere
1131 # causes problems. I don't understand this -- CMD.EXE uses ^ as a quoting
1132 # convention of sorts, but appears to leave it alone inside of double quotes,
1133 # even before \. Could this be nmake interference?
1134 etags -a -r "/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
1135 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
1137 # Section handling tags ends here
1139 # Section handling info starts here
1141 !if !defined(MAKEINFO)
1142 MAKEINFO=$(XEMACS_BATCH) -l texinfmt -f batch-texinfo-format
1145 MANDIR = $(XEMACS)\man
1146 INFODIR = $(XEMACS)\info
1148 $(INFODIR)\cl.info \
1149 $(INFODIR)\custom.info \
1150 $(INFODIR)\emodules.info \
1151 $(INFODIR)\external-widget.info \
1152 $(INFODIR)\info.info \
1153 $(INFODIR)\standards.info \
1154 $(INFODIR)\term.info \
1155 $(INFODIR)\termcap.info \
1156 $(INFODIR)\texinfo.info \
1157 $(INFODIR)\widget.info \
1158 $(INFODIR)\xemacs-faq.info \
1159 $(INFODIR)\xemacs.info \
1160 $(INFODIR)\lispref.info \
1161 $(INFODIR)\new-users-guide.info \
1162 $(INFODIR)\internals.info
1164 {$(MANDIR)}.texi{$(INFODIR)}.info:
1169 $(MANDIR)\xemacs\abbrevs.texi \
1170 $(MANDIR)\xemacs\basic.texi \
1171 $(MANDIR)\xemacs\buffers.texi \
1172 $(MANDIR)\xemacs\building.texi \
1173 $(MANDIR)\xemacs\calendar.texi \
1174 $(MANDIR)\xemacs\cmdargs.texi \
1175 $(MANDIR)\xemacs\custom.texi \
1176 $(MANDIR)\xemacs\display.texi \
1177 $(MANDIR)\xemacs\entering.texi \
1178 $(MANDIR)\xemacs\files.texi \
1179 $(MANDIR)\xemacs\fixit.texi \
1180 $(MANDIR)\xemacs\frame.texi \
1181 $(MANDIR)\xemacs\glossary.texi \
1182 $(MANDIR)\xemacs\gnu.texi \
1183 $(MANDIR)\xemacs\help.texi \
1184 $(MANDIR)\xemacs\indent.texi \
1185 $(MANDIR)\xemacs\keystrokes.texi \
1186 $(MANDIR)\xemacs\killing.texi \
1187 $(MANDIR)\xemacs\m-x.texi \
1188 $(MANDIR)\xemacs\major.texi \
1189 $(MANDIR)\xemacs\mark.texi \
1190 $(MANDIR)\xemacs\menus.texi \
1191 $(MANDIR)\xemacs\mini.texi \
1192 $(MANDIR)\xemacs\misc.texi \
1193 $(MANDIR)\xemacs\mouse.texi \
1194 $(MANDIR)\xemacs\mule.texi \
1195 $(MANDIR)\xemacs\new.texi \
1196 $(MANDIR)\xemacs\packages.texi \
1197 $(MANDIR)\xemacs\picture.texi \
1198 $(MANDIR)\xemacs\programs.texi \
1199 $(MANDIR)\xemacs\reading.texi \
1200 $(MANDIR)\xemacs\regs.texi \
1201 $(MANDIR)\xemacs\search.texi \
1202 $(MANDIR)\xemacs\sending.texi \
1203 $(MANDIR)\xemacs\startup.texi \
1204 $(MANDIR)\xemacs\text.texi \
1205 $(MANDIR)\xemacs\trouble.texi \
1206 $(MANDIR)\xemacs\undo.texi \
1207 $(MANDIR)\xemacs\windows.texi \
1208 $(MANDIR)\xemacs\xemacs.texi
1211 $(MANDIR)\lispref\abbrevs.texi \
1212 $(MANDIR)\lispref\annotations.texi \
1213 $(MANDIR)\lispref\back.texi \
1214 $(MANDIR)\lispref\backups.texi \
1215 $(MANDIR)\lispref\buffers.texi \
1216 $(MANDIR)\lispref\building.texi \
1217 $(MANDIR)\lispref\commands.texi \
1218 $(MANDIR)\lispref\compile.texi \
1219 $(MANDIR)\lispref\consoles-devices.texi \
1220 $(MANDIR)\lispref\control.texi \
1221 $(MANDIR)\lispref\customize.texi \
1222 $(MANDIR)\lispref\databases.texi \
1223 $(MANDIR)\lispref\debugging.texi \
1224 $(MANDIR)\lispref\dialog.texi \
1225 $(MANDIR)\lispref\display.texi \
1226 $(MANDIR)\lispref\dragndrop.texi \
1227 $(MANDIR)\lispref\edebug-inc.texi \
1228 $(MANDIR)\lispref\edebug.texi \
1229 $(MANDIR)\lispref\errors.texi \
1230 $(MANDIR)\lispref\eval.texi \
1231 $(MANDIR)\lispref\extents.texi \
1232 $(MANDIR)\lispref\faces.texi \
1233 $(MANDIR)\lispref\files.texi \
1234 $(MANDIR)\lispref\frames.texi \
1235 $(MANDIR)\lispref\functions.texi \
1236 $(MANDIR)\lispref\glyphs.texi \
1237 $(MANDIR)\lispref\hash-tables.texi \
1238 $(MANDIR)\lispref\help.texi \
1239 $(MANDIR)\lispref\hooks.texi \
1240 $(MANDIR)\lispref\index.texi \
1241 $(MANDIR)\lispref\internationalization.texi \
1242 $(MANDIR)\lispref\intro.texi \
1243 $(MANDIR)\lispref\keymaps.texi \
1244 $(MANDIR)\lispref\ldap.texi \
1245 $(MANDIR)\lispref\lispref.texi \
1246 $(MANDIR)\lispref\lists.texi \
1247 $(MANDIR)\lispref\loading.texi \
1248 $(MANDIR)\lispref\locals.texi \
1249 $(MANDIR)\lispref\macros.texi \
1250 $(MANDIR)\lispref\maps.texi \
1251 $(MANDIR)\lispref\markers.texi \
1252 $(MANDIR)\lispref\menus.texi \
1253 $(MANDIR)\lispref\minibuf.texi \
1254 $(MANDIR)\lispref\modes.texi \
1255 $(MANDIR)\lispref\mouse.texi \
1256 $(MANDIR)\lispref\mule.texi \
1257 $(MANDIR)\lispref\numbers.texi \
1258 $(MANDIR)\lispref\objects.texi \
1259 $(MANDIR)\lispref\os.texi \
1260 $(MANDIR)\lispref\positions.texi \
1261 $(MANDIR)\lispref\processes.texi \
1262 $(MANDIR)\lispref\range-tables.texi \
1263 $(MANDIR)\lispref\scrollbars.texi \
1264 $(MANDIR)\lispref\searching.texi \
1265 $(MANDIR)\lispref\sequences.texi \
1266 $(MANDIR)\lispref\specifiers.texi \
1267 $(MANDIR)\lispref\streams.texi \
1268 $(MANDIR)\lispref\strings.texi \
1269 $(MANDIR)\lispref\symbols.texi \
1270 $(MANDIR)\lispref\syntax.texi \
1271 $(MANDIR)\lispref\text.texi \
1272 $(MANDIR)\lispref\tips.texi \
1273 $(MANDIR)\lispref\toolbar.texi \
1274 $(MANDIR)\lispref\tooltalk.texi \
1275 $(MANDIR)\lispref\variables.texi \
1276 $(MANDIR)\lispref\windows.texi \
1277 $(MANDIR)\lispref\x-windows.texi
1280 $(MANDIR)\internals\internals.texi \
1281 $(MANDIR)\internals\index.texi
1283 NEW_USERS_GUIDE_SRCS = \
1284 $(MANDIR)\new-users-guide\custom1.texi \
1285 $(MANDIR)\new-users-guide\custom2.texi \
1286 $(MANDIR)\new-users-guide\edit.texi \
1287 $(MANDIR)\new-users-guide\enter.texi \
1288 $(MANDIR)\new-users-guide\files.texi \
1289 $(MANDIR)\new-users-guide\help.texi \
1290 $(MANDIR)\new-users-guide\modes.texi \
1291 $(MANDIR)\new-users-guide\new-users-guide.texi \
1292 $(MANDIR)\new-users-guide\region.texi \
1293 $(MANDIR)\new-users-guide\search.texi \
1294 $(MANDIR)\new-users-guide\xmenu.texi
1296 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
1298 $(MAKEINFO) xemacs.texi
1302 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
1303 cd $(MANDIR)\lispref
1304 $(MAKEINFO) lispref.texi
1307 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
1308 cd $(MANDIR)\internals
1309 $(MAKEINFO) internals.texi
1312 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
1313 cd $(MANDIR)\new-users-guide
1314 $(MAKEINFO) new-users-guide.texi
1317 info: makeinfo-test $(INFO_FILES)
1320 @<<makeinfo_test.bat
1322 if exist "$(MAKEINFO)" goto test_done
1323 @$(XEMACS_BATCH) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
1324 @if not errorlevel 1 goto suggest_makeinfo
1325 @echo XEmacs 'info' cannot be built!
1326 @echo Install XEmacs package 'texinfo' (see README.packages).
1328 @echo Consider specifying path to makeinfo program: MAKEINFO=path
1329 @echo as this will build info docs faster than XEmacs using 'texinfo'.
1330 @if errorlevel 1 exit 1
1334 # Section handling info ends here
1336 #------------------------------------------------------------------------------
1342 # Rebuild docfile target
1344 if exist $(DOC) del $(DOC)
1347 $(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)
1348 if exist $(DOC) del $(DOC)
1349 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1350 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1351 $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
1352 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
1353 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
1354 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
1355 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
1356 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
1357 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
1358 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
1359 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
1360 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
1361 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC10)
1362 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC11)
1365 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1366 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1367 $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\update-elc.el
1369 # This file is touched by update-elc.el when redumping is necessary.
1370 $(TEMACS_DIR)\NEEDTODUMP :
1371 @echo >$(TEMACS_DIR)\NEEDTODUMP
1373 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
1374 # requirements have changed.
1376 $(PROGNAME) : $(TEMACS) $(TEMACS_DIR)\NEEDTODUMP
1377 @echo >$(TEMACS_DIR)\SATISFIED
1379 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1380 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1381 $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\loadup.el dump
1382 !if $(USE_PORTABLE_DUMPER)
1383 rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
1385 $(TEMACS_LFLAGS) -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1387 # Make the resource section read/write since almost all of it is the dump
1388 # data which needs to be writable. This avoids having to copy it.
1389 editbin -nologo -stack:0x800000 -section:.rsrc,rw xemacs.exe
1390 $(DEL) $(TEMACS_DIR)\xemacs.dmp
1392 editbin -nologo -stack:0x800000 xemacs.exe
1395 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
1396 #------------------------------------------------------------------------------
1398 # use this rule to build the complete system
1399 all: installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
1400 $(LIB_SRC_TOOLS) $(TEMACS) update-elc $(DOC) $(PROGNAME) \
1401 update-elc-2 update-auto-and-custom info
1403 temacs: $(LASTFILE) $(TEMACS)
1405 # use this rule to install the system
1408 @echo Installing in $(INSTALL_DIR) ...
1409 @echo PlaceHolder > PlaceHolder
1410 @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
1411 @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
1412 $(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
1413 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
1414 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1415 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1416 @copy $(SRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1417 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\"
1418 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
1419 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
1420 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
1421 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
1422 $(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
1423 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
1424 $(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
1425 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
1426 $(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
1430 $(DEL) $(XEMACS)\Installation
1431 $(DEL) $(OUTDIR)\*.lib
1432 $(DEL) $(OUTDIR)\*.obj
1433 $(DEL) $(OUTDIR)\*.pdb
1434 $(DEL) $(OUTDIR)\*.res
1435 $(DEL) $(OUTDIR)\*.sbr
1440 $(DEL) $(LIB_SRC)\*.exe
1441 $(DEL) $(LIB_SRC)\*.obj
1442 $(DEL) $(LIB_SRC)\*.pdb
1443 $(DEL) $(LIB_SRC)\*.res
1445 clean: mostlyclean versionclean
1446 $(DEL) $(XEMACS)\TAGS
1453 $(DEL) $(LIB_SRC)\*.bak
1454 $(DEL) $(LIB_SRC)\*.orig
1455 $(DEL) $(LIB_SRC)\*.rej
1456 $(DEL) $(LIB_SRC)\*.tmp
1458 $(DEL) $(SRC)\*.orig
1461 $(DEL) $(LISP)\*.bak
1462 $(DEL) $(LISP)\*.orig
1463 $(DEL) $(LISP)\*.rej
1464 $(DEL) $(LISP)\*.tmp
1466 ## This is used in making a distribution.
1467 ## Do not use it on development directories!
1468 distclean: nicenclean
1469 $(DEL) $(SRC)\config.h
1470 $(DEL) $(SRC)\paths.h
1471 $(DEL) $(SRC)\Emacs.ad.h
1472 $(DEL) $(CONFIG_VALUES)
1473 $(DEL) $(INFODIR)\*.info*
1474 $(DEL) $(LISP)\*.elc
1476 realclean: distclean
1479 $(DEL) $(SRC)\xemacs.exe
1480 $(DEL) $(LIB_SRC)\DOC
1482 #not sure about those wildcards. DOS wildcards are stupid compared to Unix,
1483 #and could end up deleting *everything* instead of just backup files or
1485 #extraclean: realclean
1486 # $(DEL) *~ *.*~ #* m\*~ m\#* s\*~ s\#*
1490 perl ./make-src-depend > depend.tmp
1491 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
1493 $(XEMACS)\Installation:: installation
1496 @echo OS version:>$(XEMACS)\Installation
1497 @ver >> $(XEMACS)\Installation
1498 @type >> $(XEMACS)\Installation <<
1503 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename) configured for `$(EMACS_CONFIGURATION)'.
1505 Building XEmacs in "$(MAKEDIR:\=\\)".
1507 Using compiler "$(CC) $(CFLAGS)".
1509 Installing XEmacs in "$(INSTALL_DIR:\=\\)".
1510 Package path is $(PATH_PACKAGEPATH).
1514 !if $(HAVE_MS_WINDOWS)
1515 Compiling in support for Microsoft Windows native GUI.
1517 !if $(HAVE_X_WINDOWS)
1518 Compiling in support for X-Windows.
1524 --------------------------------------------------------------------
1525 WARNING: You specified HAVE_GTK=1, but we are compiling WITHOUT GTK support.
1526 WARNING: gtk-xemacs is not currently supported on MSWindows (mingw or msvc).
1527 WARNING: Yes, we know that gtk has been ported to native MSWindows, but
1528 WARNING: XEmacs is not yet ready to use that port.
1529 --------------------------------------------------------------------
1532 Compiling in support for XPM images.
1534 --------------------------------------------------------------------
1535 WARNING: Compiling without XPM support.
1536 WARNING: You should strongly consider installing XPM.
1537 WARNING: Otherwise toolbars and other graphics will look suboptimal.
1538 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
1539 --------------------------------------------------------------------
1542 Compiling in support for GIF images.
1545 Compiling in support for PNG images.
1547 --------------------------------------------------------------------
1548 WARNING: Compiling without PNG image support.
1549 WARNING: You should strongly consider installing the PNG libraries.
1550 WARNING: Otherwise certain images and glyphs may not display.
1551 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
1552 --------------------------------------------------------------------
1555 Compiling in support for TIFF images.
1558 Compiling in support for JPEG images.
1561 Compiling in support for X-Face message headers.
1563 !if $(HAVE_TOOLBARS)
1564 Compiling in support for toolbars.
1567 Compiling in support for dialogs.
1570 Compiling in support for widgets.
1572 !if $(HAVE_NATIVE_SOUND)
1573 Compiling in support for native sounds.
1575 !if $(HAVE_MSW_C_DIRED)
1576 Compiling in fast dired implementation.
1578 --------------------------------------------------------------------
1579 WARNING: Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs
1580 WARNING: to use C primitives to significantly speed up dired, at the
1581 WARNING: expense of an additional ~4KB of code.
1582 --------------------------------------------------------------------
1584 !if $(USE_UNION_TYPE)
1585 Using union type for Lisp object storage.
1587 !if $(USE_PORTABLE_DUMPER)
1588 Using portable dumper.
1590 !if $(USE_SYSTEM_MALLOC)
1591 Using system malloc.
1594 Using DLL version of C runtime library
1597 Compiling in extra debug checks. XEmacs will be slow!
1600 Disabling non-essential build actions. Use with care!
1603 @echo --------------------------------------------------------------------
1604 @type $(XEMACS)\Installation
1605 @echo --------------------------------------------------------------------
1607 # Update out-of-date .elcs, other than needed for dumping.
1609 $(XEMACS_BATCH) -l update-elc-2.el -f batch-update-elc-2 $(LISP)
1611 # Update auto-autoloads.el and custom-load.el, similar to what
1612 # XEmacs.rules does for xemacs-packages. This used to delete
1613 # auto-autoloads.el first, but that's a bad idea, because it forces
1614 # rebuilding from scratch, which is time-consuming; and the autoload
1615 # code is specifically written to do in-place updating. However, if
1616 # your auto-autoload file is messed up and you want it rebuilt from
1617 # scratch, delete it from the command line and then nmake with this
1619 update-auto-and-custom:
1620 # Combine into one invocation to avoid repeated startup penalty.
1621 $(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
1622 $(DEL) $(LISP)\auto-autoloads.el~
1623 $(DEL) $(LISP)\custom-load.el~
1625 # DO NOT DELETE THIS LINE -- make depend depends on it.