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