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