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