XEmacs 21.2.33 "Melpomene".
[chise/xemacs-chise.git.1] / nt / xemacs.mak
1 #   Makefile for Microsoft NMAKE
2 #   Copyright (C) 1995 Board of Trustees, University of Illinois.
3 #   Copyright (C) 1995, 1996 Ben Wing.
4 #   Copyright (C) 1995 Sun Microsystems, Inc.
5 #   Copyright (C) 1998 Free Software Foundation, Inc.
6 #
7 # This file is part of XEmacs.
8 #
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
12 # later version.
13 #
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
17 # for more details.
18 #
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.
23 #
24 # Synched up with: Not in FSF.
25 #
26
27 default: all
28
29 XEMACS=..
30 LISP=$(XEMACS)\lisp
31 LIB_SRC=$(XEMACS)\lib-src
32 MODULES=$(XEMACS)\modules
33 NT=$(XEMACS)\nt
34 OUTDIR=$(NT)\obj
35 SRC=$(XEMACS)\src
36 LWLIB_SRCDIR=$(XEMACS)\lwlib
37 MAKEDIRSTRING=$(MAKEDIR:\=\\)
38 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=)
39
40
41 # Define a variable for the 'del' command to use
42 DEL=-del
43
44 # Program name and version
45
46 !include "$(XEMACS)\version.sh"
47
48 !include "config.inc"
49
50 !if !defined(INFODOCK)
51 INFODOCK=0
52 !endif
53
54 !if $(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)
64 !else
65 !if "$(emacs_beta_version)" != ""
66 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)-b$(emacs_beta_version)
67 !else
68 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
69 !endif
70 PROGRAM_DEFINES=                                                \
71         -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\"             \
72         -DPATH_PROGNAME=\"xemacs\"                              \
73         -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\"            \
74         -DEMACS_PROGNAME=\"xemacs\"
75 !endif
76
77 #
78 # Command line options defaults
79 #
80 !if !defined(INSTALL_DIR)
81 ! if $(INFODOCK)
82 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
83 ! else
84 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
85 ! endif
86 !endif
87 !if !defined(HAVE_MULE)
88 HAVE_MULE=0
89 !endif
90 !if !defined(PACKAGE_PATH)
91 ! if !defined(PACKAGE_PREFIX)
92 PACKAGE_PREFIX=c:\Program Files\XEmacs
93 ! endif
94 ! if $(HAVE_MULE)
95 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
96 ! else
97 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
98 ! endif
99 !endif
100 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
101 !if !defined(HAVE_MS_WINDOWS)
102 HAVE_MS_WINDOWS=1
103 !endif
104 !if !defined(HAVE_X_WINDOWS)
105 HAVE_X_WINDOWS=0
106 !endif
107 !if !defined(HAVE_XPM)
108 HAVE_XPM=0
109 !endif
110 !if !defined(HAVE_PNG)
111 HAVE_PNG=0
112 !endif
113 !if !defined(HAVE_TIFF)
114 HAVE_TIFF=0
115 !endif
116 !if !defined(HAVE_JPEG)
117 HAVE_JPEG=0
118 !endif
119 !if !defined(HAVE_XFACE)
120 HAVE_XFACE=0
121 !endif
122 !if !defined(HAVE_GIF)
123 HAVE_GIF=1
124 !endif
125 !if !defined(HAVE_TOOLBARS)
126 HAVE_TOOLBARS=$(HAVE_XPM)
127 !endif
128 !if !defined(HAVE_DIALOGS)
129 HAVE_DIALOGS=1
130 !endif
131 !if !defined(HAVE_MSW_C_DIRED)
132 HAVE_MSW_C_DIRED=1
133 !endif
134 !if !defined(HAVE_NATIVE_SOUND)
135 HAVE_NATIVE_SOUND=1
136 !endif
137 !if !defined(HAVE_WIDGETS)
138 HAVE_WIDGETS=1
139 !endif
140 !if !defined(DEBUG_XEMACS)
141 DEBUG_XEMACS=0
142 !endif
143 !if !defined(QUICK_BUILD)
144 QUICK_BUILD=0
145 !endif
146 !if !defined(USE_UNION_TYPE)
147 USE_UNION_TYPE=0
148 !endif
149 !if !defined(USE_MINITAR)
150 USE_MINITAR=1
151 !endif
152 !if !defined(USE_MINIMAL_TAGBITS)
153 USE_MINIMAL_TAGBITS=0
154 !endif
155 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
156 USE_INDEXED_LRECORD_IMPLEMENTATION=0
157 !endif
158 !if !defined(USE_PORTABLE_DUMPER)
159 USE_PORTABLE_DUMPER=0
160 !endif
161 !if !defined(GUNG_HO)
162 GUNG_HO=0
163 !endif
164
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)
170 !endif
171 !if !defined(USE_CRTDLL)
172 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
173 !endif
174
175 #
176 # System configuration
177 #
178 !if !defined(OS)
179 OS=Windows_95/98
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
189 !else
190 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
191 !endif
192
193 #
194 # Conf error checks
195 #
196 CONFIG_ERROR=0
197 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
198 !message Cannot build InfoDock without InfoDock sources
199 CONFIG_ERROR=1
200 !endif
201 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
202 !message Cannot use system allocator when dumping old way, use portable dumper.
203 CONFIG_ERROR=1
204 !endif
205 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
206 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
207 CONFIG_ERROR=1
208 !endif
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]]]  ####
212 CONFIG_ERROR=1
213 !endif
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
216 CONFIG_ERROR=1
217 !endif
218 !if $(HAVE_X_WINDOWS) && !defined(X11_DIR)
219 !message Please specify root directory for your X11 installation: X11_DIR=path
220 CONFIG_ERROR=1
221 !endif
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"
224 CONFIG_ERROR=1
225 !endif
226 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
227 !message Please specify root directory for your XPM installation: XPM_DIR=path
228 CONFIG_ERROR=1
229 !endif
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"
232 CONFIG_ERROR=1
233 !endif
234 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
235 !message Please specify root directory for your PNG installation: PNG_DIR=path
236 CONFIG_ERROR=1
237 !endif
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"
240 CONFIG_ERROR=1
241 !endif
242 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
243 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
244 CONFIG_ERROR=1
245 !endif
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"
248 CONFIG_ERROR=1
249 !endif
250 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
251 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
252 CONFIG_ERROR=1
253 !endif
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"
256 CONFIG_ERROR=1
257 !endif
258 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
259 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
260 CONFIG_ERROR=1
261 !endif
262 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
263 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
264 CONFIG_ERROR=1
265 !endif
266 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
267 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
268 CONFIG_ERROR=1
269 !endif
270 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
271 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
272 CONFIG_ERROR=1
273 !endif
274 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
275 !message Toolbars require XPM support
276 CONFIG_ERROR=1
277 !endif
278 !if $(CONFIG_ERROR)
279 !error Configuration error(s) found
280 !endif
281
282 #
283 # Handle GUNG_HO
284 #
285 !if defined(GUNG_HO)
286 USE_MINIMAL_TAGBITS=$(GUNG_HO)
287 USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
288 !endif
289
290 #
291 # Whether to use dependency information generated by make-src-depend
292 #
293 !if !defined(DEPEND)
294 DEPEND=0
295 !endif
296 !if $(DEPEND)
297 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
298 ! endif
299 # generate an nmake-readable version of depend
300 ! if [perl -p -e "s/^\x23ifdef (.+)/!if defined($$1)/; s/^\x23e/!e/;" \
301         -e "s/([\s=^])([\w\d\.\-^]+\.[ch^])/$$1$(SRC:\=\\)\\$$2/g;" \
302         -e "s/^(.+)\.o:(.+)/$(OUTDIR:\=\\)\\$$1.obj:$$2 $(NT:\=\\)\\config.inc/;" \
303         < $(SRC)\depend > $(OUTDIR)\depend.tmp]
304 ! endif
305 ! include "$(OUTDIR)\depend.tmp"
306 !else
307 ! if [echo   WARNING: Compiling without dependency information.]
308 ! endif
309 !endif
310
311 #
312 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
313 #
314 !if !defined(VERBOSECC)
315 VERBOSECC=0
316 !endif
317 !if $(VERBOSECC)
318 CCV=$(CC)
319 !else
320 CCV=@$(CC)
321 !endif
322
323 !if $(DEBUG_XEMACS)
324 OPT=-Od -Zi
325 !else
326 OPT=-O2 -G5
327 !endif
328
329 !if $(USE_CRTDLL)
330 !if $(DEBUG_XEMACS)
331 C_LIBFLAG=-MDd
332 LIBC_LIB=msvcrtd.lib
333 !else
334 C_LIBFLAG=-MD
335 LIBC_LIB=msvcrt.lib
336 !endif
337 !else
338 C_LIBFLAG=-ML
339 LIBC_LIB=libc.lib
340 !endif
341
342 CFLAGS=-nologo -W3 $(OPT) $(C_LIBFLAG)
343
344 !if $(HAVE_X_WINDOWS)
345 X_DEFINES=-DHAVE_X_WINDOWS
346 X_INCLUDES=-I$(X11_DIR)\include
347 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
348 !endif
349
350 !if $(HAVE_MS_WINDOWS)
351 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
352 MSW_INCLUDES=
353 MSW_LIBS=
354 !if $(HAVE_MSW_C_DIRED)
355 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MSW_C_DIRED
356 MSW_C_DIRED_SRC=$(SRC)\dired-msw.c
357 MSW_C_DIRED_OBJ=$(OUTDIR)\dired-msw.obj
358 !endif
359 !if $(HAVE_XPM)
360 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
361 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
362 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
363 !endif
364 !if $(HAVE_GIF)
365 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
366 MSW_GIF_SRC=$(SRC)\dgif_lib.c $(SRC)\gif_io.c
367 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
368 !endif
369 !if $(HAVE_PNG)
370 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
371 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
372 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
373 !endif
374 !if $(HAVE_TIFF)
375 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
376 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
377 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
378 !endif
379 !if $(HAVE_JPEG)
380 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
381 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
382 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
383 !endif
384 !if $(HAVE_XFACE)
385 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
386 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
387 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
388 !endif
389 !if $(HAVE_TOOLBARS)
390 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
391 MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c
392 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
393 MSW_LIBS=$(MSW_LIBS) comctl32.lib
394 !endif
395 !if $(HAVE_DIALOGS)
396 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
397 MSW_DIALOG_SRC=$(SRC)\dialog.c $(SRC)\dialog-msw.c
398 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
399 !endif
400 !if $(HAVE_WIDGETS)
401 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
402 !endif
403 !if $(HAVE_NATIVE_SOUND)
404 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
405 !endif
406 !endif
407
408 !if $(HAVE_MULE)
409 MULE_DEFINES=-DMULE
410 !endif
411
412 !if $(DEBUG_XEMACS)
413 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG 
414 DEBUG_FLAGS=-debug:full
415 !endif
416
417 !if $(QUICK_BUILD)
418 QUICK_DEFINES=-DQUICK_BUILD
419 !endif
420
421 !if $(USE_MINIMAL_TAGBITS)
422 TAGBITS_DEFINES=-DUSE_MINIMAL_TAGBITS
423 !endif
424 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
425 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION
426 !endif
427 !if $(USE_UNION_TYPE)
428 UNION_DEFINES=-DUSE_UNION_TYPE
429 !endif
430
431 !if $(USE_PORTABLE_DUMPER)
432 DUMPER_DEFINES=-DPDUMP
433 !endif
434
435 !if $(USE_SYSTEM_MALLOC)
436 MALLOC_DEFINES=-DSYSTEM_MALLOC
437 !else
438 MALLOC_DEFINES=-DGNU_MALLOC
439 !endif
440
441 # Hard-coded paths
442
443 !if $(INFODOCK)
444 PATH_PREFIX=../..
445 !else
446 PATH_PREFIX=..
447 !endif
448
449 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
450
451 # Generic variables
452
453 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR)
454
455 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
456         $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) \
457         $(DUMPER_DEFINES) $(MALLOC_DEFINES) $(QUICK_DEFINES) \
458         -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \
459         -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
460
461 #------------------------------------------------------------------------------
462
463 $(OUTDIR)\nul:
464         -@mkdir $(OUTDIR)
465
466 XEMACS_INCLUDES=\
467  $(SRC)\config.h \
468  $(SRC)\Emacs.ad.h \
469  $(SRC)\paths.h
470
471 $(SRC)\config.h:        config.h
472         copy config.h $(SRC)
473
474 $(SRC)\Emacs.ad.h:      Emacs.ad.h
475         copy Emacs.ad.h $(SRC)
476
477 $(SRC)\paths.h: paths.h
478         copy paths.h $(SRC)
479
480 #------------------------------------------------------------------------------
481
482 # lib-src programs
483
484 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32 -DWINDOWSNT
485
486 #
487 # Creating config.values to be used by config.el
488 #
489 CONFIG_VALUES = $(LIB_SRC)\config.values
490 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
491 !endif
492 # MAKEDIR has to be made into a string.
493 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
494 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
495 !endif
496 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
497 !endif
498 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
499 !endif
500 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
501 !endif
502 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
503 !endif
504 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
505 !endif
506 # PATH_PACKAGEPATH is already a quoted string.
507 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
508 !endif
509
510 # Inferred rule
511 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
512         cd $(LIB_SRC)
513         $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** -link -incremental:no setargv.obj
514         cd $(NT)
515
516 # Individual dependencies
517 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
518 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
519 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
520         cd $(LIB_SRC)
521         $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib -link -incremental:no
522         cd $(NT)
523 $(LIB_SRC)/minitar.exe : $(NT)/minitar.mak $(NT)/minitar.c
524         nmake -nologo -f minitar.mak ZLIB="$(ZLIB_DIR)" NT="$(NT)" LIB_SRC="$(LIB_SRC)"
525
526 LIB_SRC_TOOLS = \
527         $(LIB_SRC)/etags.exe            \
528         $(LIB_SRC)/hexl.exe             \
529         $(LIB_SRC)/i.exe                \
530         $(LIB_SRC)/make-docfile.exe     \
531         $(LIB_SRC)/mmencode.exe         \
532         $(LIB_SRC)/movemail.exe         \
533         $(LIB_SRC)/sorted-doc.exe       \
534         $(LIB_SRC)/wakeup.exe
535 !if $(USE_MINITAR)
536 LIB_SRC_TOOLS = \
537         $(LIB_SRC_TOOLS) \
538         $(LIB_SRC)/minitar.exe
539 !endif
540 !if $(USE_PORTABLE_DUMPER)
541 LIB_SRC_TOOLS = \
542         $(XEMACS_INCLUDES) \
543         $(LIB_SRC)/make-dump-id.exe \
544         $(LIB_SRC_TOOLS)
545 !endif
546
547 # Shorthand target
548 minitar: $(LIB_SRC)/minitar.exe
549
550 #------------------------------------------------------------------------------
551
552 # runxemacs proglet
553
554 RUNEMACS = $(SRC)\runxemacs.exe
555
556 $(RUNEMACS): $(LIB_SRC)\run.c $(LIB_SRC)\run.res
557         $(CCV) -I$(LIB_SRC) $(CFLAGS) -Fe$@ -Fo$(LIB_SRC) -Fd$(LIB_SRC)\ $** kernel32.lib user32.lib -link -incremental:no
558
559 $(LIB_SRC)\run.res: $(LIB_SRC)\run.rc
560         rc -I$(LIB_SRC) -Fo$@ $**
561
562 #------------------------------------------------------------------------------
563
564 # dump-id.c file that contains the dump id
565
566 $(SRC)\dump-id.c : $(LIB_SRC)/make-dump-id.exe 
567         cd $(SRC)
568         $(LIB_SRC)\make-dump-id.exe 
569         cd $(NT)
570
571 #------------------------------------------------------------------------------
572
573 # LASTFILE Library
574
575 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
576
577 LASTFILE=$(OUTDIR)\lastfile.lib
578 LASTFILE_SRC=$(SRC)
579 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
580 LASTFILE_OBJS= \
581         $(OUTDIR)\lastfile.obj
582
583 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
584         link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
585
586 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
587          $(CCV) $(LASTFILE_FLAGS) $**
588
589 !endif
590
591 #------------------------------------------------------------------------------
592
593 !if $(HAVE_X_WINDOWS)
594
595 # LWLIB Library
596
597 LWLIB=$(OUTDIR)\lwlib.lib
598 LWLIB_FLAGS=$(CFLAGS) $(INCLUDES) $(DEFINES) \
599  -DNEED_ATHENA -DNEED_LUCID \
600  -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
601  -Fo$@ -c
602 LWLIB_OBJS= \
603         $(OUTDIR)\lwlib-config.obj \
604         $(OUTDIR)\lwlib-utils.obj \
605         $(OUTDIR)\lwlib-Xaw.obj \
606         $(OUTDIR)\lwlib-Xlw.obj \
607         $(OUTDIR)\lwlib.obj \
608         $(OUTDIR)\xlwmenu.obj \
609         $(OUTDIR)\xlwscrollbar.obj
610
611 $(LWLIB): $(LWLIB_OBJS)
612         link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
613
614 $(OUTDIR)\lwlib-config.obj:     $(LWLIB_SRCDIR)\lwlib-config.c
615          $(CCV) $(LWLIB_FLAGS) $**
616
617 $(OUTDIR)\lwlib-utils.obj:      $(LWLIB_SRCDIR)\lwlib-utils.c
618          $(CCV) $(LWLIB_FLAGS) $**
619
620 $(OUTDIR)\lwlib-Xaw.obj:        $(LWLIB_SRCDIR)\lwlib-Xaw.c
621          $(CCV) $(LWLIB_FLAGS) $**
622
623 $(OUTDIR)\lwlib-Xlw.obj:        $(LWLIB_SRCDIR)\lwlib-Xlw.c
624          $(CCV) $(LWLIB_FLAGS) $**
625
626 $(OUTDIR)\lwlib.obj:            $(LWLIB_SRCDIR)\lwlib.c
627          $(CCV) $(LWLIB_FLAGS) $**
628
629 $(OUTDIR)\xlwmenu.obj:          $(LWLIB_SRCDIR)\xlwmenu.c
630          $(CCV) $(LWLIB_FLAGS) $**
631
632 $(OUTDIR)\xlwscrollbar.obj:     $(LWLIB_SRCDIR)\xlwscrollbar.c
633          $(CCV) $(LWLIB_FLAGS) $**
634
635 !endif
636 #------------------------------------------------------------------------------
637
638 DOC=$(LIB_SRC)\DOC
639 DOC_SRC1=\
640  $(SRC)\abbrev.c \
641  $(SRC)\alloc.c \
642  $(SRC)\alloca.c \
643  $(SRC)\blocktype.c \
644  $(SRC)\buffer.c \
645  $(SRC)\bytecode.c \
646  $(SRC)\callint.c \
647  $(SRC)\callproc.c \
648  $(SRC)\casefiddle.c \
649  $(SRC)\casetab.c \
650  $(SRC)\chartab.c \
651  $(SRC)\cmdloop.c \
652  $(SRC)\cmds.c \
653  $(SRC)\console-stream.c \
654  $(SRC)\console.c \
655  $(SRC)\data.c \
656  $(SRC)\device.c
657 DOC_SRC2=\
658  $(SRC)\dired.c \
659  $(SRC)\doc.c \
660  $(SRC)\doprnt.c \
661  $(SRC)\dragdrop.c \
662  $(SRC)\dynarr.c \
663  $(SRC)\editfns.c \
664  $(SRC)\elhash.c \
665  $(SRC)\emacs.c \
666  $(SRC)\eval.c \
667  $(SRC)\event-stream.c \
668  $(SRC)\events.c \
669  $(SRC)\extents.c \
670  $(SRC)\faces.c \
671  $(SRC)\file-coding.c \
672  $(SRC)\fileio.c \
673  $(SRC)\filemode.c \
674  $(SRC)\floatfns.c \
675  $(SRC)\fns.c 
676 DOC_SRC3=\
677  $(SRC)\font-lock.c \
678  $(SRC)\frame.c \
679  $(SRC)\general.c \
680  $(SRC)\glyphs.c \
681  $(SRC)\glyphs-eimage.c \
682  $(SRC)\glyphs-widget.c \
683  $(SRC)\gui.c  \
684  $(SRC)\gutter.c \
685  $(SRC)\hash.c \
686  $(SRC)\imgproc.c \
687  $(SRC)\indent.c \
688  $(SRC)\insdel.c \
689  $(SRC)\intl.c \
690  $(SRC)\keymap.c \
691  $(SRC)\line-number.c \
692  $(SRC)\lread.c \
693  $(SRC)\lstream.c \
694  $(SRC)\macros.c \
695  $(SRC)\marker.c
696 DOC_SRC4=\
697  $(SRC)\md5.c \
698  $(SRC)\menubar.c \
699  $(SRC)\minibuf.c \
700  $(SRC)\nt.c \
701  $(SRC)\ntplay.c \
702  $(SRC)\ntproc.c \
703  $(SRC)\objects.c \
704  $(SRC)\opaque.c \
705  $(SRC)\print.c \
706  $(SRC)\process.c \
707  $(SRC)\process-nt.c \
708  $(SRC)\profile.c \
709  $(SRC)\rangetab.c \
710  $(SRC)\realpath.c \
711  $(SRC)\redisplay-output.c \
712  $(SRC)\redisplay.c \
713  $(SRC)\regex.c \
714  $(SRC)\scrollbar.c \
715  $(SRC)\search.c \
716  $(SRC)\select.c \
717  $(SRC)\signal.c \
718  $(SRC)\sound.c 
719 DOC_SRC5=\
720  $(SRC)\specifier.c \
721  $(SRC)\strftime.c \
722  $(SRC)\symbols.c \
723  $(SRC)\syntax.c \
724  $(SRC)\sysdep.c \
725  $(SRC)\termcap.c  \
726  $(SRC)\tparam.c \
727  $(SRC)\undo.c \
728  $(SRC)\window.c \
729  $(SRC)\widget.c
730
731 !if $(HAVE_X_WINDOWS)
732 DOC_SRC6=\
733  $(SRC)\balloon_help.c \
734  $(SRC)\console-x.c \
735  $(SRC)\device-x.c  \
736  $(SRC)\dialog-x.c \
737  $(SRC)\EmacsFrame.c \
738  $(SRC)\EmacsManager.c \
739  $(SRC)\EmacsShell-sub.c\
740  $(SRC)\EmacsShell.c \
741  $(SRC)\event-Xt.c  \
742  $(SRC)\frame-x.c \
743  $(SRC)\glyphs-x.c \
744  $(SRC)\gui-x.c \
745  $(SRC)\menubar.c \
746  $(SRC)\menubar-x.c \
747  $(SRC)\objects-x.c \
748  $(SRC)\redisplay-x.c \
749  $(SRC)\scrollbar-x.c \
750  $(SRC)\balloon-x.c \
751  $(SRC)\xgccache.c \
752  $(SRC)\xmu.c \
753  $(SRC)\select-x.c 
754 !endif
755
756 !if $(HAVE_MS_WINDOWS)
757 DOC_SRC7=\
758  $(SRC)\console-msw.c \
759  $(SRC)\device-msw.c  \
760  $(SRC)\event-msw.c  \
761  $(SRC)\frame-msw.c \
762  $(SRC)\glyphs-msw.c \
763  $(SRC)\gui-msw.c \
764  $(SRC)\menubar-msw.c \
765  $(SRC)\objects-msw.c \
766  $(SRC)\redisplay-msw.c \
767  $(SRC)\scrollbar-msw.c \
768  $(SRC)\select-msw.c \
769  $(MSW_C_DIRED_SRC) \
770  $(MSW_TOOLBAR_SRC) \
771  $(MSW_DIALOG_SRC) \
772  $(MSW_GIF_SRC)
773 !endif
774
775 !if $(HAVE_MULE)
776 DOC_SRC8=\
777  $(SRC)\mule.c \
778  $(SRC)\mule-charset.c \
779  $(SRC)\mule-ccl.c
780 ! if $(HAVE_X_WINDOWS)
781  DOC_SRC8=$(DOC_SRC8) $(SRC)\input-method-xlib.c
782 ! endif
783 !endif
784
785 !if $(DEBUG_XEMACS)
786 DOC_SRC9=\
787  $(SRC)\debug.c \
788  $(SRC)\tests.c
789 !endif
790
791 !if !$(USE_SYSTEM_MALLOC)
792 DOC_SRC10=\
793  $(SRC)\free-hook.c \
794  $(SRC)\gmalloc.c \
795  $(SRC)\ntheap.c \
796  $(SRC)\vm-limit.c
797 !endif
798
799 !if !$(USE_PORTABLE_DUMPER)
800 DOC_SRC11=\
801  $(SRC)\unexnt.c
802 !else
803 DOC_SRC11=\
804  $(SRC)\dumper.c
805 !endif
806
807 #------------------------------------------------------------------------------
808
809 # TEMACS Executable
810
811 # This may not exist
812 !if "$(emacs_beta_version)" != ""
813 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
814 !ENDIF
815
816 !if !$(USE_PORTABLE_DUMPER)
817 TEMACS_ENTRYPOINT=-entry:_start
818 !else
819 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
820 !endif
821
822 TEMACS_DIR=$(SRC)
823 TEMACS=$(TEMACS_DIR)\temacs.exe
824 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
825 TEMACS_SRC=$(SRC)
826 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
827  oldnames.lib kernel32.lib user32.lib gdi32.lib advapi32.lib \
828  shell32.lib wsock32.lib winmm.lib winspool.lib ole32.lib uuid.lib $(LIBC_LIB)
829 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
830  -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
831  -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
832  -heap:0x00100000 -nodefaultlib -incremental:no
833 TEMACS_CPP_FLAGS=-c \
834  $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
835  -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
836  -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
837  $(EMACS_BETA_VERSION) \
838  -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
839  -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
840  -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
841
842 !if $(HAVE_X_WINDOWS)
843 TEMACS_X_OBJS=\
844         $(OUTDIR)\balloon-x.obj \
845         $(OUTDIR)\balloon_help.obj \
846         $(OUTDIR)\console-x.obj \
847         $(OUTDIR)\device-x.obj \
848         $(OUTDIR)\dialog-x.obj \
849         $(OUTDIR)\EmacsFrame.obj \
850         $(OUTDIR)\EmacsManager.obj \
851         $(OUTDIR)\EmacsShell.obj \
852         $(OUTDIR)\TopLevelEmacsShell.obj\
853         $(OUTDIR)\TransientEmacsShell.obj\
854         $(OUTDIR)\event-Xt.obj \
855         $(OUTDIR)\frame-x.obj \
856         $(OUTDIR)\glyphs-x.obj \
857         $(OUTDIR)\gui-x.obj \
858         $(OUTDIR)\menubar-x.obj \
859         $(OUTDIR)\objects-x.obj \
860         $(OUTDIR)\redisplay-x.obj \
861         $(OUTDIR)\scrollbar-x.obj \
862         $(OUTDIR)\xgccache.obj \
863         $(OUTDIR)\xmu.obj \
864         $(OUTDIR)\select-x.obj
865 !endif
866
867 !if $(HAVE_MS_WINDOWS)
868 TEMACS_MSW_OBJS=\
869         $(OUTDIR)\console-msw.obj \
870         $(OUTDIR)\device-msw.obj \
871         $(OUTDIR)\event-msw.obj \
872         $(OUTDIR)\frame-msw.obj \
873         $(OUTDIR)\glyphs-msw.obj \
874         $(OUTDIR)\gui-msw.obj \
875         $(OUTDIR)\menubar-msw.obj \
876         $(OUTDIR)\objects-msw.obj \
877         $(OUTDIR)\redisplay-msw.obj \
878         $(OUTDIR)\scrollbar-msw.obj \
879         $(OUTDIR)\select-msw.obj \
880         $(MSW_C_DIRED_OBJ) \
881         $(MSW_TOOLBAR_OBJ) \
882         $(MSW_DIALOG_OBJ) \
883         $(MSW_GIF_OBJ)
884 !endif
885
886 !if $(HAVE_MULE)
887 TEMACS_MULE_OBJS=\
888         $(OUTDIR)\mule.obj \
889         $(OUTDIR)\mule-charset.obj \
890         $(OUTDIR)\mule-ccl.obj
891 ! if $(HAVE_X_WINDOWS)
892 TEMACS_MULE_OBJS=\
893         $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
894 ! endif
895 !endif
896
897 !if $(DEBUG_XEMACS)
898 TEMACS_DEBUG_OBJS=\
899         $(OUTDIR)\debug.obj \
900         $(OUTDIR)\tests.obj
901 !endif
902
903 !if !$(USE_SYSTEM_MALLOC)
904 TEMACS_ALLOC_OBJS=\
905         $(OUTDIR)\free-hook.obj \
906         $(OUTDIR)\gmalloc.obj \
907         $(OUTDIR)\ntheap.obj \
908         $(OUTDIR)\vm-limit.obj
909 !endif
910
911 !if !$(USE_PORTABLE_DUMPER)
912 TEMACS_DUMP_OBJS=\
913         $(OUTDIR)\unexnt.obj
914 !else
915 TEMACS_DUMP_OBJS=\
916         $(OUTDIR)\dumper.obj
917 !endif
918
919 TEMACS_OBJS= \
920         $(TEMACS_X_OBJS)\
921         $(TEMACS_MSW_OBJS)\
922         $(TEMACS_CODING_OBJS)\
923         $(TEMACS_MULE_OBJS)\
924         $(TEMACS_DEBUG_OBJS)\
925         $(TEMACS_ALLOC_OBJS)\
926         $(TEMACS_DUMP_OBJS)\
927         $(OUTDIR)\abbrev.obj \
928         $(OUTDIR)\alloc.obj \
929         $(OUTDIR)\alloca.obj \
930         $(OUTDIR)\blocktype.obj \
931         $(OUTDIR)\buffer.obj \
932         $(OUTDIR)\bytecode.obj \
933         $(OUTDIR)\callint.obj \
934         $(OUTDIR)\callproc.obj \
935         $(OUTDIR)\casefiddle.obj \
936         $(OUTDIR)\casetab.obj \
937         $(OUTDIR)\chartab.obj \
938         $(OUTDIR)\cmdloop.obj \
939         $(OUTDIR)\cmds.obj \
940         $(OUTDIR)\console-stream.obj \
941         $(OUTDIR)\console.obj \
942         $(OUTDIR)\data.obj \
943         $(OUTDIR)\device.obj \
944         $(OUTDIR)\dired.obj \
945         $(OUTDIR)\doc.obj \
946         $(OUTDIR)\doprnt.obj \
947         $(OUTDIR)\dragdrop.obj \
948         $(OUTDIR)\dynarr.obj \
949         $(OUTDIR)\editfns.obj \
950         $(OUTDIR)\elhash.obj \
951         $(OUTDIR)\emacs.obj \
952         $(OUTDIR)\eval.obj \
953         $(OUTDIR)\event-stream.obj \
954         $(OUTDIR)\events.obj \
955         $(OUTDIR)\extents.obj \
956         $(OUTDIR)\faces.obj \
957         $(OUTDIR)\file-coding.obj \
958         $(OUTDIR)\fileio.obj \
959         $(OUTDIR)\filemode.obj \
960         $(OUTDIR)\floatfns.obj \
961         $(OUTDIR)\fns.obj \
962         $(OUTDIR)\font-lock.obj \
963         $(OUTDIR)\frame.obj \
964         $(OUTDIR)\general.obj \
965         $(OUTDIR)\glyphs.obj \
966         $(OUTDIR)\glyphs-eimage.obj \
967         $(OUTDIR)\glyphs-widget.obj \
968         $(OUTDIR)\gui.obj \
969         $(OUTDIR)\gutter.obj \
970         $(OUTDIR)\hash.obj \
971         $(OUTDIR)\indent.obj \
972         $(OUTDIR)\imgproc.obj \
973         $(OUTDIR)\insdel.obj \
974         $(OUTDIR)\intl.obj \
975         $(OUTDIR)\keymap.obj \
976         $(OUTDIR)\line-number.obj \
977         $(OUTDIR)\lread.obj \
978         $(OUTDIR)\lstream.obj \
979         $(OUTDIR)\macros.obj \
980         $(OUTDIR)\menubar.obj \
981         $(OUTDIR)\marker.obj \
982         $(OUTDIR)\md5.obj \
983         $(OUTDIR)\minibuf.obj \
984         $(OUTDIR)\nt.obj \
985         $(OUTDIR)\ntplay.obj \
986         $(OUTDIR)\ntproc.obj \
987         $(OUTDIR)\objects.obj \
988         $(OUTDIR)\opaque.obj \
989         $(OUTDIR)\print.obj \
990         $(OUTDIR)\process.obj \
991         $(OUTDIR)\process-nt.obj \
992         $(OUTDIR)\profile.obj \
993         $(OUTDIR)\rangetab.obj \
994         $(OUTDIR)\realpath.obj \
995         $(OUTDIR)\redisplay-output.obj \
996         $(OUTDIR)\redisplay.obj \
997         $(OUTDIR)\regex.obj \
998         $(OUTDIR)\scrollbar.obj \
999         $(OUTDIR)\search.obj \
1000         $(OUTDIR)\select.obj \
1001         $(OUTDIR)\signal.obj \
1002         $(OUTDIR)\sound.obj \
1003         $(OUTDIR)\specifier.obj \
1004         $(OUTDIR)\strftime.obj \
1005         $(OUTDIR)\symbols.obj \
1006         $(OUTDIR)\syntax.obj \
1007         $(OUTDIR)\sysdep.obj \
1008         $(OUTDIR)\tparam.obj \
1009         $(OUTDIR)\undo.obj \
1010         $(OUTDIR)\widget.obj \
1011         $(OUTDIR)\window.obj
1012
1013 # Rules
1014
1015 .SUFFIXES:
1016 .SUFFIXES:      .c .obj .texi .info
1017
1018 # nmake rule
1019 !if $(DEBUG_XEMACS)
1020 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1021         $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
1022 !else
1023 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1024         $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@
1025 !endif
1026
1027 $(OUTDIR)\emacs.obj:    $(XEMACS)\version.sh
1028
1029 $(OUTDIR)\TopLevelEmacsShell.obj:       $(TEMACS_SRC)\EmacsShell-sub.c
1030         $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
1031
1032 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
1033         $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
1034
1035 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c
1036
1037 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
1038 #       !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
1039
1040 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
1041 #       !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
1042
1043 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) $(OUTDIR)\xemacs.res
1044 !if $(DEBUG_XEMACS)
1045         @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
1046         bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
1047         @$(DEL) bscmake.tmp
1048 !endif
1049 !if $(USE_PORTABLE_DUMPER)
1050         @if exist $(SRC)\dump-id.c del $(SRC)\dump-id.c
1051 # make a new dump id file.  There is probably a better way to do this, but this works
1052         @if exist $(OUTDIR)\dump-id.obj del $(OUTDIR)\dump-id.obj
1053         nmake -nologo -f xemacs.mak OUTDIR=$(OUTDIR) $(OUTDIR)\dump-id.obj
1054         link.exe @<<
1055   $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1056 <<
1057 !else
1058         link.exe @<<
1059   $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS)
1060 <<
1061 !endif
1062
1063 $(OUTDIR)\xemacs.res: xemacs.rc
1064         rc -Fo$@ xemacs.rc
1065
1066
1067 PROGNAME=$(SRC)\xemacs.exe
1068 TEMACS_BATCH="$(LIB_SRC)\i" "$(TEMACS)" -batch
1069 XEMACS_BATCH="$(LIB_SRC)\i" "$(PROGNAME)" -vanilla -batch
1070
1071 # Section handling automated tests starts here
1072
1073 blddir=$(MAKEDIR:\=\\)\\..
1074 temacs_loadup=$(TEMACS_BATCH) -l $(LISP)/loadup.el
1075 dump_temacs   = $(temacs_loadup) dump
1076 run_temacs    = $(temacs_loadup) run-temacs
1077 ## We have automated tests!!
1078 testdir=../tests/automated
1079 batch_test_emacs=-batch -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
1080
1081 # .PHONY: check check-temacs
1082
1083 check:
1084         cd $(SRC)
1085         $(PROGNAME) $(batch_test_emacs)
1086
1087 check-temacs:
1088         cd $(SRC)
1089         set EMACSBOOTSTRAPLOADPATH=$(LISP)
1090         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1091         $(run_temacs) $(batch_test_emacs)
1092
1093 # Section handling automated tests ends here
1094
1095 # Section handling tags starts here
1096
1097 tagslisp=lisp
1098
1099 tags:
1100         @echo If you don't have a copy of etags around, then do 'make lib-src' first.
1101         @echo To make use of the tags file, put the following in your .emacs:
1102         @echo   (setq tag-table-alist
1103         @echo     '(("$(XEMACSDIRSTRING)\\" . "$(XEMACSDIRSTRING)\\")))
1104         cd $(XEMACS)
1105         $(DEL) TAGS
1106         set PATH=lib-src;%PATH%
1107 # argh!!! we need two ^^'s to get one ^, but only before a backslash.
1108 # i have no idea why.  probably some obscure nmake quoting convention.
1109         etags -a -r "/[         ]*DEF\(VAR\|INE\)_[A-Z_]+[      ]*([    ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
1110         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
1111
1112 # Section handling tags ends here
1113
1114 # Section handling info starts here
1115
1116 !if !defined(MAKEINFO)
1117 MAKEINFO=$(XEMACS_BATCH) -l texinfmt -f batch-texinfo-format
1118 !endif
1119
1120 MANDIR = $(XEMACS)\man
1121 INFODIR = $(XEMACS)\info
1122 INFO_FILES= \
1123         $(INFODIR)\cl.info \
1124         $(INFODIR)\custom.info \
1125         $(INFODIR)\emodules.info \
1126         $(INFODIR)\external-widget.info \
1127         $(INFODIR)\info.info \
1128         $(INFODIR)\standards.info \
1129         $(INFODIR)\term.info \
1130         $(INFODIR)\termcap.info \
1131         $(INFODIR)\texinfo.info \
1132         $(INFODIR)\widget.info \
1133         $(INFODIR)\xemacs-faq.info \
1134         $(INFODIR)\xemacs.info \
1135         $(INFODIR)\lispref.info \
1136         $(INFODIR)\new-users-guide.info \
1137         $(INFODIR)\internals.info
1138
1139 {$(MANDIR)}.texi{$(INFODIR)}.info:
1140         cd $(MANDIR)
1141         $(MAKEINFO) $**
1142
1143 XEMACS_SRCS = \
1144         $(MANDIR)\xemacs\abbrevs.texi \
1145         $(MANDIR)\xemacs\basic.texi \
1146         $(MANDIR)\xemacs\buffers.texi \
1147         $(MANDIR)\xemacs\building.texi \
1148         $(MANDIR)\xemacs\calendar.texi \
1149         $(MANDIR)\xemacs\cmdargs.texi \
1150         $(MANDIR)\xemacs\custom.texi \
1151         $(MANDIR)\xemacs\display.texi \
1152         $(MANDIR)\xemacs\entering.texi \
1153         $(MANDIR)\xemacs\files.texi \
1154         $(MANDIR)\xemacs\fixit.texi \
1155         $(MANDIR)\xemacs\frame.texi \
1156         $(MANDIR)\xemacs\glossary.texi \
1157         $(MANDIR)\xemacs\gnu.texi \
1158         $(MANDIR)\xemacs\help.texi \
1159         $(MANDIR)\xemacs\indent.texi \
1160         $(MANDIR)\xemacs\keystrokes.texi \
1161         $(MANDIR)\xemacs\killing.texi \
1162         $(MANDIR)\xemacs\m-x.texi \
1163         $(MANDIR)\xemacs\major.texi \
1164         $(MANDIR)\xemacs\mark.texi \
1165         $(MANDIR)\xemacs\menus.texi \
1166         $(MANDIR)\xemacs\mini.texi \
1167         $(MANDIR)\xemacs\misc.texi \
1168         $(MANDIR)\xemacs\mouse.texi \
1169         $(MANDIR)\xemacs\mule.texi \
1170         $(MANDIR)\xemacs\new.texi \
1171         $(MANDIR)\xemacs\packages.texi \
1172         $(MANDIR)\xemacs\picture.texi \
1173         $(MANDIR)\xemacs\programs.texi \
1174         $(MANDIR)\xemacs\reading.texi \
1175         $(MANDIR)\xemacs\regs.texi \
1176         $(MANDIR)\xemacs\search.texi \
1177         $(MANDIR)\xemacs\sending.texi \
1178         $(MANDIR)\xemacs\startup.texi \
1179         $(MANDIR)\xemacs\text.texi \
1180         $(MANDIR)\xemacs\trouble.texi \
1181         $(MANDIR)\xemacs\undo.texi \
1182         $(MANDIR)\xemacs\windows.texi \
1183         $(MANDIR)\xemacs\xemacs.texi
1184
1185 LISPREF_SRCS = \
1186         $(MANDIR)\lispref\abbrevs.texi \
1187         $(MANDIR)\lispref\annotations.texi \
1188         $(MANDIR)\lispref\back.texi \
1189         $(MANDIR)\lispref\backups.texi \
1190         $(MANDIR)\lispref\buffers.texi \
1191         $(MANDIR)\lispref\building.texi \
1192         $(MANDIR)\lispref\commands.texi \
1193         $(MANDIR)\lispref\compile.texi \
1194         $(MANDIR)\lispref\consoles-devices.texi \
1195         $(MANDIR)\lispref\control.texi \
1196         $(MANDIR)\lispref\customize.texi \
1197         $(MANDIR)\lispref\databases.texi \
1198         $(MANDIR)\lispref\debugging.texi \
1199         $(MANDIR)\lispref\dialog.texi \
1200         $(MANDIR)\lispref\display.texi \
1201         $(MANDIR)\lispref\dragndrop.texi \
1202         $(MANDIR)\lispref\edebug-inc.texi \
1203         $(MANDIR)\lispref\edebug.texi \
1204         $(MANDIR)\lispref\errors.texi \
1205         $(MANDIR)\lispref\eval.texi \
1206         $(MANDIR)\lispref\extents.texi \
1207         $(MANDIR)\lispref\faces.texi \
1208         $(MANDIR)\lispref\files.texi \
1209         $(MANDIR)\lispref\frames.texi \
1210         $(MANDIR)\lispref\functions.texi \
1211         $(MANDIR)\lispref\glyphs.texi \
1212         $(MANDIR)\lispref\hash-tables.texi \
1213         $(MANDIR)\lispref\help.texi \
1214         $(MANDIR)\lispref\hooks.texi \
1215         $(MANDIR)\lispref\index.texi \
1216         $(MANDIR)\lispref\internationalization.texi \
1217         $(MANDIR)\lispref\intro.texi \
1218         $(MANDIR)\lispref\keymaps.texi \
1219         $(MANDIR)\lispref\ldap.texi \
1220         $(MANDIR)\lispref\lispref.texi \
1221         $(MANDIR)\lispref\lists.texi \
1222         $(MANDIR)\lispref\loading.texi \
1223         $(MANDIR)\lispref\locals.texi \
1224         $(MANDIR)\lispref\macros.texi \
1225         $(MANDIR)\lispref\maps.texi \
1226         $(MANDIR)\lispref\markers.texi \
1227         $(MANDIR)\lispref\menus.texi \
1228         $(MANDIR)\lispref\minibuf.texi \
1229         $(MANDIR)\lispref\modes.texi \
1230         $(MANDIR)\lispref\mouse.texi \
1231         $(MANDIR)\lispref\mule.texi \
1232         $(MANDIR)\lispref\numbers.texi \
1233         $(MANDIR)\lispref\objects.texi \
1234         $(MANDIR)\lispref\os.texi \
1235         $(MANDIR)\lispref\positions.texi \
1236         $(MANDIR)\lispref\processes.texi \
1237         $(MANDIR)\lispref\range-tables.texi \
1238         $(MANDIR)\lispref\scrollbars.texi \
1239         $(MANDIR)\lispref\searching.texi \
1240         $(MANDIR)\lispref\sequences.texi \
1241         $(MANDIR)\lispref\specifiers.texi \
1242         $(MANDIR)\lispref\streams.texi \
1243         $(MANDIR)\lispref\strings.texi \
1244         $(MANDIR)\lispref\symbols.texi \
1245         $(MANDIR)\lispref\syntax.texi \
1246         $(MANDIR)\lispref\text.texi \
1247         $(MANDIR)\lispref\tips.texi \
1248         $(MANDIR)\lispref\toolbar.texi \
1249         $(MANDIR)\lispref\tooltalk.texi \
1250         $(MANDIR)\lispref\variables.texi \
1251         $(MANDIR)\lispref\windows.texi \
1252         $(MANDIR)\lispref\x-windows.texi
1253
1254 INTERNALS_SRCS = \
1255         $(MANDIR)\internals\internals.texi \
1256         $(MANDIR)\internals\index.texi
1257
1258 NEW_USERS_GUIDE_SRCS = \
1259         $(MANDIR)\new-users-guide\custom1.texi \
1260         $(MANDIR)\new-users-guide\custom2.texi \
1261         $(MANDIR)\new-users-guide\edit.texi \
1262         $(MANDIR)\new-users-guide\enter.texi \
1263         $(MANDIR)\new-users-guide\files.texi \
1264         $(MANDIR)\new-users-guide\help.texi \
1265         $(MANDIR)\new-users-guide\modes.texi \
1266         $(MANDIR)\new-users-guide\new-users-guide.texi \
1267         $(MANDIR)\new-users-guide\region.texi \
1268         $(MANDIR)\new-users-guide\search.texi \
1269         $(MANDIR)\new-users-guide\xmenu.texi
1270
1271 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
1272         cd $(MANDIR)\xemacs
1273         $(MAKEINFO) xemacs.texi
1274         cd ..
1275
1276
1277 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
1278         cd $(MANDIR)\lispref
1279         $(MAKEINFO) lispref.texi
1280         cd ..
1281
1282 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
1283         cd $(MANDIR)\internals
1284         $(MAKEINFO) internals.texi
1285         cd ..
1286
1287 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
1288         cd $(MANDIR)\new-users-guide
1289         $(MAKEINFO) new-users-guide.texi
1290         cd ..
1291
1292 info:   makeinfo-test $(INFO_FILES)
1293
1294 makeinfo-test:
1295         @<<makeinfo_test.bat
1296 @echo off
1297 if exist "$(MAKEINFO)" goto test_done
1298 @$(XEMACS_BATCH) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
1299 @if not errorlevel 1 goto suggest_makeinfo
1300 @echo XEmacs `info' cannot be built!
1301 @echo Install XEmacs package `texinfo' (see README.packages).
1302 :suggest_makeinfo
1303 @echo Consider specifying path to makeinfo program: MAKEINFO=path
1304 @echo as this will build info docs faster than XEmacs using `texinfo'.
1305 @if errorlevel 1 exit 1
1306 :test_done
1307 <<NOKEEP
1308
1309 # Section handling info ends here
1310
1311 #------------------------------------------------------------------------------
1312
1313 # LISP bits 'n bobs
1314
1315 LOADPATH=$(LISP)
1316
1317 # Rebuild docfile target
1318 docfile ::
1319         if exist $(DOC) del $(DOC)
1320 docfile :: $(DOC)
1321
1322 $(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)
1323         if exist $(DOC) del $(DOC)
1324         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1325         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1326         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
1327         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
1328         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
1329         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
1330         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
1331         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
1332         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
1333         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
1334         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
1335         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
1336         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC10)
1337         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC11)
1338
1339 update-elc:
1340         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1341         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1342         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\update-elc.el
1343
1344 # This file is touched by update-elc.el when redumping is necessary.
1345 $(TEMACS_DIR)\NEEDTODUMP :
1346         @echo >$(TEMACS_DIR)\NEEDTODUMP
1347
1348 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
1349 # requirements have changed.
1350
1351 $(PROGNAME) : $(TEMACS) $(TEMACS_DIR)\NEEDTODUMP
1352         @echo >$(TEMACS_DIR)\SATISFIED
1353         cd $(TEMACS_DIR)
1354         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1355         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1356         -1 $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\loadup.el dump
1357 !if $(USE_PORTABLE_DUMPER)
1358         rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
1359         link.exe @<<
1360   $(TEMACS_LFLAGS) -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1361 <<
1362 # Make the resource section read/write since almost all of it is the dump
1363 # data which needs to be writable.  This avoids having to copy it.
1364         editbin -nologo -section:.rsrc,rw xemacs.exe
1365         del $(TEMACS_DIR)\xemacs.dmp
1366 !endif
1367         cd $(NT)
1368         @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
1369 #------------------------------------------------------------------------------
1370
1371 # use this rule to build the complete system
1372 all:    installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
1373         $(LIB_SRC_TOOLS) $(RUNEMACS) $(TEMACS) update-elc $(DOC) $(PROGNAME) \
1374         update-auto-and-custom info
1375
1376 temacs: $(LASTFILE) $(TEMACS)
1377
1378 # use this rule to install the system
1379 install:        all
1380         cd $(NT)
1381         @echo Installing in $(INSTALL_DIR) ...
1382         @echo PlaceHolder > PlaceHolder
1383         @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
1384         @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
1385         @$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
1386         @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
1387         @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1388         @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1389         @copy $(SRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1390         @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1391         @xcopy /e /q $(XEMACS)\etc  "$(INSTALL_DIR)\etc\"
1392         @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
1393         @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
1394         @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
1395         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
1396         @$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
1397         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
1398         @$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
1399         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
1400         @$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
1401         @$(DEL) PlaceHolder
1402
1403 distclean:
1404         $(DEL) *.bak
1405         $(DEL) *.orig
1406         $(DEL) *.rej
1407         $(DEL) *.tmp
1408         $(DEL) $(XEMACS)\Installation
1409         cd $(OUTDIR)
1410         $(DEL) *.lib
1411         $(DEL) *.obj
1412         $(DEL) *.pdb
1413         $(DEL) *.res
1414         $(DEL) *.sbr
1415         cd $(XEMACS)\$(TEMACS_DIR)
1416         $(DEL) config.h
1417         $(DEL) paths.h
1418         $(DEL) Emacs.ad.h
1419         $(DEL) *.bak
1420         $(DEL) *.orig
1421         $(DEL) *.rej
1422         $(DEL) *.exe
1423         $(DEL) *.map
1424         $(DEL) *.bsc
1425         $(DEL) *.pdb
1426         cd $(LIB_SRC)
1427         $(DEL) DOC
1428         $(DEL) *.bak
1429         $(DEL) *.orig
1430         $(DEL) *.rej
1431         $(DEL) *.exe
1432         $(DEL) *.obj
1433         $(DEL) *.pdb
1434         $(DEL) *.res
1435         $(DEL) $(CONFIG_VALUES)
1436         cd $(LISP)
1437         $(DEL) /s /q *.bak *.elc *.orig *.rej
1438         cd $(INFODIR)
1439         $(DEL) *.info*
1440
1441 depend:
1442         cd $(SRC)
1443         perl ./make-src-depend > depend.tmp
1444         perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
1445
1446 $(XEMACS)\Installation::        installation
1447
1448 installation::
1449         @type > $(XEMACS)\Installation <<
1450 !if defined(OS)
1451 OS: $(OS)
1452 !endif
1453
1454 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for `$(EMACS_CONFIGURATION)'.
1455
1456   Building XEmacs in \"$(MAKEDIR:\=\\)\".
1457 !if defined(CCV)
1458   Using compiler \"$(CC) $(CFLAGS)\".
1459 !endif
1460   Installing XEmacs in \"$(INSTALL_DIR:\=\\)\".
1461   Package path is $(PATH_PACKAGEPATH:"=\").
1462 !if $(INFODOCK)
1463   Building InfoDock.
1464 !endif
1465 !if $(HAVE_MS_WINDOWS)
1466   Compiling in support for Microsoft Windows native GUI.
1467 !endif
1468 !if $(HAVE_X_WINDOWS)
1469   Compiling in support for X-Windows.
1470 !endif
1471 !if $(HAVE_MULE)
1472   Compiling in MULE.
1473 !endif
1474 !if $(HAVE_XPM)
1475   Compiling in support for XPM images.
1476 !else
1477   --------------------------------------------------------------------
1478   WARNING: Compiling without XPM support.
1479   WARNING: You should strongly consider installing XPM.
1480   WARNING: Otherwise toolbars and other graphics will look suboptimal.
1481   WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
1482   --------------------------------------------------------------------
1483 !endif
1484 !if $(HAVE_GIF)
1485   Compiling in support for GIF images.
1486 !endif
1487 !if $(HAVE_PNG)
1488   Compiling in support for PNG images.
1489 !else
1490   --------------------------------------------------------------------
1491   WARNING: Compiling without PNG image support.
1492   WARNING: You should strongly consider installing the PNG libraries.
1493   WARNING: Otherwise certain images and glyphs may not display.
1494   WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
1495   --------------------------------------------------------------------
1496 !endif
1497 !if $(HAVE_TIFF)
1498   Compiling in support for TIFF images.
1499 !endif
1500 !if $(HAVE_JPEG)
1501   Compiling in support for JPEG images.
1502 !endif
1503 !if $(HAVE_XFACE)
1504   Compiling in support for X-Face message headers.
1505 !endif
1506 !if $(HAVE_TOOLBARS)
1507   Compiling in support for toolbars.
1508 !endif
1509 !if $(HAVE_DIALOGS)
1510   Compiling in support for dialogs.
1511 !endif
1512 !if $(HAVE_WIDGETS)
1513   Compiling in support for widgets.
1514 !endif
1515 !if $(HAVE_NATIVE_SOUND)
1516   Compiling in support for native sounds.
1517 !endif
1518 !if $(HAVE_MSW_C_DIRED)
1519   Compiling in fast dired implementation.
1520 !else
1521   --------------------------------------------------------------------
1522   WARNING: Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs
1523   WARNING: to use C primitives to significantly speed up dired, at the
1524   WARNING: expense of an additional ~4KB of code.
1525   --------------------------------------------------------------------
1526 !endif
1527 !if $(USE_MINIMAL_TAGBITS)
1528   Using minimal tagbits.
1529 !endif
1530 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
1531   Using indexed lrecord implementation.
1532 !endif
1533 !if $(USE_UNION_TYPE)
1534   Using union type for Lisp object storage.
1535 !endif
1536 !if $(USE_PORTABLE_DUMPER)
1537   Using portable dumper.
1538 !endif
1539 !if $(USE_SYSTEM_MALLOC)
1540   Using system malloc.
1541 !endif
1542 !if $(USE_CRTDLL)
1543   Using DLL version of C runtime library
1544 !endif
1545 !if $(DEBUG_XEMACS)
1546   Compiling in extra debug checks. XEmacs will be slow!
1547 !endif
1548 !if $(QUICK_BUILD)
1549   Disabling non-essential build actions.  Use with care!
1550 !endif
1551 <<NOKEEP
1552         @echo --------------------------------------------------------------------
1553         @type $(XEMACS)\Installation
1554         @echo --------------------------------------------------------------------
1555
1556 # Update auto-autoloads.el and custom-load.el similar to what
1557 # XEmacs.rules does for xemacs-packages.
1558 update-auto-and-custom:
1559 #       Don't delete this, because it forces rebuilding from scratch,
1560 #       which is time-consuming; and the autoload code is specifically
1561 #       written to do in-place updating.
1562 #       @$(DEL) $(LISP)\auto-autoloads.el
1563 #       Combine into one invocation to avoid repeated startup penalty.
1564         $(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-dependencies $(LISP)
1565         @$(DEL) $(LISP)\auto-autoloads.el~
1566
1567 # DO NOT DELETE THIS LINE -- make depend depends on it.
1568