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