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