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