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