XEmacs 21.2.36 "Notos"
[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 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/^\x23if defined(.+)/!if defined$$1/; s/^\x23e/!e/;" \
304         -e "s/([\s=^])([\w\d\.\-^]+\.[ch^])/$$1$(SRC:\=\\)\\$$2/g;" \
305         -e "s/^(.+)\.o:(.+)/$(OUTDIR:\=\\)\\$$1.obj:$$2 $(NT:\=\\)\\config.inc/;" \
306         < $(SRC)\depend > $(OUTDIR)\depend.tmp]
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)\blocktype.c \
634  $(SRC)\buffer.c \
635  $(SRC)\bytecode.c \
636  $(SRC)\callint.c \
637  $(SRC)\callproc.c \
638  $(SRC)\casefiddle.c \
639  $(SRC)\casetab.c \
640  $(SRC)\chartab.c \
641  $(SRC)\cmdloop.c \
642  $(SRC)\cmds.c \
643  $(SRC)\console-stream.c \
644  $(SRC)\console.c \
645  $(SRC)\data.c \
646  $(SRC)\device.c
647 DOC_SRC2=\
648  $(SRC)\dired.c \
649  $(SRC)\doc.c \
650  $(SRC)\doprnt.c \
651  $(SRC)\dragdrop.c \
652  $(SRC)\dynarr.c \
653  $(SRC)\editfns.c \
654  $(SRC)\elhash.c \
655  $(SRC)\emacs.c \
656  $(SRC)\eval.c \
657  $(SRC)\event-stream.c \
658  $(SRC)\events.c \
659  $(SRC)\extents.c \
660  $(SRC)\faces.c \
661  $(SRC)\file-coding.c \
662  $(SRC)\fileio.c \
663  $(SRC)\filemode.c \
664  $(SRC)\floatfns.c \
665  $(SRC)\fns.c 
666 DOC_SRC3=\
667  $(SRC)\font-lock.c \
668  $(SRC)\frame.c \
669  $(SRC)\general.c \
670  $(SRC)\getloadavg.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)\win32.c \
721  $(SRC)\widget.c
722
723 !if $(HAVE_X_WINDOWS)
724 DOC_SRC6=\
725  $(SRC)\balloon_help.c \
726  $(SRC)\console-x.c \
727  $(SRC)\device-x.c  \
728  $(SRC)\dialog-x.c \
729  $(SRC)\EmacsFrame.c \
730  $(SRC)\EmacsManager.c \
731  $(SRC)\EmacsShell-sub.c\
732  $(SRC)\EmacsShell.c \
733  $(SRC)\event-Xt.c  \
734  $(SRC)\frame-x.c \
735  $(SRC)\glyphs-x.c \
736  $(SRC)\gui-x.c \
737  $(SRC)\menubar.c \
738  $(SRC)\menubar-x.c \
739  $(SRC)\objects-x.c \
740  $(SRC)\redisplay-x.c \
741  $(SRC)\scrollbar-x.c \
742  $(SRC)\balloon-x.c \
743  $(SRC)\xgccache.c \
744  $(SRC)\xmu.c \
745  $(SRC)\select-x.c 
746 !endif
747
748 !if $(HAVE_MS_WINDOWS)
749 DOC_SRC7=\
750  $(SRC)\console-msw.c \
751  $(SRC)\device-msw.c  \
752  $(SRC)\event-msw.c  \
753  $(SRC)\frame-msw.c \
754  $(SRC)\glyphs-msw.c \
755  $(SRC)\gui-msw.c \
756  $(SRC)\menubar-msw.c \
757  $(SRC)\objects-msw.c \
758  $(SRC)\redisplay-msw.c \
759  $(SRC)\scrollbar-msw.c \
760  $(SRC)\select-msw.c \
761  $(MSW_C_DIRED_SRC) \
762  $(MSW_TOOLBAR_SRC) \
763  $(MSW_DIALOG_SRC) \
764  $(MSW_GIF_SRC)
765 !endif
766
767 !if $(HAVE_MULE)
768 DOC_SRC8=\
769  $(SRC)\mule.c \
770  $(SRC)\mule-charset.c \
771  $(SRC)\mule-ccl.c
772 ! if $(HAVE_X_WINDOWS)
773  DOC_SRC8=$(DOC_SRC8) $(SRC)\input-method-xlib.c
774 ! endif
775 !endif
776
777 !if $(DEBUG_XEMACS)
778 DOC_SRC9=\
779  $(SRC)\debug.c \
780  $(SRC)\tests.c
781 !endif
782
783 !if !$(USE_SYSTEM_MALLOC)
784 DOC_SRC10=\
785  $(SRC)\free-hook.c \
786  $(SRC)\gmalloc.c \
787  $(SRC)\ntheap.c \
788  $(SRC)\vm-limit.c
789 !endif
790
791 !if !$(USE_PORTABLE_DUMPER)
792 DOC_SRC11=\
793  $(SRC)\unexnt.c
794 !else
795 DOC_SRC11=\
796  $(SRC)\dumper.c
797 !endif
798
799 #------------------------------------------------------------------------------
800
801 # TEMACS Executable
802
803 # This may not exist
804 !if "$(emacs_beta_version)" != ""
805 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
806 !ENDIF
807
808 !if !$(USE_PORTABLE_DUMPER)
809 TEMACS_ENTRYPOINT=-entry:_start
810 !else
811 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
812 !endif
813
814 TEMACS_DIR=$(SRC)
815 TEMACS=$(TEMACS_DIR)\temacs.exe
816 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
817 TEMACS_SRC=$(SRC)
818 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
819  oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \
820  shell32.lib wsock32.lib winmm.lib winspool.lib ole32.lib uuid.lib $(LIBC_LIB)
821 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
822  -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
823  -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
824  -heap:0x00100000 -nodefaultlib -incremental:no setargv.obj
825 TEMACS_CPP_FLAGS=-c \
826  $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
827  -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
828  -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
829  $(EMACS_BETA_VERSION) \
830  -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
831  -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
832  -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
833
834 !if $(HAVE_X_WINDOWS)
835 TEMACS_X_OBJS=\
836         $(OUTDIR)\balloon-x.obj \
837         $(OUTDIR)\balloon_help.obj \
838         $(OUTDIR)\console-x.obj \
839         $(OUTDIR)\device-x.obj \
840         $(OUTDIR)\dialog-x.obj \
841         $(OUTDIR)\EmacsFrame.obj \
842         $(OUTDIR)\EmacsManager.obj \
843         $(OUTDIR)\EmacsShell.obj \
844         $(OUTDIR)\TopLevelEmacsShell.obj\
845         $(OUTDIR)\TransientEmacsShell.obj\
846         $(OUTDIR)\event-Xt.obj \
847         $(OUTDIR)\frame-x.obj \
848         $(OUTDIR)\glyphs-x.obj \
849         $(OUTDIR)\gui-x.obj \
850         $(OUTDIR)\menubar-x.obj \
851         $(OUTDIR)\objects-x.obj \
852         $(OUTDIR)\redisplay-x.obj \
853         $(OUTDIR)\scrollbar-x.obj \
854         $(OUTDIR)\xgccache.obj \
855         $(OUTDIR)\xmu.obj \
856         $(OUTDIR)\select-x.obj
857 !endif
858
859 !if $(HAVE_MS_WINDOWS)
860 TEMACS_MSW_OBJS=\
861         $(OUTDIR)\console-msw.obj \
862         $(OUTDIR)\device-msw.obj \
863         $(OUTDIR)\event-msw.obj \
864         $(OUTDIR)\frame-msw.obj \
865         $(OUTDIR)\glyphs-msw.obj \
866         $(OUTDIR)\gui-msw.obj \
867         $(OUTDIR)\menubar-msw.obj \
868         $(OUTDIR)\objects-msw.obj \
869         $(OUTDIR)\redisplay-msw.obj \
870         $(OUTDIR)\scrollbar-msw.obj \
871         $(OUTDIR)\select-msw.obj \
872         $(MSW_C_DIRED_OBJ) \
873         $(MSW_TOOLBAR_OBJ) \
874         $(MSW_DIALOG_OBJ) \
875         $(MSW_GIF_OBJ)
876 !endif
877
878 !if $(HAVE_MULE)
879 TEMACS_MULE_OBJS=\
880         $(OUTDIR)\mule.obj \
881         $(OUTDIR)\mule-charset.obj \
882         $(OUTDIR)\mule-ccl.obj
883 ! if $(HAVE_X_WINDOWS)
884 TEMACS_MULE_OBJS=\
885         $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
886 ! endif
887 !endif
888
889 !if $(DEBUG_XEMACS)
890 TEMACS_DEBUG_OBJS=\
891         $(OUTDIR)\debug.obj \
892         $(OUTDIR)\tests.obj
893 !endif
894
895 !if !$(USE_SYSTEM_MALLOC)
896 TEMACS_ALLOC_OBJS=\
897         $(OUTDIR)\free-hook.obj \
898         $(OUTDIR)\gmalloc.obj \
899         $(OUTDIR)\ntheap.obj \
900         $(OUTDIR)\vm-limit.obj
901 !endif
902
903 !if !$(USE_PORTABLE_DUMPER)
904 TEMACS_DUMP_OBJS=\
905         $(OUTDIR)\unexnt.obj
906 !else
907 TEMACS_DUMP_OBJS=\
908         $(OUTDIR)\dumper.obj
909 !endif
910
911 TEMACS_OBJS= \
912         $(TEMACS_X_OBJS)\
913         $(TEMACS_MSW_OBJS)\
914         $(TEMACS_CODING_OBJS)\
915         $(TEMACS_MULE_OBJS)\
916         $(TEMACS_DEBUG_OBJS)\
917         $(TEMACS_ALLOC_OBJS)\
918         $(TEMACS_DUMP_OBJS)\
919         $(OUTDIR)\abbrev.obj \
920         $(OUTDIR)\alloc.obj \
921         $(OUTDIR)\blocktype.obj \
922         $(OUTDIR)\buffer.obj \
923         $(OUTDIR)\bytecode.obj \
924         $(OUTDIR)\callint.obj \
925         $(OUTDIR)\callproc.obj \
926         $(OUTDIR)\casefiddle.obj \
927         $(OUTDIR)\casetab.obj \
928         $(OUTDIR)\chartab.obj \
929         $(OUTDIR)\cmdloop.obj \
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)\getloadavg.obj \
957         $(OUTDIR)\glyphs.obj \
958         $(OUTDIR)\glyphs-eimage.obj \
959         $(OUTDIR)\glyphs-widget.obj \
960         $(OUTDIR)\gui.obj \
961         $(OUTDIR)\gutter.obj \
962         $(OUTDIR)\hash.obj \
963         $(OUTDIR)\indent.obj \
964         $(OUTDIR)\imgproc.obj \
965         $(OUTDIR)\insdel.obj \
966         $(OUTDIR)\intl.obj \
967         $(OUTDIR)\keymap.obj \
968         $(OUTDIR)\line-number.obj \
969         $(OUTDIR)\lread.obj \
970         $(OUTDIR)\lstream.obj \
971         $(OUTDIR)\macros.obj \
972         $(OUTDIR)\menubar.obj \
973         $(OUTDIR)\marker.obj \
974         $(OUTDIR)\md5.obj \
975         $(OUTDIR)\minibuf.obj \
976         $(OUTDIR)\nt.obj \
977         $(OUTDIR)\ntplay.obj \
978         $(OUTDIR)\ntproc.obj \
979         $(OUTDIR)\objects.obj \
980         $(OUTDIR)\opaque.obj \
981         $(OUTDIR)\print.obj \
982         $(OUTDIR)\process.obj \
983         $(OUTDIR)\process-nt.obj \
984         $(OUTDIR)\profile.obj \
985         $(OUTDIR)\rangetab.obj \
986         $(OUTDIR)\realpath.obj \
987         $(OUTDIR)\redisplay-output.obj \
988         $(OUTDIR)\redisplay.obj \
989         $(OUTDIR)\regex.obj \
990         $(OUTDIR)\scrollbar.obj \
991         $(OUTDIR)\search.obj \
992         $(OUTDIR)\select.obj \
993         $(OUTDIR)\signal.obj \
994         $(OUTDIR)\sound.obj \
995         $(OUTDIR)\specifier.obj \
996         $(OUTDIR)\strftime.obj \
997         $(OUTDIR)\symbols.obj \
998         $(OUTDIR)\syntax.obj \
999         $(OUTDIR)\sysdep.obj \
1000         $(OUTDIR)\tparam.obj \
1001         $(OUTDIR)\undo.obj \
1002         $(OUTDIR)\widget.obj \
1003         $(OUTDIR)\window.obj \
1004         $(OUTDIR)\win32.obj
1005
1006 # Rules
1007
1008 .SUFFIXES:
1009 .SUFFIXES:      .c .obj .texi .info
1010
1011 # nmake rule
1012 !if $(DEBUG_XEMACS)
1013 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1014         $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
1015 !else
1016 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
1017         $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@
1018 !endif
1019
1020 $(OUTDIR)\emacs.obj:    $(XEMACS)\version.sh
1021
1022 $(OUTDIR)\TopLevelEmacsShell.obj:       $(TEMACS_SRC)\EmacsShell-sub.c
1023         $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
1024
1025 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
1026         $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
1027
1028 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c
1029
1030 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
1031 #       !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
1032
1033 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
1034 #       !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
1035
1036 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) $(OUTDIR)\xemacs.res
1037 !if $(DEBUG_XEMACS)
1038         @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
1039         bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
1040         @$(DEL) bscmake.tmp
1041 !endif
1042 !if $(USE_PORTABLE_DUMPER)
1043         @if exist $(SRC)\dump-id.c del $(SRC)\dump-id.c
1044 # make a new dump id file.  There is probably a better way to do this, but this works
1045         @if exist $(OUTDIR)\dump-id.obj del $(OUTDIR)\dump-id.obj
1046         nmake -nologo -f xemacs.mak OUTDIR=$(OUTDIR) $(OUTDIR)\dump-id.obj
1047         link.exe @<<
1048   $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1049 <<
1050 !else
1051         link.exe @<<
1052   $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS)
1053 <<
1054 !endif
1055
1056 $(OUTDIR)\xemacs.res: xemacs.rc
1057         rc -Fo$@ xemacs.rc
1058
1059
1060 PROGNAME=$(SRC)\xemacs.exe
1061 TEMACS_BATCH="$(LIB_SRC)\i" "$(TEMACS)" -batch
1062 XEMACS_BATCH="$(LIB_SRC)\i" "$(PROGNAME)" -vanilla -batch
1063
1064 # Section handling automated tests starts here
1065
1066 blddir=$(MAKEDIR:\=\\)\\..
1067 temacs_loadup=$(TEMACS_BATCH) -l $(LISP)/loadup.el
1068 dump_temacs   = $(temacs_loadup) dump
1069 run_temacs    = $(temacs_loadup) run-temacs
1070 ## We have automated tests!!
1071 testdir=../tests/automated
1072 batch_test_emacs=-batch -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
1073
1074 # .PHONY: check check-temacs
1075
1076 check:
1077         cd $(SRC)
1078         $(PROGNAME) $(batch_test_emacs)
1079
1080 check-temacs:
1081         cd $(SRC)
1082         set EMACSBOOTSTRAPLOADPATH=$(LISP)
1083         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1084         $(run_temacs) $(batch_test_emacs)
1085
1086 # Section handling automated tests ends here
1087
1088 # Section handling tags starts here
1089
1090 tagslisp=lisp
1091
1092 tags:
1093         @echo If you don't have a copy of etags around, then do 'make lib-src' first.
1094         @echo To make use of the tags file, put the following in your .emacs:
1095         @echo   (setq tag-table-alist
1096         @echo     '(("$(XEMACSDIRSTRING)\\" . "$(XEMACSDIRSTRING)\\")))
1097         cd $(XEMACS)
1098         $(DEL) TAGS
1099         set PATH=lib-src;%PATH%
1100 # we need to double ^, but only before backslash!  Doubling it elsewhere
1101 # causes problems.  I don't understand this -- CMD.EXE uses ^ as a quoting
1102 # convention of sorts, but appears to leave it alone inside of double quotes,
1103 # even before \.  Could this be nmake interference?
1104         etags -a -r "/[         ]*DEF\(VAR\|INE\)_[A-Z_]+[      ]*([    ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
1105         etags -a -l none -r "/^(def\(var\|un\|alias\|const\|macro\|subst\|struct\|face\|group\|custom\|ine-\(function\|compiler-macro\|[a-z-]+alias\)\)[        ]+'?\([^        ]+\)/\3/" $(tagslisp)\*.el
1106
1107 # Section handling tags ends here
1108
1109 # Section handling info starts here
1110
1111 !if !defined(MAKEINFO)
1112 MAKEINFO=$(XEMACS_BATCH) -l texinfmt -f batch-texinfo-format
1113 !endif
1114
1115 MANDIR = $(XEMACS)\man
1116 INFODIR = $(XEMACS)\info
1117 INFO_FILES= \
1118         $(INFODIR)\cl.info \
1119         $(INFODIR)\custom.info \
1120         $(INFODIR)\emodules.info \
1121         $(INFODIR)\external-widget.info \
1122         $(INFODIR)\info.info \
1123         $(INFODIR)\standards.info \
1124         $(INFODIR)\term.info \
1125         $(INFODIR)\termcap.info \
1126         $(INFODIR)\texinfo.info \
1127         $(INFODIR)\widget.info \
1128         $(INFODIR)\xemacs-faq.info \
1129         $(INFODIR)\xemacs.info \
1130         $(INFODIR)\lispref.info \
1131         $(INFODIR)\new-users-guide.info \
1132         $(INFODIR)\internals.info
1133
1134 {$(MANDIR)}.texi{$(INFODIR)}.info:
1135         cd $(MANDIR)
1136         $(MAKEINFO) $**
1137
1138 XEMACS_SRCS = \
1139         $(MANDIR)\xemacs\abbrevs.texi \
1140         $(MANDIR)\xemacs\basic.texi \
1141         $(MANDIR)\xemacs\buffers.texi \
1142         $(MANDIR)\xemacs\building.texi \
1143         $(MANDIR)\xemacs\calendar.texi \
1144         $(MANDIR)\xemacs\cmdargs.texi \
1145         $(MANDIR)\xemacs\custom.texi \
1146         $(MANDIR)\xemacs\display.texi \
1147         $(MANDIR)\xemacs\entering.texi \
1148         $(MANDIR)\xemacs\files.texi \
1149         $(MANDIR)\xemacs\fixit.texi \
1150         $(MANDIR)\xemacs\frame.texi \
1151         $(MANDIR)\xemacs\glossary.texi \
1152         $(MANDIR)\xemacs\gnu.texi \
1153         $(MANDIR)\xemacs\help.texi \
1154         $(MANDIR)\xemacs\indent.texi \
1155         $(MANDIR)\xemacs\keystrokes.texi \
1156         $(MANDIR)\xemacs\killing.texi \
1157         $(MANDIR)\xemacs\m-x.texi \
1158         $(MANDIR)\xemacs\major.texi \
1159         $(MANDIR)\xemacs\mark.texi \
1160         $(MANDIR)\xemacs\menus.texi \
1161         $(MANDIR)\xemacs\mini.texi \
1162         $(MANDIR)\xemacs\misc.texi \
1163         $(MANDIR)\xemacs\mouse.texi \
1164         $(MANDIR)\xemacs\mule.texi \
1165         $(MANDIR)\xemacs\new.texi \
1166         $(MANDIR)\xemacs\packages.texi \
1167         $(MANDIR)\xemacs\picture.texi \
1168         $(MANDIR)\xemacs\programs.texi \
1169         $(MANDIR)\xemacs\reading.texi \
1170         $(MANDIR)\xemacs\regs.texi \
1171         $(MANDIR)\xemacs\search.texi \
1172         $(MANDIR)\xemacs\sending.texi \
1173         $(MANDIR)\xemacs\startup.texi \
1174         $(MANDIR)\xemacs\text.texi \
1175         $(MANDIR)\xemacs\trouble.texi \
1176         $(MANDIR)\xemacs\undo.texi \
1177         $(MANDIR)\xemacs\windows.texi \
1178         $(MANDIR)\xemacs\xemacs.texi
1179
1180 LISPREF_SRCS = \
1181         $(MANDIR)\lispref\abbrevs.texi \
1182         $(MANDIR)\lispref\annotations.texi \
1183         $(MANDIR)\lispref\back.texi \
1184         $(MANDIR)\lispref\backups.texi \
1185         $(MANDIR)\lispref\buffers.texi \
1186         $(MANDIR)\lispref\building.texi \
1187         $(MANDIR)\lispref\commands.texi \
1188         $(MANDIR)\lispref\compile.texi \
1189         $(MANDIR)\lispref\consoles-devices.texi \
1190         $(MANDIR)\lispref\control.texi \
1191         $(MANDIR)\lispref\customize.texi \
1192         $(MANDIR)\lispref\databases.texi \
1193         $(MANDIR)\lispref\debugging.texi \
1194         $(MANDIR)\lispref\dialog.texi \
1195         $(MANDIR)\lispref\display.texi \
1196         $(MANDIR)\lispref\dragndrop.texi \
1197         $(MANDIR)\lispref\edebug-inc.texi \
1198         $(MANDIR)\lispref\edebug.texi \
1199         $(MANDIR)\lispref\errors.texi \
1200         $(MANDIR)\lispref\eval.texi \
1201         $(MANDIR)\lispref\extents.texi \
1202         $(MANDIR)\lispref\faces.texi \
1203         $(MANDIR)\lispref\files.texi \
1204         $(MANDIR)\lispref\frames.texi \
1205         $(MANDIR)\lispref\functions.texi \
1206         $(MANDIR)\lispref\glyphs.texi \
1207         $(MANDIR)\lispref\hash-tables.texi \
1208         $(MANDIR)\lispref\help.texi \
1209         $(MANDIR)\lispref\hooks.texi \
1210         $(MANDIR)\lispref\index.texi \
1211         $(MANDIR)\lispref\internationalization.texi \
1212         $(MANDIR)\lispref\intro.texi \
1213         $(MANDIR)\lispref\keymaps.texi \
1214         $(MANDIR)\lispref\ldap.texi \
1215         $(MANDIR)\lispref\lispref.texi \
1216         $(MANDIR)\lispref\lists.texi \
1217         $(MANDIR)\lispref\loading.texi \
1218         $(MANDIR)\lispref\locals.texi \
1219         $(MANDIR)\lispref\macros.texi \
1220         $(MANDIR)\lispref\maps.texi \
1221         $(MANDIR)\lispref\markers.texi \
1222         $(MANDIR)\lispref\menus.texi \
1223         $(MANDIR)\lispref\minibuf.texi \
1224         $(MANDIR)\lispref\modes.texi \
1225         $(MANDIR)\lispref\mouse.texi \
1226         $(MANDIR)\lispref\mule.texi \
1227         $(MANDIR)\lispref\numbers.texi \
1228         $(MANDIR)\lispref\objects.texi \
1229         $(MANDIR)\lispref\os.texi \
1230         $(MANDIR)\lispref\positions.texi \
1231         $(MANDIR)\lispref\processes.texi \
1232         $(MANDIR)\lispref\range-tables.texi \
1233         $(MANDIR)\lispref\scrollbars.texi \
1234         $(MANDIR)\lispref\searching.texi \
1235         $(MANDIR)\lispref\sequences.texi \
1236         $(MANDIR)\lispref\specifiers.texi \
1237         $(MANDIR)\lispref\streams.texi \
1238         $(MANDIR)\lispref\strings.texi \
1239         $(MANDIR)\lispref\symbols.texi \
1240         $(MANDIR)\lispref\syntax.texi \
1241         $(MANDIR)\lispref\text.texi \
1242         $(MANDIR)\lispref\tips.texi \
1243         $(MANDIR)\lispref\toolbar.texi \
1244         $(MANDIR)\lispref\tooltalk.texi \
1245         $(MANDIR)\lispref\variables.texi \
1246         $(MANDIR)\lispref\windows.texi \
1247         $(MANDIR)\lispref\x-windows.texi
1248
1249 INTERNALS_SRCS = \
1250         $(MANDIR)\internals\internals.texi \
1251         $(MANDIR)\internals\index.texi
1252
1253 NEW_USERS_GUIDE_SRCS = \
1254         $(MANDIR)\new-users-guide\custom1.texi \
1255         $(MANDIR)\new-users-guide\custom2.texi \
1256         $(MANDIR)\new-users-guide\edit.texi \
1257         $(MANDIR)\new-users-guide\enter.texi \
1258         $(MANDIR)\new-users-guide\files.texi \
1259         $(MANDIR)\new-users-guide\help.texi \
1260         $(MANDIR)\new-users-guide\modes.texi \
1261         $(MANDIR)\new-users-guide\new-users-guide.texi \
1262         $(MANDIR)\new-users-guide\region.texi \
1263         $(MANDIR)\new-users-guide\search.texi \
1264         $(MANDIR)\new-users-guide\xmenu.texi
1265
1266 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
1267         cd $(MANDIR)\xemacs
1268         $(MAKEINFO) xemacs.texi
1269         cd ..
1270
1271
1272 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
1273         cd $(MANDIR)\lispref
1274         $(MAKEINFO) lispref.texi
1275         cd ..
1276
1277 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
1278         cd $(MANDIR)\internals
1279         $(MAKEINFO) internals.texi
1280         cd ..
1281
1282 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
1283         cd $(MANDIR)\new-users-guide
1284         $(MAKEINFO) new-users-guide.texi
1285         cd ..
1286
1287 info:   makeinfo-test $(INFO_FILES)
1288
1289 makeinfo-test:
1290         @<<makeinfo_test.bat
1291 @echo off
1292 if exist "$(MAKEINFO)" goto test_done
1293 @$(XEMACS_BATCH) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
1294 @if not errorlevel 1 goto suggest_makeinfo
1295 @echo XEmacs 'info' cannot be built!
1296 @echo Install XEmacs package 'texinfo' (see README.packages).
1297 :suggest_makeinfo
1298 @echo Consider specifying path to makeinfo program: MAKEINFO=path
1299 @echo as this will build info docs faster than XEmacs using 'texinfo'.
1300 @if errorlevel 1 exit 1
1301 :test_done
1302 <<NOKEEP
1303
1304 # Section handling info ends here
1305
1306 #------------------------------------------------------------------------------
1307
1308 # LISP bits 'n bobs
1309
1310 LOADPATH=$(LISP)
1311
1312 # Rebuild docfile target
1313 docfile ::
1314         if exist $(DOC) del $(DOC)
1315 docfile :: $(DOC)
1316
1317 $(DOC): $(LIB_SRC)\make-docfile.exe $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(DOC_SRC9) $(DOC_SRC10) $(DOC_SRC11)
1318         if exist $(DOC) del $(DOC)
1319         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1320         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1321         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
1322         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
1323         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
1324         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
1325         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
1326         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
1327         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
1328         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
1329         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
1330         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
1331         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC10)
1332         $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC11)
1333
1334 update-elc:
1335         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1336         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1337         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\update-elc.el
1338
1339 # This file is touched by update-elc.el when redumping is necessary.
1340 $(TEMACS_DIR)\NEEDTODUMP :
1341         @echo >$(TEMACS_DIR)\NEEDTODUMP
1342
1343 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
1344 # requirements have changed.
1345
1346 $(PROGNAME) : $(TEMACS) $(TEMACS_DIR)\NEEDTODUMP
1347         @echo >$(TEMACS_DIR)\SATISFIED
1348         cd $(TEMACS_DIR)
1349         set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
1350         set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
1351         $(TEMACS_BATCH) -l $(TEMACS_DIR)\..\lisp\loadup.el dump
1352 !if $(USE_PORTABLE_DUMPER)
1353         rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
1354         link.exe @<<
1355   $(TEMACS_LFLAGS) -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1356 <<
1357 # Make the resource section read/write since almost all of it is the dump
1358 # data which needs to be writable.  This avoids having to copy it.
1359         editbin -nologo -section:.rsrc,rw xemacs.exe
1360         del $(TEMACS_DIR)\xemacs.dmp
1361 !endif
1362         cd $(NT)
1363         @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
1364 #------------------------------------------------------------------------------
1365
1366 # use this rule to build the complete system
1367 all:    installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
1368         $(LIB_SRC_TOOLS) $(TEMACS) update-elc $(DOC) $(PROGNAME) \
1369         update-elc-2 update-auto-and-custom info
1370
1371 temacs: $(LASTFILE) $(TEMACS)
1372
1373 # use this rule to install the system
1374 install:        all
1375         cd $(NT)
1376         @echo Installing in $(INSTALL_DIR) ...
1377         @echo PlaceHolder > PlaceHolder
1378         @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
1379         @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
1380         @$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
1381         @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
1382         @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1383         @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1384         @copy $(SRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
1385         @xcopy /e /q $(XEMACS)\etc  "$(INSTALL_DIR)\etc\"
1386         @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
1387         @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
1388         @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
1389         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
1390         @$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
1391         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
1392         @$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
1393         @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
1394         @$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
1395         @$(DEL) PlaceHolder
1396
1397 mostlyclean:
1398         $(DEL) $(XEMACS)\Installation
1399         $(DEL) $(OUTDIR)\*.lib $(OUTDIR)\*.obj $(OUTDIR)\*.pdb
1400         $(DEL) $(OUTDIR)\*.res $(OUTDIR)\*.sbr
1401         $(DEL) $(SRC)\*.exe $(SRC)\*.map $(SRC)\*.bsc $(SRC)\*.pdb
1402         $(DEL) $(LIB_SRC)\*.exe $(LIB_SRC)\*.obj $(LIB_SRC)\*.pdb
1403         $(DEL) $(LIB_SRC)\*.res
1404
1405 clean: mostlyclean versionclean
1406         $(DEL) $(XEMACS)\TAGS
1407
1408 nicenclean: clean
1409         $(DEL) $(NT)\*.bak $(NT)\*.orig $(NT)\*.rej $(NT)\*.tmp
1410         $(DEL) $(LIB_SRC)\*.bak $(LIB_SRC)\*.orig $(LIB_SRC)\*.rej
1411         $(DEL) $(LIB_SRC)\*.tmp
1412         $(DEL) $(SRC)\*.bak $(SRC)\*.orig $(SRC)\*.rej $(SRC)\*.tmp
1413         $(DEL) /s $(LISP)\*.bak $(LISP)\*.orig $(LISP)\*.rej $(LISP)\*.tmp
1414
1415 ## This is used in making a distribution.
1416 ## Do not use it on development directories!
1417 distclean: nicenclean
1418         $(DEL) $(SRC)\config.h $(SRC)\paths.h $(SRC)\Emacs.ad.h
1419         $(DEL) $(LIB_SRC)\$(CONFIG_VALUES)
1420         $(DEL) $(INFODIR)\*.info*
1421         $(DEL) /s /q $(LISP)\*.elc
1422
1423 realclean: distclean
1424
1425 versionclean:
1426         $(DEL) $(SRC)\xemacs.exe $(LIB_SRC)\DOC
1427
1428 #not sure about those wildcards.  DOS wildcards are stupid compared to Unix,
1429 #and could end up deleting *everything* instead of just backup files or
1430 #whatever.
1431 #extraclean: realclean
1432 #       $(DEL) *~ *.*~ #* m\*~ m\#* s\*~ s\#*
1433
1434 depend:
1435         cd $(SRC)
1436         perl ./make-src-depend > depend.tmp
1437         perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
1438
1439 $(XEMACS)\Installation::        installation
1440
1441 installation::
1442         @type > $(XEMACS)\Installation <<
1443 !if defined(OS)
1444 OS: $(OS)
1445 !endif
1446
1447 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for `$(EMACS_CONFIGURATION)'.
1448
1449   Building XEmacs in \"$(MAKEDIR:\=\\)\".
1450 !if defined(CCV)
1451   Using compiler \"$(CC) $(CFLAGS)\".
1452 !endif
1453   Installing XEmacs in \"$(INSTALL_DIR:\=\\)\".
1454   Package path is $(PATH_PACKAGEPATH:"=\").
1455 !if $(INFODOCK)
1456   Building InfoDock.
1457 !endif
1458 !if $(HAVE_MS_WINDOWS)
1459   Compiling in support for Microsoft Windows native GUI.
1460 !endif
1461 !if $(HAVE_X_WINDOWS)
1462   Compiling in support for X-Windows.
1463 !endif
1464 !if $(HAVE_MULE)
1465   Compiling in MULE.
1466 !endif
1467 !if $(HAVE_XPM)
1468   Compiling in support for XPM images.
1469 !else
1470   --------------------------------------------------------------------
1471   WARNING: Compiling without XPM support.
1472   WARNING: You should strongly consider installing XPM.
1473   WARNING: Otherwise toolbars and other graphics will look suboptimal.
1474   WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
1475   --------------------------------------------------------------------
1476 !endif
1477 !if $(HAVE_GIF)
1478   Compiling in support for GIF images.
1479 !endif
1480 !if $(HAVE_PNG)
1481   Compiling in support for PNG images.
1482 !else
1483   --------------------------------------------------------------------
1484   WARNING: Compiling without PNG image support.
1485   WARNING: You should strongly consider installing the PNG libraries.
1486   WARNING: Otherwise certain images and glyphs may not display.
1487   WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
1488   --------------------------------------------------------------------
1489 !endif
1490 !if $(HAVE_TIFF)
1491   Compiling in support for TIFF images.
1492 !endif
1493 !if $(HAVE_JPEG)
1494   Compiling in support for JPEG images.
1495 !endif
1496 !if $(HAVE_XFACE)
1497   Compiling in support for X-Face message headers.
1498 !endif
1499 !if $(HAVE_TOOLBARS)
1500   Compiling in support for toolbars.
1501 !endif
1502 !if $(HAVE_DIALOGS)
1503   Compiling in support for dialogs.
1504 !endif
1505 !if $(HAVE_WIDGETS)
1506   Compiling in support for widgets.
1507 !endif
1508 !if $(HAVE_NATIVE_SOUND)
1509   Compiling in support for native sounds.
1510 !endif
1511 !if $(HAVE_MSW_C_DIRED)
1512   Compiling in fast dired implementation.
1513 !else
1514   --------------------------------------------------------------------
1515   WARNING: Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs
1516   WARNING: to use C primitives to significantly speed up dired, at the
1517   WARNING: expense of an additional ~4KB of code.
1518   --------------------------------------------------------------------
1519 !endif
1520 !if $(USE_MINIMAL_TAGBITS)
1521   Using minimal tagbits.
1522 !endif
1523 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
1524   Using indexed lrecord implementation.
1525 !endif
1526 !if $(USE_UNION_TYPE)
1527   Using union type for Lisp object storage.
1528 !endif
1529 !if $(USE_PORTABLE_DUMPER)
1530   Using portable dumper.
1531 !endif
1532 !if $(USE_SYSTEM_MALLOC)
1533   Using system malloc.
1534 !endif
1535 !if $(USE_CRTDLL)
1536   Using DLL version of C runtime library
1537 !endif
1538 !if $(DEBUG_XEMACS)
1539   Compiling in extra debug checks. XEmacs will be slow!
1540 !endif
1541 !if $(QUICK_BUILD)
1542   Disabling non-essential build actions.  Use with care!
1543 !endif
1544 <<NOKEEP
1545         @echo --------------------------------------------------------------------
1546         @type $(XEMACS)\Installation
1547         @echo --------------------------------------------------------------------
1548
1549 # Update out-of-date .elcs, other than needed for dumping.
1550 update-elc-2:
1551         $(XEMACS_BATCH) -l update-elc-2.el -f batch-update-elc-2 $(LISP)
1552
1553 # Update auto-autoloads.el and custom-load.el, similar to what
1554 # XEmacs.rules does for xemacs-packages.  This used to delete
1555 # auto-autoloads.el first, but that's a bad idea, because it forces
1556 # rebuilding from scratch, which is time-consuming; and the autoload
1557 # code is specifically written to do in-place updating.  However, if
1558 # your auto-autoload file is messed up and you want it rebuilt from
1559 # scratch, delete it from the command line and then nmake with this
1560 # target.
1561 update-auto-and-custom:
1562 #       Combine into one invocation to avoid repeated startup penalty.
1563         $(XEMACS_BATCH) -l autoload -f batch-update-one-directory $(LISP) -f batch-byte-compile-one-file $(LISP)\auto-autoloads.el -l cus-dep -f Custom-make-one-dependency $(LISP) -f batch-byte-compile-one-file $(LISP)\custom-load.el
1564         @$(DEL) $(LISP)\auto-autoloads.el~
1565         @$(DEL) $(LISP)\custom-load.el~
1566
1567 # DO NOT DELETE THIS LINE -- make depend depends on it.
1568