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