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