import xemacs-21.2.37
[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, 2000 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 # APA: Since there seems to be no way to determine the directory where
30 # xemacs.mak is located (from within nmake) we just insist on the user
31 # to invoke nmake in the directory where xemacs.mak is.
32 !if !exist("$(MAKEDIR)\xemacs.mak")
33 !error Please run nmake from the directory of this makefile (xemacs\nt).
34 !endif
35
36 XEMACS=$(MAKEDIR)\..
37 LISP=$(XEMACS)\lisp
38 LIB_SRC=$(XEMACS)\lib-src
39 MODULES=$(XEMACS)\modules
40 NT=$(XEMACS)\nt
41 OUTDIR=$(NT)\obj
42 SRC=$(XEMACS)\src
43 LWLIB_SRCDIR=$(XEMACS)\lwlib
44 MAKEDIRSTRING=$(MAKEDIR:\=\\)
45 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=)
46
47
48 # Define a variable for the 'del' command to use
49 DEL=-del
50
51 # Program name and version
52
53 !include "$(XEMACS)\version.sh"
54
55 !include "config.inc"
56
57 !if !defined(INFODOCK)
58 INFODOCK=0
59 !endif
60
61 !if $(INFODOCK)
62 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
63 PROGRAM_DEFINES=-DINFODOCK                                      \
64         -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\"           \
65         -DPATH_PROGNAME=\"infodock\"                            \
66         -DEMACS_PROGNAME=\"infodock\"                           \
67         -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\"          \
68         -DINFODOCK_MAJOR_VERSION=$(infodock_major_version)      \
69         -DINFODOCK_MINOR_VERSION=$(infodock_minor_version)      \
70         -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
71 !else
72 !if "$(emacs_beta_version)" != ""
73 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)-b$(emacs_beta_version)
74 !else
75 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
76 !endif
77 PROGRAM_DEFINES=                                                \
78         -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\"             \
79         -DPATH_PROGNAME=\"xemacs\"                              \
80         -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\"            \
81         -DEMACS_PROGNAME=\"xemacs\"
82 !endif
83
84 #
85 # Command line options defaults
86 #
87 !if !defined(INSTALL_DIR)
88 ! if $(INFODOCK)
89 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
90 ! else
91 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
92 ! endif
93 !endif
94 !if !defined(HAVE_MULE)
95 HAVE_MULE=0
96 !endif
97 !if !defined(PACKAGE_PATH)
98 ! if !defined(PACKAGE_PREFIX)
99 PACKAGE_PREFIX=c:\Program Files\XEmacs
100 ! endif
101 ! if $(HAVE_MULE)
102 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
103 ! else
104 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
105 ! endif
106 !endif
107 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
108 !if !defined(HAVE_MS_WINDOWS)
109 HAVE_MS_WINDOWS=1
110 !endif
111 !if !defined(HAVE_X_WINDOWS)
112 HAVE_X_WINDOWS=0
113 !endif
114 !if !defined(HAVE_XPM)
115 HAVE_XPM=0
116 !endif
117 !if !defined(HAVE_PNG)
118 HAVE_PNG=0
119 !endif
120 !if !defined(HAVE_TIFF)
121 HAVE_TIFF=0
122 !endif
123 !if !defined(HAVE_JPEG)
124 HAVE_JPEG=0
125 !endif
126 !if !defined(HAVE_XFACE)
127 HAVE_XFACE=0
128 !endif
129 !if !defined(HAVE_GIF)
130 HAVE_GIF=1
131 !endif
132 !if !defined(HAVE_TOOLBARS)
133 HAVE_TOOLBARS=$(HAVE_XPM)
134 !endif
135 !if !defined(HAVE_DIALOGS)
136 HAVE_DIALOGS=1
137 !endif
138 !if !defined(HAVE_MSW_C_DIRED)
139 HAVE_MSW_C_DIRED=1
140 !endif
141 !if !defined(HAVE_NATIVE_SOUND)
142 HAVE_NATIVE_SOUND=1
143 !endif
144 !if !defined(HAVE_WIDGETS)
145 HAVE_WIDGETS=1
146 !endif
147 !if !defined(DEBUG_XEMACS)
148 DEBUG_XEMACS=0
149 !endif
150 !if !defined(QUICK_BUILD)
151 QUICK_BUILD=0
152 !endif
153 !if !defined(USE_UNION_TYPE)
154 USE_UNION_TYPE=0
155 !endif
156 !if !defined(USE_MINITAR)
157 USE_MINITAR=1
158 !endif
159 !if !defined(USE_MINIMAL_TAGBITS)
160 USE_MINIMAL_TAGBITS=0
161 !endif
162 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
163 USE_INDEXED_LRECORD_IMPLEMENTATION=0
164 !endif
165 !if !defined(USE_PORTABLE_DUMPER)
166 USE_PORTABLE_DUMPER=0
167 !endif
168 !if !defined(GUNG_HO)
169 GUNG_HO=0
170 !endif
171
172 # A little bit of adhockery. Default to use system malloc and
173 # DLL version of the C runtime library when using portable
174 # dumping. These are the optimal settings.
175 !if !defined(USE_SYSTEM_MALLOC)
176 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
177 !endif
178 !if !defined(USE_CRTDLL)
179 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
180 !endif
181
182 #
183 # System configuration
184 #
185 !if !defined(OS)
186 OS=Windows_95/98
187 EMACS_CONFIGURATION=i586-pc-win32
188 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
189 EMACS_CONFIGURATION=i586-pc-win32
190 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
191 EMACS_CONFIGURATION=mips-pc-win32
192 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
193 EMACS_CONFIGURATION=alpha-pc-win32
194 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
195 EMACS_CONFIGURATION=ppc-pc-win32
196 !else
197 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
198 !endif
199
200 #
201 # Conf error checks
202 #
203 CONFIG_ERROR=0
204 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
205 !message Cannot build InfoDock without InfoDock sources
206 CONFIG_ERROR=1
207 !endif
208 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
209 !message Cannot use system allocator when dumping old way, use portable dumper.
210 CONFIG_ERROR=1
211 !endif
212 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
213 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
214 CONFIG_ERROR=1
215 !endif
216 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
217 !message GNU malloc currently cannot be used with CRT DLL.
218 !message [[[Developer note: If you want to fix it, read Q112297 first]]]  ####
219 CONFIG_ERROR=1
220 !endif
221 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_X_WINDOWS)
222 !message Please specify at least one HAVE_MS_WINDOWS=1 and/or HAVE_X_WINDOWS=1
223 CONFIG_ERROR=1
224 !endif
225 !if $(HAVE_X_WINDOWS) && !defined(X11_DIR)
226 !message Please specify root directory for your X11 installation: X11_DIR=path
227 CONFIG_ERROR=1
228 !endif
229 !if $(HAVE_X_WINDOWS) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
230 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
231 CONFIG_ERROR=1
232 !endif
233 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
234 !message Please specify root directory for your XPM installation: XPM_DIR=path
235 CONFIG_ERROR=1
236 !endif
237 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
238 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
239 CONFIG_ERROR=1
240 !endif
241 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
242 !message Please specify root directory for your PNG installation: PNG_DIR=path
243 CONFIG_ERROR=1
244 !endif
245 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
246 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
247 CONFIG_ERROR=1
248 !endif
249 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
250 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
251 CONFIG_ERROR=1
252 !endif
253 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
254 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
255 CONFIG_ERROR=1
256 !endif
257 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
258 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
259 CONFIG_ERROR=1
260 !endif
261 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
262 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
263 CONFIG_ERROR=1
264 !endif
265 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
266 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
267 CONFIG_ERROR=1
268 !endif
269 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
270 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
271 CONFIG_ERROR=1
272 !endif
273 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
274 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
275 CONFIG_ERROR=1
276 !endif
277 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
278 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
279 CONFIG_ERROR=1
280 !endif
281 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
282 !message Toolbars require XPM support
283 CONFIG_ERROR=1
284 !endif
285 !if $(CONFIG_ERROR)
286 !error Configuration error(s) found
287 !endif
288
289 #
290 # Handle GUNG_HO
291 #
292 !if defined(GUNG_HO)
293 USE_MINIMAL_TAGBITS=$(GUNG_HO)
294 USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
295 !endif
296
297 #
298 # Whether to use dependency information generated by make-src-depend
299 #
300 !if !defined(DEPEND)
301 DEPEND=0
302 !endif
303 !if $(DEPEND)
304 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
305 ! endif
306 # generate an nmake-readable version of depend
307 # #### here, it doesn't seem to matter if we double ^'s!
308 # results are the same with all single ^ and all double ^^!
309 # see comment below.
310 ! if [perl -p -e "s/^\x23if defined(.+)/!if defined$$1/; s/^\x23e/!e/;" \
311         -e "s/([\s=^])([\w\d\.\-^]+\.[ch^])/$$1$(SRC:\=\\)\\$$2/g;" \
312         -e "s/^(.+)\.o:(.+)/$(OUTDIR:\=\\)\\$$1.obj:$$2 $(NT:\=\\)\\config.inc/;" \
313         < $(SRC)\depend > $(OUTDIR)\depend.tmp]
314 ! endif
315 ! include "$(OUTDIR)\depend.tmp"
316 !else
317 ! if [echo   WARNING: Compiling without dependency information.]
318 ! endif
319 !endif
320
321 #
322 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
323 #
324 !if !defined(VERBOSECC)
325 VERBOSECC=0
326 !endif
327 !if $(VERBOSECC)
328 CCV=$(CC)
329 !else
330 CCV=@$(CC)
331 !endif
332
333 !if $(DEBUG_XEMACS)
334 OPT=-Od -Zi
335 !else
336 OPT=-O2 -G5
337 !endif
338
339 !if $(USE_CRTDLL)
340 !if $(DEBUG_XEMACS)
341 C_LIBFLAG=-MDd
342 LIBC_LIB=msvcrtd.lib
343 !else
344 C_LIBFLAG=-MD
345 LIBC_LIB=msvcrt.lib
346 !endif
347 !else
348 C_LIBFLAG=-ML
349 LIBC_LIB=libc.lib
350 !endif
351
352 CFLAGS=-nologo -W3 $(OPT) $(C_LIBFLAG)
353
354 !if $(HAVE_X_WINDOWS)
355 X_DEFINES=-DHAVE_X_WINDOWS
356 X_INCLUDES=-I$(X11_DIR)\include
357 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
358 !endif
359
360 !if $(HAVE_MS_WINDOWS)
361 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
362 MSW_INCLUDES=
363 MSW_LIBS=
364 !if $(HAVE_MSW_C_DIRED)
365 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MSW_C_DIRED
366 MSW_C_DIRED_SRC=$(SRC)\dired-msw.c
367 MSW_C_DIRED_OBJ=$(OUTDIR)\dired-msw.obj
368 !endif
369 !if $(HAVE_XPM)
370 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
371 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
372 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
373 !endif
374 !if $(HAVE_GIF)
375 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
376 MSW_GIF_SRC=$(SRC)\dgif_lib.c $(SRC)\gif_io.c
377 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
378 !endif
379 !if $(HAVE_PNG)
380 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
381 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
382 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
383 !endif
384 !if $(HAVE_TIFF)
385 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
386 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
387 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
388 !endif
389 !if $(HAVE_JPEG)
390 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
391 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
392 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
393 !endif
394 !if $(HAVE_XFACE)
395 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
396 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
397 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
398 !endif
399 !if $(HAVE_TOOLBARS)
400 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
401 MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c
402 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
403 MSW_LIBS=$(MSW_LIBS) comctl32.lib
404 !endif
405 !if $(HAVE_DIALOGS)
406 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
407 MSW_DIALOG_SRC=$(SRC)\dialog.c $(SRC)\dialog-msw.c
408 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
409 !endif
410 !if $(HAVE_WIDGETS)
411 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
412 !endif
413 !if $(HAVE_NATIVE_SOUND)
414 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
415 !endif
416 !endif
417
418 !if $(HAVE_MULE)
419 MULE_DEFINES=-DMULE
420 !endif
421
422 !if $(DEBUG_XEMACS)
423 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG 
424 DEBUG_FLAGS=-debug:full
425 !endif
426
427 !if $(QUICK_BUILD)
428 QUICK_DEFINES=-DQUICK_BUILD
429 !endif
430
431 !if $(USE_MINIMAL_TAGBITS)
432 TAGBITS_DEFINES=-DUSE_MINIMAL_TAGBITS
433 !endif
434 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
435 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION
436 !endif
437 !if $(USE_UNION_TYPE)
438 UNION_DEFINES=-DUSE_UNION_TYPE
439 !endif
440
441 !if $(USE_PORTABLE_DUMPER)
442 DUMPER_DEFINES=-DPDUMP
443 !endif
444
445 !if $(USE_SYSTEM_MALLOC)
446 MALLOC_DEFINES=-DSYSTEM_MALLOC
447 !else
448 MALLOC_DEFINES=-DGNU_MALLOC
449 !endif
450
451 # Hard-coded paths
452
453 !if $(INFODOCK)
454 PATH_PREFIX=../..
455 !else
456 PATH_PREFIX=..
457 !endif
458
459 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
460
461 # Generic variables
462
463 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR)
464
465 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
466         $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) \
467         $(DUMPER_DEFINES) $(MALLOC_DEFINES) $(QUICK_DEFINES) \
468         -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
469         -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
470
471 #------------------------------------------------------------------------------
472
473 $(OUTDIR)\nul:
474         -@mkdir $(OUTDIR)
475
476 XEMACS_INCLUDES=\
477  $(SRC)\config.h \
478  $(SRC)\Emacs.ad.h \
479  $(SRC)\paths.h
480
481 $(SRC)\config.h:        config.h
482         copy config.h $(SRC)
483
484 $(SRC)\Emacs.ad.h:      Emacs.ad.h
485         copy Emacs.ad.h $(SRC)
486
487 $(SRC)\paths.h: paths.h
488         copy paths.h $(SRC)
489
490 #------------------------------------------------------------------------------
491
492 # lib-src programs
493
494 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE
495
496 #
497 # Creating config.values to be used by config.el
498 #
499 CONFIG_VALUES = $(LIB_SRC)\config.values
500 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
501 !endif
502 # MAKEDIR has to be made into a string.
503 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
504 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
505 !endif
506 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
507 !endif
508 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
509 !endif
510 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
511 !endif
512 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
513 !endif
514 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
515 !endif
516 # PATH_PACKAGEPATH is already a quoted string.
517 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
518 !endif
519
520 # Inferred rule
521 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
522         cd $(LIB_SRC)
523         $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** -link -incremental:no setargv.obj
524         cd $(NT)
525
526 # Individual dependencies
527 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
528 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
529 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
530         cd $(LIB_SRC)
531         $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib -link -incremental:no
532         cd $(NT)
533 $(LIB_SRC)/minitar.exe : $(NT)/minitar.mak $(NT)/minitar.c
534         nmake -nologo -f minitar.mak ZLIB="$(ZLIB_DIR)" NT="$(NT)" LIB_SRC="$(LIB_SRC)"
535
536 LIB_SRC_TOOLS = \
537         $(LIB_SRC)/etags.exe            \
538         $(LIB_SRC)/hexl.exe             \
539         $(LIB_SRC)/i.exe                \
540         $(LIB_SRC)/make-docfile.exe     \
541         $(LIB_SRC)/mmencode.exe         \
542         $(LIB_SRC)/movemail.exe         \
543         $(LIB_SRC)/sorted-doc.exe       \
544         $(LIB_SRC)/wakeup.exe
545 !if $(USE_MINITAR)
546 LIB_SRC_TOOLS = \
547         $(LIB_SRC_TOOLS) \
548         $(LIB_SRC)/minitar.exe
549 !endif
550 !if $(USE_PORTABLE_DUMPER)
551 LIB_SRC_TOOLS = \
552         $(XEMACS_INCLUDES) \
553         $(LIB_SRC)/make-dump-id.exe \
554         $(LIB_SRC_TOOLS)
555 !endif
556
557 # Shorthand target
558 minitar: $(LIB_SRC)/minitar.exe
559
560 #------------------------------------------------------------------------------
561
562 # dump-id.c file that contains the dump id
563
564 $(SRC)\dump-id.c : $(LIB_SRC)/make-dump-id.exe 
565         cd $(SRC)
566         $(LIB_SRC)\make-dump-id.exe 
567         cd $(NT)
568
569 #------------------------------------------------------------------------------
570
571 # LASTFILE Library
572
573 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
574
575 LASTFILE=$(OUTDIR)\lastfile.lib
576 LASTFILE_SRC=$(SRC)
577 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
578 LASTFILE_OBJS= \
579         $(OUTDIR)\lastfile.obj
580
581 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
582         link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
583
584 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
585          $(CCV) $(LASTFILE_FLAGS) $**
586
587 !endif
588
589 #------------------------------------------------------------------------------
590
591 !if $(HAVE_X_WINDOWS)
592
593 # LWLIB Library
594
595 LWLIB=$(OUTDIR)\lwlib.lib
596 LWLIB_FLAGS=$(CFLAGS) $(INCLUDES) $(DEFINES) \
597  -DNEED_ATHENA -DNEED_LUCID \
598  -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
599  -Fo$@ -c
600 LWLIB_OBJS= \
601         $(OUTDIR)\lwlib-config.obj \
602         $(OUTDIR)\lwlib-utils.obj \
603         $(OUTDIR)\lwlib-Xaw.obj \
604         $(OUTDIR)\lwlib-Xlw.obj \
605         $(OUTDIR)\lwlib.obj \
606         $(OUTDIR)\xlwmenu.obj \
607         $(OUTDIR)\xlwscrollbar.obj
608
609 $(LWLIB): $(LWLIB_OBJS)
610         link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
611
612 $(OUTDIR)\lwlib-config.obj:     $(LWLIB_SRCDIR)\lwlib-config.c
613          $(CCV) $(LWLIB_FLAGS) $**
614
615 $(OUTDIR)\lwlib-utils.obj:      $(LWLIB_SRCDIR)\lwlib-utils.c
616          $(CCV) $(LWLIB_FLAGS) $**
617
618 $(OUTDIR)\lwlib-Xaw.obj:        $(LWLIB_SRCDIR)\lwlib-Xaw.c
619          $(CCV) $(LWLIB_FLAGS) $**
620
621 $(OUTDIR)\lwlib-Xlw.obj:        $(LWLIB_SRCDIR)\lwlib-Xlw.c
622          $(CCV) $(LWLIB_FLAGS) $**
623
624 $(OUTDIR)\lwlib.obj:            $(LWLIB_SRCDIR)\lwlib.c
625          $(CCV) $(LWLIB_FLAGS) $**
626
627 $(OUTDIR)\xlwmenu.obj:          $(LWLIB_SRCDIR)\xlwmenu.c
628          $(CCV) $(LWLIB_FLAGS) $**
629
630 $(OUTDIR)\xlwscrollbar.obj:     $(LWLIB_SRCDIR)\xlwscrollbar.c
631          $(CCV) $(LWLIB_FLAGS) $**
632
633 !endif
634 #------------------------------------------------------------------------------
635
636 DOC=$(LIB_SRC)\DOC
637 DOC_SRC1=\
638  $(SRC)\abbrev.c \
639  $(SRC)\alloc.c \
640  $(SRC)\blocktype.c \
641  $(SRC)\buffer.c \
642  $(SRC)\bytecode.c \
643  $(SRC)\callint.c \
644  $(SRC)\callproc.c \
645  $(SRC)\casefiddle.c \
646  $(SRC)\casetab.c \
647  $(SRC)\chartab.c \
648  $(SRC)\cmdloop.c \
649  $(SRC)\cmds.c \
650  $(SRC)\console-stream.c \
651  $(SRC)\console.c \
652  $(SRC)\data.c \
653  $(SRC)\device.c
654 DOC_SRC2=\
655  $(SRC)\dired.c \
656  $(SRC)\doc.c \
657  $(SRC)\doprnt.c \
658  $(SRC)\dragdrop.c \
659  $(SRC)\dynarr.c \
660  $(SRC)\editfns.c \
661  $(SRC)\elhash.c \
662  $(SRC)\emacs.c \
663  $(SRC)\eval.c \
664  $(SRC)\event-stream.c \
665  $(SRC)\events.c \
666  $(SRC)\extents.c \
667  $(SRC)\faces.c \
668  $(SRC)\file-coding.c \
669  $(SRC)\fileio.c \
670  $(SRC)\filemode.c \
671  $(SRC)\floatfns.c \
672  $(SRC)\fns.c 
673 DOC_SRC3=\
674  $(SRC)\font-lock.c \
675  $(SRC)\frame.c \
676  $(SRC)\general.c \
677  $(SRC)\getloadavg.c \
678  $(SRC)\glyphs.c \
679  $(SRC)\glyphs-eimage.c \
680  $(SRC)\glyphs-widget.c \
681  $(SRC)\gui.c  \
682  $(SRC)\gutter.c \
683  $(SRC)\hash.c \
684  $(SRC)\imgproc.c \
685  $(SRC)\indent.c \
686  $(SRC)\insdel.c \
687  $(SRC)\intl.c \
688  $(SRC)\keymap.c \
689  $(SRC)\line-number.c \
690  $(SRC)\lread.c \
691  $(SRC)\lstream.c \
692  $(SRC)\macros.c \
693  $(SRC)\marker.c
694 DOC_SRC4=\
695  $(SRC)\md5.c \
696  $(SRC)\menubar.c \
697  $(SRC)\minibuf.c \
698  $(SRC)\nt.c \
699  $(SRC)\ntplay.c \
700  $(SRC)\ntproc.c \
701  $(SRC)\objects.c \
702  $(SRC)\opaque.c \
703  $(SRC)\print.c \
704  $(SRC)\process.c \
705  $(SRC)\process-nt.c \
706  $(SRC)\profile.c \
707  $(SRC)\rangetab.c \
708  $(SRC)\realpath.c \
709  $(SRC)\redisplay-output.c \
710  $(SRC)\redisplay.c \
711  $(SRC)\regex.c \
712  $(SRC)\scrollbar.c \
713  $(SRC)\search.c \
714  $(SRC)\select.c \
715  $(SRC)\signal.c \
716  $(SRC)\sound.c 
717 DOC_SRC5=\
718  $(SRC)\specifier.c \
719  $(SRC)\strftime.c \
720  $(SRC)\symbols.c \
721  $(SRC)\syntax.c \
722  $(SRC)\sysdep.c \
723  $(SRC)\termcap.c  \
724  $(SRC)\tparam.c \
725  $(SRC)\undo.c \
726  $(SRC)\window.c \
727  $(SRC)\win32.c \
728  $(SRC)\widget.c
729
730 !if $(HAVE_X_WINDOWS)
731 DOC_SRC6=\
732  $(SRC)\balloon_help.c \
733  $(SRC)\console-x.c \
734  $(SRC)\device-x.c  \
735  $(SRC)\dialog-x.c \
736  $(SRC)\EmacsFrame.c \
737  $(SRC)\EmacsManager.c \
738  $(SRC)\EmacsShell-sub.c\
739  $(SRC)\EmacsShell.c \
740  $(SRC)\event-Xt.c  \
741  $(SRC)\frame-x.c \
742  $(SRC)\glyphs-x.c \
743  $(SRC)\gui-x.c \
744  $(SRC)\menubar.c \
745  $(SRC)\menubar-x.c \
746  $(SRC)\objects-x.c \
747  $(SRC)\redisplay-x.c \
748  $(SRC)\scrollbar-x.c \
749  $(SRC)\balloon-x.c \
750  $(SRC)\xgccache.c \
751  $(SRC)\xmu.c \
752  $(SRC)\select-x.c 
753 !endif
754
755 !if $(HAVE_MS_WINDOWS)
756 DOC_SRC7=\
757  $(SRC)\console-msw.c \
758  $(SRC)\device-msw.c  \
759  $(SRC)\event-msw.c  \
760  $(SRC)\frame-msw.c \
761  $(SRC)\glyphs-msw.c \
762  $(SRC)\gui-msw.c \
763  $(SRC)\menubar-msw.c \
764  $(SRC)\objects-msw.c \
765  $(SRC)\redisplay-msw.c \
766  $(SRC)\scrollbar-msw.c \
767  $(SRC)\select-msw.c \
768  $(MSW_C_DIRED_SRC) \
769  $(MSW_TOOLBAR_SRC) \
770  $(MSW_DIALOG_SRC) \
771  $(MSW_GIF_SRC)
772 !endif
773
774 !if $(HAVE_MULE)
775 DOC_SRC8=\
776  $(SRC)\mule.c \
777  $(SRC)\mule-charset.c \
778  $(SRC)\mule-ccl.c
779 ! if $(HAVE_X_WINDOWS)
780  DOC_SRC8=$(DOC_SRC8) $(SRC)\input-method-xlib.c
781 ! endif
782 !endif
783
784 !if $(DEBUG_XEMACS)
785 DOC_SRC9=\
786  $(SRC)\debug.c \
787  $(SRC)\tests.c
788 !endif
789
790 !if !$(USE_SYSTEM_MALLOC)
791 DOC_SRC10=\
792  $(SRC)\free-hook.c \
793  $(SRC)\gmalloc.c \
794  $(SRC)\ntheap.c \
795  $(SRC)\vm-limit.c
796 !endif
797
798 !if !$(USE_PORTABLE_DUMPER)
799 DOC_SRC11=\
800  $(SRC)\unexnt.c
801 !else
802 DOC_SRC11=\
803  $(SRC)\dumper.c
804 !endif
805
806 #------------------------------------------------------------------------------
807
808 # TEMACS Executable
809
810 # This may not exist
811 !if "$(emacs_beta_version)" != ""
812 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
813 !ENDIF
814
815 !if !$(USE_PORTABLE_DUMPER)
816 TEMACS_ENTRYPOINT=-entry:_start
817 !else
818 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
819 !endif
820
821 TEMACS_DIR=$(SRC)
822 TEMACS=$(TEMACS_DIR)\temacs.exe
823 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
824 TEMACS_SRC=$(SRC)
825 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
826  oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \
827  shell32.lib wsock32.lib winmm.lib winspool.lib ole32.lib uuid.lib $(LIBC_LIB)
828 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
829  -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
830  -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
831  -heap:0x00100000 -nodefaultlib -incremental:no setargv.obj
832 TEMACS_CPP_FLAGS=-c \
833  $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
834  -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
835  -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
836  $(EMACS_BETA_VERSION) \
837  -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
838  -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
839  -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
840
841 !if $(HAVE_X_WINDOWS)
842 TEMACS_X_OBJS=\
843         $(OUTDIR)\balloon-x.obj \
844         $(OUTDIR)\balloon_help.obj \
845         $(OUTDIR)\console-x.obj \
846         $(OUTDIR)\device-x.obj \
847         $(OUTDIR)\dialog-x.obj \
848         $(OUTDIR)\EmacsFrame.obj \
849         $(OUTDIR)\EmacsManager.obj \
850         $(OUTDIR)\EmacsShell.obj \
851         $(OUTDIR)\TopLevelEmacsShell.obj\
852         $(OUTDIR)\TransientEmacsShell.obj\
853         $(OUTDIR)\event-Xt.obj \
854         $(OUTDIR)\frame-x.obj \
855         $(OUTDIR)\glyphs-x.obj \
856         $(OUTDIR)\gui-x.obj \
857         $(OUTDIR)\menubar-x.obj \
858         $(OUTDIR)\objects-x.obj \
859         $(OUTDIR)\redisplay-x.obj \
860         $(OUTDIR)\scrollbar-x.obj \
861         $(OUTDIR)\xgccache.obj \
862         $(OUTDIR)\xmu.obj \
863         $(OUTDIR)\select-x.obj
864 !endif
865
866 !if $(HAVE_MS_WINDOWS)
867 TEMACS_MSW_OBJS=\
868         $(OUTDIR)\console-msw.obj \
869         $(OUTDIR)\device-msw.obj \
870         $(OUTDIR)\event-msw.obj \
871         $(OUTDIR)\frame-msw.obj \
872         $(OUTDIR)\glyphs-msw.obj \
873         $(OUTDIR)\gui-msw.obj \
874         $(OUTDIR)\menubar-msw.obj \
875         $(OUTDIR)\objects-msw.obj \
876         $(OUTDIR)\redisplay-msw.obj \
877         $(OUTDIR)\scrollbar-msw.obj \
878         $(OUTDIR)\select-msw.obj \
879         $(MSW_C_DIRED_OBJ) \
880         $(MSW_TOOLBAR_OBJ) \
881         $(MSW_DIALOG_OBJ) \
882         $(MSW_GIF_OBJ)
883 !endif
884
885 !if $(HAVE_MULE)
886 TEMACS_MULE_OBJS=\
887         $(OUTDIR)\mule.obj \
888         $(OUTDIR)\mule-charset.obj \
889         $(OUTDIR)\mule-ccl.obj
890 ! if $(HAVE_X_WINDOWS)
891 TEMACS_MULE_OBJS=\
892         $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
893 ! endif
894 !endif
895
896 !if $(DEBUG_XEMACS)
897 TEMACS_DEBUG_OBJS=\
898         $(OUTDIR)\debug.obj \
899         $(OUTDIR)\tests.obj
900 !endif
901
902 !if !$(USE_SYSTEM_MALLOC)
903 TEMACS_ALLOC_OBJS=\
904         $(OUTDIR)\free-hook.obj \
905         $(OUTDIR)\gmalloc.obj \
906         $(OUTDIR)\ntheap.obj \
907         $(OUTDIR)\vm-limit.obj
908 !endif
909
910 !if !$(USE_PORTABLE_DUMPER)
911 TEMACS_DUMP_OBJS=\
912         $(OUTDIR)\unexnt.obj
913 !else
914 TEMACS_DUMP_OBJS=\
915         $(OUTDIR)\dumper.obj
916 !endif
917
918 TEMACS_OBJS= \
919         $(TEMACS_X_OBJS)\
920         $(TEMACS_MSW_OBJS)\
921         $(TEMACS_CODING_OBJS)\
922         $(TEMACS_MULE_OBJS)\
923         $(TEMACS_DEBUG_OBJS)\
924         $(TEMACS_ALLOC_OBJS)\
925         $(TEMACS_DUMP_OBJS)\
926         $(OUTDIR)\abbrev.obj \
927         $(OUTDIR)\alloc.obj \
928         $(OUTDIR)\blocktype.obj \
929         $(OUTDIR)\buffer.obj \
930         $(OUTDIR)\bytecode.obj \
931         $(OUTDIR)\callint.obj \
932         $(OUTDIR)\callproc.obj \
933         $(OUTDIR)\casefiddle.obj \
934         $(OUTDIR)\casetab.obj \
935         $(OUTDIR)\chartab.obj \
936         $(OUTDIR)\cmdloop.obj \
937         $(OUTDIR)\cmds.obj \
938         $(OUTDIR)\console-stream.obj \
939         $(OUTDIR)\console.obj \
940         $(OUTDIR)\data.obj \
941         $(OUTDIR)\device.obj \
942         $(OUTDIR)\dired.obj \
943         $(OUTDIR)\doc.obj \
944         $(OUTDIR)\doprnt.obj \
945         $(OUTDIR)\dragdrop.obj \
946         $(OUTDIR)\dynarr.obj \
947         $(OUTDIR)\editfns.obj \
948         $(OUTDIR)\elhash.obj \
949         $(OUTDIR)\emacs.obj \
950         $(OUTDIR)\eval.obj \
951         $(OUTDIR)\event-stream.obj \
952         $(OUTDIR)\events.obj \
953         $(OUTDIR)\extents.obj \
954         $(OUTDIR)\faces.obj \
955         $(OUTDIR)\file-coding.obj \
956         $(OUTDIR)\fileio.obj \
957         $(OUTDIR)\filemode.obj \
958         $(OUTDIR)\floatfns.obj \
959         $(OUTDIR)\fns.obj \
960         $(OUTDIR)\font-lock.obj \
961         $(OUTDIR)\frame.obj \
962         $(OUTDIR)\general.obj \
963         $(OUTDIR)\getloadavg.obj \
964         $(OUTDIR)\glyphs.obj \
965         $(OUTDIR)\glyphs-eimage.obj \
966         $(OUTDIR)\glyphs-widget.obj \
967         $(OUTDIR)\gui.obj \
968         $(OUTDIR)\gutter.obj \
969         $(OUTDIR)\hash.obj \
970         $(OUTDIR)\indent.obj \
971         $(OUTDIR)\imgproc.obj \
972         $(OUTDIR)\insdel.obj \
973         $(OUTDIR)\intl.obj \
974         $(OUTDIR)\keymap.obj \
975         $(OUTDIR)\line-number.obj \
976         $(OUTDIR)\lread.obj \
977         $(OUTDIR)\lstream.obj \
978         $(OUTDIR)\macros.obj \
979         $(OUTDIR)\menubar.obj \
980         $(OUTDIR)\marker.obj \
981         $(OUTDIR)\md5.obj \
982         $(OUTDIR)\minibuf.obj \
983         $(OUTDIR)\nt.obj \
984         $(OUTDIR)\ntplay.obj \
985         $(OUTDIR)\ntproc.obj \
986         $(OUTDIR)\objects.obj \
987         $(OUTDIR)\opaque.obj \
988         $(OUTDIR)\print.obj \
989         $(OUTDIR)\process.obj \
990         $(OUTDIR)\process-nt.obj \
991         $(OUTDIR)\profile.obj \
992         $(OUTDIR)\rangetab.obj \
993         $(OUTDIR)\realpath.obj \
994         $(OUTDIR)\redisplay-output.obj \
995         $(OUTDIR)\redisplay.obj \
996         $(OUTDIR)\regex.obj \
997         $(OUTDIR)\scrollbar.obj \
998         $(OUTDIR)\search.obj \
999         $(OUTDIR)\select.obj \
1000         $(OUTDIR)\signal.obj \
1001         $(OUTDIR)\sound.obj \
1002         $(OUTDIR)\specifier.obj \
1003         $(OUTDIR)\strftime.obj \
1004         $(OUTDIR)\symbols.obj \
1005         $(OUTDIR)\syntax.obj \
1006         $(OUTDIR)\sysdep.obj \
1007         $(OUTDIR)\tparam.obj \
1008         $(OUTDIR)\undo.obj \
1009         $(OUTDIR)\widget.obj \
1010         $(OUTDIR)\window.obj \
1011         $(OUTDIR)\win32.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 # we need to double ^, but only before backslash!  Doubling it elsewhere
1108 # causes problems.  I don't understand this -- CMD.EXE uses ^ as a quoting
1109 # convention of sorts, but appears to leave it alone inside of double quotes,
1110 # even before \.  Could this be nmake interference?
1111         etags -a -r "/[         ]*DEF\(VAR\|INE\)_[A-Z_]+[      ]*([    ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
1112         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
1113
1114 # Section handling tags ends here
1115
1116 # Section handling info starts here
1117
1118 !if !defined(MAKEINFO)
1119 MAKEINFO=$(XEMACS_BATCH) -l texinfmt -f batch-texinfo-format
1120 !endif
1121
1122 MANDIR = $(XEMACS)\man
1123 INFODIR = $(XEMACS)\info
1124 INFO_FILES= \
1125         $(INFODIR)\cl.info \
1126         $(INFODIR)\custom.info \
1127         $(INFODIR)\emodules.info \
1128         $(INFODIR)\external-widget.info \
1129         $(INFODIR)\info.info \
1130         $(INFODIR)\standards.info \
1131         $(INFODIR)\term.info \
1132         $(INFODIR)\termcap.info \
1133         $(INFODIR)\texinfo.info \
1134         $(INFODIR)\widget.info \
1135         $(INFODIR)\xemacs-faq.info \
1136         $(INFODIR)\xemacs.info \
1137         $(INFODIR)\lispref.info \
1138         $(INFODIR)\new-users-guide.info \
1139         $(INFODIR)\internals.info
1140
1141 {$(MANDIR)}.texi{$(INFODIR)}.info:
1142         cd $(MANDIR)
1143         $(MAKEINFO) $**
1144
1145 XEMACS_SRCS = \
1146         $(MANDIR)\xemacs\abbrevs.texi \
1147         $(MANDIR)\xemacs\basic.texi \
1148         $(MANDIR)\xemacs\buffers.texi \
1149         $(MANDIR)\xemacs\building.texi \
1150         $(MANDIR)\xemacs\calendar.texi \
1151         $(MANDIR)\xemacs\cmdargs.texi \
1152         $(MANDIR)\xemacs\custom.texi \
1153         $(MANDIR)\xemacs\display.texi \
1154         $(MANDIR)\xemacs\entering.texi \
1155         $(MANDIR)\xemacs\files.texi \
1156         $(MANDIR)\xemacs\fixit.texi \
1157         $(MANDIR)\xemacs\frame.texi \
1158         $(MANDIR)\xemacs\glossary.texi \
1159         $(MANDIR)\xemacs\gnu.texi \
1160         $(MANDIR)\xemacs\help.texi \
1161         $(MANDIR)\xemacs\indent.texi \
1162         $(MANDIR)\xemacs\keystrokes.texi \
1163         $(MANDIR)\xemacs\killing.texi \
1164         $(MANDIR)\xemacs\m-x.texi \
1165         $(MANDIR)\xemacs\major.texi \
1166         $(MANDIR)\xemacs\mark.texi \
1167         $(MANDIR)\xemacs\menus.texi \
1168         $(MANDIR)\xemacs\mini.texi \
1169         $(MANDIR)\xemacs\misc.texi \
1170         $(MANDIR)\xemacs\mouse.texi \
1171         $(MANDIR)\xemacs\mule.texi \
1172         $(MANDIR)\xemacs\new.texi \
1173         $(MANDIR)\xemacs\packages.texi \
1174         $(MANDIR)\xemacs\picture.texi \
1175         $(MANDIR)\xemacs\programs.texi \
1176         $(MANDIR)\xemacs\reading.texi \
1177         $(MANDIR)\xemacs\regs.texi \
1178         $(MANDIR)\xemacs\search.texi \
1179         $(MANDIR)\xemacs\sending.texi \
1180         $(MANDIR)\xemacs\startup.texi \
1181         $(MANDIR)\xemacs\text.texi \
1182         $(MANDIR)\xemacs\trouble.texi \
1183         $(MANDIR)\xemacs\undo.texi \
1184         $(MANDIR)\xemacs\windows.texi \
1185         $(MANDIR)\xemacs\xemacs.texi
1186
1187 LISPREF_SRCS = \
1188         $(MANDIR)\lispref\abbrevs.texi \
1189         $(MANDIR)\lispref\annotations.texi \
1190         $(MANDIR)\lispref\back.texi \
1191         $(MANDIR)\lispref\backups.texi \
1192         $(MANDIR)\lispref\buffers.texi \
1193         $(MANDIR)\lispref\building.texi \
1194         $(MANDIR)\lispref\commands.texi \
1195         $(MANDIR)\lispref\compile.texi \
1196         $(MANDIR)\lispref\consoles-devices.texi \
1197         $(MANDIR)\lispref\control.texi \
1198         $(MANDIR)\lispref\customize.texi \
1199         $(MANDIR)\lispref\databases.texi \
1200         $(MANDIR)\lispref\debugging.texi \
1201         $(MANDIR)\lispref\dialog.texi \
1202         $(MANDIR)\lispref\display.texi \
1203         $(MANDIR)\lispref\dragndrop.texi \
1204         $(MANDIR)\lispref\edebug-inc.texi \
1205         $(MANDIR)\lispref\edebug.texi \
1206         $(MANDIR)\lispref\errors.texi \
1207         $(MANDIR)\lispref\eval.texi \
1208         $(MANDIR)\lispref\extents.texi \
1209         $(MANDIR)\lispref\faces.texi \
1210         $(MANDIR)\lispref\files.texi \
1211         $(MANDIR)\lispref\frames.texi \
1212         $(MANDIR)\lispref\functions.texi \
1213         $(MANDIR)\lispref\glyphs.texi \
1214         $(MANDIR)\lispref\hash-tables.texi \
1215         $(MANDIR)\lispref\help.texi \
1216         $(MANDIR)\lispref\hooks.texi \
1217         $(MANDIR)\lispref\index.texi \
1218         $(MANDIR)\lispref\internationalization.texi \
1219         $(MANDIR)\lispref\intro.texi \
1220         $(MANDIR)\lispref\keymaps.texi \
1221         $(MANDIR)\lispref\ldap.texi \
1222         $(MANDIR)\lispref\lispref.texi \
1223         $(MANDIR)\lispref\lists.texi \
1224         $(MANDIR)\lispref\loading.texi \
1225         $(MANDIR)\lispref\locals.texi \
1226         $(MANDIR)\lispref\macros.texi \
1227         $(MANDIR)\lispref\maps.texi \
1228         $(MANDIR)\lispref\markers.texi \
1229         $(MANDIR)\lispref\menus.texi \
1230         $(MANDIR)\lispref\minibuf.texi \
1231         $(MANDIR)\lispref\modes.texi \
1232         $(MANDIR)\lispref\mouse.texi \
1233         $(MANDIR)\lispref\mule.texi \
1234         $(MANDIR)\lispref\numbers.texi \
1235         $(MANDIR)\lispref\objects.texi \
1236         $(MANDIR)\lispref\os.texi \
1237         $(MANDIR)\lispref\positions.texi \
1238         $(MANDIR)\lispref\processes.texi \
1239         $(MANDIR)\lispref\range-tables.texi \
1240         $(MANDIR)\lispref\scrollbars.texi \
1241         $(MANDIR)\lispref\searching.texi \
1242         $(MANDIR)\lispref\sequences.texi \
1243         $(MANDIR)\lispref\specifiers.texi \
1244         $(MANDIR)\lispref\streams.texi \
1245         $(MANDIR)\lispref\strings.texi \
1246         $(MANDIR)\lispref\symbols.texi \
1247         $(MANDIR)\lispref\syntax.texi \
1248         $(MANDIR)\lispref\text.texi \
1249         $(MANDIR)\lispref\tips.texi \
1250         $(MANDIR)\lispref\toolbar.texi \
1251         $(MANDIR)\lispref\tooltalk.texi \
1252         $(MANDIR)\lispref\variables.texi \
1253         $(MANDIR)\lispref\windows.texi \
1254         $(MANDIR)\lispref\x-windows.texi
1255
1256 INTERNALS_SRCS = \
1257         $(MANDIR)\internals\internals.texi \
1258         $(MANDIR)\internals\index.texi
1259
1260 NEW_USERS_GUIDE_SRCS = \
1261         $(MANDIR)\new-users-guide\custom1.texi \
1262         $(MANDIR)\new-users-guide\custom2.texi \
1263         $(MANDIR)\new-users-guide\edit.texi \
1264         $(MANDIR)\new-users-guide\enter.texi \
1265         $(MANDIR)\new-users-guide\files.texi \
1266         $(MANDIR)\new-users-guide\help.texi \
1267         $(MANDIR)\new-users-guide\modes.texi \
1268         $(MANDIR)\new-users-guide\new-users-guide.texi \
1269         $(MANDIR)\new-users-guide\region.texi \
1270         $(MANDIR)\new-users-guide\search.texi \
1271         $(MANDIR)\new-users-guide\xmenu.texi
1272
1273 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
1274         cd $(MANDIR)\xemacs
1275         $(MAKEINFO) xemacs.texi
1276         cd ..
1277
1278
1279 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
1280         cd $(MANDIR)\lispref
1281         $(MAKEINFO) lispref.texi
1282         cd ..
1283
1284 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
1285         cd $(MANDIR)\internals
1286         $(MAKEINFO) internals.texi
1287         cd ..
1288
1289 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
1290         cd $(MANDIR)\new-users-guide
1291         $(MAKEINFO) new-users-guide.texi
1292         cd ..
1293
1294 info:   makeinfo-test $(INFO_FILES)
1295
1296 makeinfo-test:
1297         @<<makeinfo_test.bat
1298 @echo off
1299 if exist "$(MAKEINFO)" goto test_done
1300 @$(XEMACS_BATCH) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
1301 @if not errorlevel 1 goto suggest_makeinfo
1302 @echo XEmacs 'info' cannot be built!
1303 @echo Install XEmacs package 'texinfo' (see README.packages).
1304 :suggest_makeinfo
1305 @echo Consider specifying path to makeinfo program: MAKEINFO=path
1306 @echo as this will build info docs faster than XEmacs using 'texinfo'.
1307 @if errorlevel 1 exit 1
1308 :test_done
1309 <<NOKEEP
1310
1311 # Section handling info ends here
1312
1313 #------------------------------------------------------------------------------
1314
1315 # LISP bits 'n bobs
1316
1317 LOADPATH=$(LISP)
1318
1319 # Rebuild docfile target
1320 docfile ::
1321         if exist $(DOC) del $(DOC)
1322 docfile :: $(DOC)
1323
1324 $(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)
1325         if exist $(DOC) del $(DOC)
1326         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1327         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1328         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
1329         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
1330         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
1331         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
1332         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
1333         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
1334         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
1335         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
1336         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
1337         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
1338         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC10)
1339         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC11)
1340
1341 update-elc:
1342         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1343         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1344         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\update-elc.el
1345
1346 # This file is touched by update-elc.el when redumping is necessary.
1347 $(TEMACS_DIR)\NEEDTODUMP :
1348         @echo >$(TEMACS_DIR)\NEEDTODUMP
1349
1350 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
1351 # requirements have changed.
1352
1353 $(PROGNAME) : $(TEMACS) $(TEMACS_DIR)\NEEDTODUMP
1354         @echo >$(TEMACS_DIR)\SATISFIED
1355         cd $(TEMACS_DIR)
1356         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1357         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1358         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\loadup.el dump
1359 !if $(USE_PORTABLE_DUMPER)
1360         rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
1361         link.exe @<<
1362   $(TEMACS_LFLAGS) -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1363 <<
1364 # Make the resource section read/write since almost all of it is the dump
1365 # data which needs to be writable.  This avoids having to copy it.
1366         editbin -nologo -section:.rsrc,rw xemacs.exe
1367         del $(TEMACS_DIR)\xemacs.dmp
1368 !endif
1369         cd $(NT)
1370         @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
1371 #------------------------------------------------------------------------------
1372
1373 # use this rule to build the complete system
1374 all:    installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
1375         $(LIB_SRC_TOOLS) $(TEMACS) update-elc $(DOC) $(PROGNAME) \
1376         update-elc-2 update-auto-and-custom info
1377
1378 temacs: $(LASTFILE) $(TEMACS)
1379
1380 # use this rule to install the system
1381 install:        all
1382         cd $(NT)
1383         @echo Installing in $(INSTALL_DIR) ...
1384         @echo PlaceHolder > PlaceHolder
1385         @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
1386         @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
1387         @$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
1388         @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
1389         @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1390         @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1391         @copy $(SRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1392         @xcopy /e /q $(XEMACS)\etc  "$(INSTALL_DIR)\etc\"
1393         @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
1394         @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
1395         @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
1396         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
1397         @$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
1398         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
1399         @$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
1400         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
1401         @$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
1402         @$(DEL) PlaceHolder
1403
1404 mostlyclean:
1405         $(DEL) $(XEMACS)\Installation
1406         $(DEL) $(OUTDIR)\*.lib $(OUTDIR)\*.obj $(OUTDIR)\*.pdb
1407         $(DEL) $(OUTDIR)\*.res $(OUTDIR)\*.sbr
1408         $(DEL) $(SRC)\*.exe $(SRC)\*.map $(SRC)\*.bsc $(SRC)\*.pdb
1409         $(DEL) $(LIB_SRC)\*.exe $(LIB_SRC)\*.obj $(LIB_SRC)\*.pdb
1410         $(DEL) $(LIB_SRC)\*.res
1411
1412 clean: mostlyclean versionclean
1413         $(DEL) $(XEMACS)\TAGS
1414
1415 nicenclean: clean
1416         $(DEL) $(NT)\*.bak $(NT)\*.orig $(NT)\*.rej $(NT)\*.tmp
1417         $(DEL) $(LIB_SRC)\*.bak $(LIB_SRC)\*.orig $(LIB_SRC)\*.rej
1418         $(DEL) $(LIB_SRC)\*.tmp
1419         $(DEL) $(SRC)\*.bak $(SRC)\*.orig $(SRC)\*.rej $(SRC)\*.tmp
1420         $(DEL) /s $(LISP)\*.bak $(LISP)\*.orig $(LISP)\*.rej $(LISP)\*.tmp
1421
1422 ## This is used in making a distribution.
1423 ## Do not use it on development directories!
1424 distclean: nicenclean
1425         $(DEL) $(SRC)\config.h $(SRC)\paths.h $(SRC)\Emacs.ad.h
1426         $(DEL) $(LIB_SRC)\$(CONFIG_VALUES)
1427         $(DEL) $(INFODIR)\*.info*
1428         $(DEL) /s /q $(LISP)\*.elc
1429
1430 realclean: distclean
1431
1432 versionclean:
1433         $(DEL) $(SRC)\xemacs.exe $(LIB_SRC)\DOC
1434
1435 #not sure about those wildcards.  DOS wildcards are stupid compared to Unix,
1436 #and could end up deleting *everything* instead of just backup files or
1437 #whatever.
1438 #extraclean: realclean
1439 #       $(DEL) *~ *.*~ #* m\*~ m\#* s\*~ s\#*
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 out-of-date .elcs, other than needed for dumping.
1557 update-elc-2:
1558         $(XEMACS_BATCH) -l update-elc-2.el -f batch-update-elc-2 $(LISP)
1559
1560 # Update auto-autoloads.el and custom-load.el, similar to what
1561 # XEmacs.rules does for xemacs-packages.  This used to delete
1562 # auto-autoloads.el first, but that's a bad idea, because it forces
1563 # rebuilding from scratch, which is time-consuming; and the autoload
1564 # code is specifically written to do in-place updating.  However, if
1565 # your auto-autoload file is messed up and you want it rebuilt from
1566 # scratch, delete it from the command line and then nmake with this
1567 # target.
1568 update-auto-and-custom:
1569 #       Combine into one invocation to avoid repeated startup penalty.
1570         $(XEMACS_BATCH) -l autoload -f batch-update-one-directory $(LISP) -f batch-byte-compile-one-file $(LISP)\auto-autoloads.el -l cus-dep -f Custom-make-one-dependency $(LISP) -f batch-byte-compile-one-file $(LISP)\custom-load.el
1571         @$(DEL) $(LISP)\auto-autoloads.el~
1572         @$(DEL) $(LISP)\custom-load.el~
1573
1574 # DO NOT DELETE THIS LINE -- make depend depends on it.
1575