795
|
1 # Makefile for Microsoft NMAKE -*- Makefile -*-
|
|
2 #
|
428
|
3 # Copyright (C) 1995 Board of Trustees, University of Illinois.
|
2951
|
4 # Copyright (C) 1995, 1996, 2000, 2001, 2002, 2003, 2004, 2005 Ben Wing.
|
795
|
5 # Copyright (C) 1997, 1998, 2000 Jonathan Harris.
|
428
|
6 # Copyright (C) 1995 Sun Microsystems, Inc.
|
|
7 # Copyright (C) 1998 Free Software Foundation, Inc.
|
|
8 #
|
|
9 # This file is part of XEmacs.
|
|
10 #
|
|
11 # XEmacs is free software; you can redistribute it and/or modify it
|
|
12 # under the terms of the GNU General Public License as published by the
|
|
13 # Free Software Foundation; either version 2, or (at your option) any
|
|
14 # later version.
|
|
15 #
|
|
16 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
19 # for more details.
|
|
20 #
|
|
21 # You should have received a copy of the GNU General Public License
|
|
22 # along with XEmacs; see the file COPYING. If not, write to
|
|
23 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
24 # Boston, MA 02111-1307, USA.
|
|
25 #
|
|
26 # Synched up with: Not in FSF.
|
|
27 #
|
|
28
|
442
|
29 default: all
|
|
30
|
444
|
31 # APA: Since there seems to be no way to determine the directory where
|
|
32 # xemacs.mak is located (from within nmake) we just insist on the user
|
|
33 # to invoke nmake in the directory where xemacs.mak is.
|
|
34 !if !exist("$(MAKEDIR)\xemacs.mak")
|
|
35 !error Please run nmake from the directory of this makefile (xemacs\nt).
|
|
36 !endif
|
|
37
|
1330
|
38 MAKEROOT=$(MAKEDIR:\nt=)
|
442
|
39
|
1330
|
40 ########################### Common commands.
|
428
|
41
|
1330
|
42 # Put these before including config.inc so they can be overridden there.
|
637
|
43 # Note that some versions of some commands are deficient.
|
428
|
44
|
2106
|
45 # Define a variable for the 'del' command to use.
|
637
|
46 # WinME's DEL command can only handle one argument and only has the /P flag.
|
|
47 # So only delete one glob at a time. Override flags in config.inc.
|
2106
|
48 DEL=-del
|
637
|
49
|
1001
|
50 # Tell COPY, MOVE, and XCOPY to suppress confirmation for overwriting
|
|
51 # files.
|
2106
|
52 COPYCMD=/y
|
1001
|
53 # Define the 'copy' command to use.
|
2106
|
54 COPY=xcopy /q
|
|
55 COPYDIR=xcopy /q /e
|
583
|
56
|
1330
|
57 ########################### Includes, and source and build tree determination.
|
442
|
58
|
|
59 !include "config.inc"
|
428
|
60
|
1330
|
61 !if defined(BUILD_DIR)
|
|
62 SEPARATE_BUILD=1
|
|
63 SRCROOT=$(MAKEROOT)
|
|
64 BLDROOT=$(BUILD_DIR)
|
|
65 !else
|
|
66 !if defined(SOURCE_DIR)
|
|
67 SEPARATE_BUILD=1
|
|
68 SRCROOT=$(SOURCE_DIR)
|
|
69 BLDROOT=$(MAKEROOT)
|
|
70 !else
|
|
71 SEPARATE_BUILD=0
|
|
72 SRCROOT=$(MAKEROOT)
|
|
73 BLDROOT=$(MAKEROOT)
|
|
74 !endif
|
|
75 !endif
|
|
76
|
|
77 # Program name and version
|
|
78 !include "$(SRCROOT)\version.sh"
|
|
79
|
|
80 ########################### Basic vars referring to directories, both in
|
|
81 ########################### the source and build trees.
|
|
82
|
|
83 LISP=$(SRCROOT)\lisp
|
|
84 LIB_SRC=$(SRCROOT)\lib-src
|
|
85 NT=$(SRCROOT)\nt
|
|
86 SRC=$(SRCROOT)\src
|
|
87 ETC=$(SRCROOT)\etc
|
1346
|
88 INFO=$(SRCROOT)\info
|
1330
|
89
|
|
90 BLDLIB_SRC=$(BLDROOT)\lib-src
|
|
91 BLDNT=$(BLDROOT)\nt
|
|
92 OUTDIR=$(BLDNT)\obj
|
|
93 BLDSRC=$(BLDROOT)\src
|
|
94
|
|
95 # This appears in the dependency file
|
|
96 LWLIB_SRCDIR=$(SRCROOT)\lwlib
|
|
97
|
2951
|
98 ########################### Figure out current version of VC++.
|
|
99
|
3054
|
100 !if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"]
|
|
101 !endif
|
2951
|
102 !if [echo MSC_VER=_MSC_VER > $(OUTDIR)\vcversion.c]
|
|
103 !endif
|
|
104 !if [cl /nologo /EP $(OUTDIR)\vcversion.c > $(OUTDIR)\vcversion.tmp]
|
|
105 !endif
|
|
106 !include "$(OUTDIR)\vcversion.tmp"
|
|
107
|
1330
|
108 ########################### Process the config.inc options.
|
|
109
|
428
|
110 !if !defined(INFODOCK)
|
|
111 INFODOCK=0
|
|
112 !endif
|
771
|
113 !if !defined(MULE)
|
|
114 MULE=0
|
428
|
115 !endif
|
442
|
116 !if !defined(HAVE_MS_WINDOWS)
|
|
117 HAVE_MS_WINDOWS=1
|
428
|
118 !endif
|
|
119 !if !defined(HAVE_XPM)
|
|
120 HAVE_XPM=0
|
|
121 !endif
|
|
122 !if !defined(HAVE_PNG)
|
|
123 HAVE_PNG=0
|
|
124 !endif
|
632
|
125 !if !defined(HAVE_ZLIB)
|
|
126 HAVE_ZLIB=$(HAVE_PNG)
|
|
127 !endif
|
428
|
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
|
827
|
143 !if !defined(HAVE_MENUBARS)
|
|
144 HAVE_MENUBARS=1
|
|
145 !endif
|
|
146 !if !defined(HAVE_SCROLLBARS)
|
|
147 HAVE_SCROLLBARS=1
|
|
148 !endif
|
428
|
149 !if !defined(HAVE_TOOLBARS)
|
|
150 HAVE_TOOLBARS=$(HAVE_XPM)
|
|
151 !endif
|
|
152 !if !defined(HAVE_DIALOGS)
|
|
153 HAVE_DIALOGS=1
|
|
154 !endif
|
|
155 !if !defined(HAVE_NATIVE_SOUND)
|
|
156 HAVE_NATIVE_SOUND=1
|
|
157 !endif
|
|
158 !if !defined(HAVE_WIDGETS)
|
|
159 HAVE_WIDGETS=1
|
|
160 !endif
|
2951
|
161 !if !defined(HAVE_DATABASE)
|
|
162 HAVE_DATABASE=0
|
|
163 !endif
|
|
164 !if !defined(BUILD_DATABASE_SHARED)
|
|
165 BUILD_DATABASE_SHARED=0
|
|
166 !endif
|
|
167 !if !defined(HAVE_POSTGRESQL)
|
|
168 HAVE_POSTGRESQL=0
|
|
169 !endif
|
|
170 !if !defined(HAVE_LDAP)
|
|
171 HAVE_LDAP=0
|
|
172 !endif
|
|
173 !if !defined(HAVE_BIGNUM)
|
|
174 HAVE_BIGNUM=0
|
|
175 !endif
|
3034
|
176 !if !defined(BUILD_BIGNUM_MINGW_SHARED)
|
|
177 BUILD_BIGNUM_MINGW_SHARED=0
|
|
178 !endif
|
|
179 !if !defined(BUILD_BIGNUM_NATIVE_SHARED)
|
|
180 BUILD_BIGNUM_NATIVE_SHARED=0
|
|
181 !endif
|
872
|
182 !if !defined(OPTIMIZED_BUILD)
|
|
183 OPTIMIZED_BUILD=1
|
|
184 !endif
|
|
185 !if !defined(USE_FASTCALL)
|
|
186 # #### Change to 1 when I check in the ws with support for fastcall
|
|
187 USE_FASTCALL=0
|
|
188 !endif
|
|
189 !if !defined(PROFILE_SUPPORT)
|
|
190 PROFILE_SUPPORT=0
|
|
191 !endif
|
428
|
192 !if !defined(DEBUG_XEMACS)
|
|
193 DEBUG_XEMACS=0
|
|
194 !endif
|
1333
|
195 !if !defined(SUPPORT_EDIT_AND_CONTINUE)
|
|
196 SUPPORT_EDIT_AND_CONTINUE=0
|
834
|
197 !endif
|
1203
|
198
|
800
|
199 !if !defined(ERROR_CHECK_ALL)
|
1203
|
200 !if "$(emacs_is_beta)" != ""
|
800
|
201 ERROR_CHECK_ALL=1
|
1203
|
202 !else
|
|
203 ERROR_CHECK_ALL=0
|
|
204 !endif
|
|
205 !endif
|
|
206
|
|
207 !if !defined(CPLUSPLUS_COMPILE)
|
|
208 !if $(ERROR_CHECK_ALL)
|
|
209 CPLUSPLUS_COMPILE=1
|
|
210 !else
|
|
211 CPLUSPLUS_COMPILE=0
|
|
212 !endif
|
|
213 !endif
|
|
214
|
|
215 !if !defined(USE_KKCC)
|
|
216 USE_KKCC=0
|
|
217 !endif
|
2720
|
218 !if !defined(MC_ALLOC)
|
|
219 MC_ALLOC=0
|
|
220 !endif
|
3092
|
221 !if !defined(NEW_GC)
|
|
222 NEW_GC=0
|
|
223 !endif
|
1203
|
224 !if !defined(USE_UNION_TYPE)
|
|
225 USE_UNION_TYPE=0
|
800
|
226 !endif
|
442
|
227 !if !defined(QUICK_BUILD)
|
|
228 QUICK_BUILD=0
|
|
229 !endif
|
872
|
230 !if !defined(VERBOSECC)
|
|
231 VERBOSECC=0
|
|
232 !endif
|
|
233 !if !defined(DEPEND)
|
|
234 DEPEND=0
|
|
235 !endif
|
|
236 !if !defined(USE_PORTABLE_DUMPER)
|
|
237 USE_PORTABLE_DUMPER=1
|
|
238 !endif
|
438
|
239 !if !defined(USE_MINITAR)
|
632
|
240 USE_MINITAR=$(HAVE_ZLIB)
|
438
|
241 !endif
|
428
|
242
|
440
|
243 # A little bit of adhockery. Default to use system malloc and
|
|
244 # DLL version of the C runtime library when using portable
|
|
245 # dumping. These are the optimal settings.
|
2500
|
246 #
|
|
247 # NOTE: The various graphics libraries are generally compiled to use
|
|
248 # MSVCRT.DLL (the same that we use in USE_CRTDLL, more or less), so using
|
|
249 # this is a good thing.
|
|
250
|
440
|
251 !if !defined(USE_SYSTEM_MALLOC)
|
|
252 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
|
|
253 !endif
|
|
254 !if !defined(USE_CRTDLL)
|
|
255 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
|
|
256 !endif
|
|
257
|
1330
|
258 ########################### Check for incompatible options.
|
428
|
259
|
|
260 CONFIG_ERROR=0
|
|
261 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
|
|
262 !message Cannot build InfoDock without InfoDock sources
|
|
263 CONFIG_ERROR=1
|
|
264 !endif
|
440
|
265 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
|
|
266 !message Cannot use system allocator when dumping old way, use portable dumper.
|
|
267 CONFIG_ERROR=1
|
|
268 !endif
|
|
269 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
|
|
270 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
|
|
271 CONFIG_ERROR=1
|
|
272 !endif
|
|
273 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
|
|
274 !message GNU malloc currently cannot be used with CRT DLL.
|
|
275 !message [[[Developer note: If you want to fix it, read Q112297 first]]] ####
|
|
276 CONFIG_ERROR=1
|
|
277 !endif
|
1330
|
278 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_GTK)
|
|
279 !message Please specify at least one HAVE_MS_WINDOWS=1 and/or HAVE_GTK=1
|
428
|
280 CONFIG_ERROR=1
|
|
281 !endif
|
488
|
282 !if $(HAVE_MS_WINDOWS) && $(HAVE_GTK) && !defined(GTK_DIR)
|
|
283 !message Please specify root directory for your GTK installation: GTK_DIR=path
|
|
284 CONFIG_ERROR=1
|
|
285 !endif
|
2951
|
286
|
442
|
287 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
|
428
|
288 !message Please specify root directory for your XPM installation: XPM_DIR=path
|
|
289 CONFIG_ERROR=1
|
|
290 !endif
|
442
|
291 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
|
428
|
292 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
|
|
293 CONFIG_ERROR=1
|
|
294 !endif
|
2951
|
295
|
442
|
296 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
|
428
|
297 !message Please specify root directory for your PNG installation: PNG_DIR=path
|
|
298 CONFIG_ERROR=1
|
|
299 !endif
|
442
|
300 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
|
428
|
301 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
|
|
302 CONFIG_ERROR=1
|
|
303 !endif
|
2951
|
304
|
442
|
305 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
|
428
|
306 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
|
|
307 CONFIG_ERROR=1
|
|
308 !endif
|
442
|
309 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
|
428
|
310 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
|
|
311 CONFIG_ERROR=1
|
|
312 !endif
|
2951
|
313
|
442
|
314 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
|
428
|
315 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
|
|
316 CONFIG_ERROR=1
|
|
317 !endif
|
442
|
318 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
|
428
|
319 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
320 CONFIG_ERROR=1
|
|
321 !endif
|
2951
|
322
|
442
|
323 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
|
428
|
324 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
|
|
325 CONFIG_ERROR=1
|
|
326 !endif
|
442
|
327 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
|
428
|
328 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
|
|
329 CONFIG_ERROR=1
|
|
330 !endif
|
2951
|
331
|
442
|
332 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
|
428
|
333 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
|
|
334 CONFIG_ERROR=1
|
|
335 !endif
|
442
|
336 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
|
428
|
337 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
|
|
338 CONFIG_ERROR=1
|
|
339 !endif
|
2951
|
340
|
442
|
341 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
|
428
|
342 !message Toolbars require XPM support
|
|
343 CONFIG_ERROR=1
|
|
344 !endif
|
2951
|
345
|
|
346 !if $(HAVE_MS_WINDOWS) && $(HAVE_BIGNUM) && !defined(BIGNUM_DIR)
|
|
347 !message Please specify root directory for your BIGNUM installation: BIGNUM_DIR=path
|
|
348 CONFIG_ERROR=1
|
|
349 !endif
|
|
350 !if $(HAVE_MS_WINDOWS) && $(HAVE_BIGNUM) && defined(BIGNUM_DIR)
|
|
351 !if $(BUILD_BIGNUM_MINGW_SHARED)
|
|
352 !if !exist("$(BIGNUM_DIR)\libgmp-3.lib")
|
|
353 !message Specified BIGNUM directory does not contain "$(BIGNUM_DIR)\libgmp-3.lib"
|
|
354 CONFIG_ERROR=1
|
|
355 !endif
|
|
356 !else
|
|
357 !if $(BUILD_BIGNUM_NATIVE_SHARED)
|
|
358 !if !exist("$(BIGNUM_DIR)\gmp-dynamic\gmp.lib")
|
|
359 !message Specified BIGNUM directory does not contain "$(BIGNUM_DIR)\gmp-dynamic\gmp.lib"
|
|
360 CONFIG_ERROR=1
|
|
361 !endif
|
|
362 !else
|
|
363 !if !exist("$(BIGNUM_DIR)\gmp-static\gmp.lib")
|
|
364 !message Specified BIGNUM directory does not contain "$(BIGNUM_DIR)\gmp-static\gmp.lib"
|
|
365 CONFIG_ERROR=1
|
|
366 !endif
|
|
367 !endif
|
|
368 !endif
|
|
369 !endif
|
|
370
|
|
371 !if $(HAVE_MS_WINDOWS) && $(HAVE_DATABASE) && !defined(DATABASE_DIR)
|
|
372 !message Please specify root directory for your DATABASE installation: DATABASE_DIR=path
|
|
373 CONFIG_ERROR=1
|
|
374 !endif
|
|
375 !if $(HAVE_MS_WINDOWS) && $(HAVE_DATABASE) && defined(DATABASE_DIR)
|
|
376 !if $(BUILD_DATABASE_SHARED)
|
|
377 !if !exist("$(DATABASE_DIR)\build_win32\Release\libdb43.lib")
|
|
378 !message Specified DATABASE directory does not contain "$(DATABASE_DIR)\build_win32\Release\libdb43.lib"
|
|
379 CONFIG_ERROR=1
|
|
380 !endif
|
|
381 !else
|
|
382 !if !exist("$(DATABASE_DIR)\build_win32\Release_static\libdb43s.lib")
|
|
383 !message Specified DATABASE directory does not contain "$(DATABASE_DIR)\build_win32\Release_static\libdb43s.lib"
|
|
384 CONFIG_ERROR=1
|
|
385 !endif
|
|
386 !endif
|
|
387 !endif
|
|
388
|
|
389 !if $(HAVE_MS_WINDOWS) && $(HAVE_POSTGRESQL) && !defined(POSTGRESQL_DIR)
|
|
390 !message Please specify root directory for your POSTGRESQL installation: POSTGRESQL_DIR=path
|
|
391 CONFIG_ERROR=1
|
|
392 !endif
|
|
393 !if $(HAVE_MS_WINDOWS) && $(HAVE_POSTGRESQL) && defined(POSTGRESQL_DIR) && !exist("$(POSTGRESQL_DIR)\src\interfaces\libpq\Release\libpq.lib")
|
|
394 !message Specified POSTGRESQL directory does not contain "$(POSTGRESQL_DIR)\src\interfaces\libpq\Release\libpq.lib"
|
|
395 CONFIG_ERROR=1
|
|
396 !endif
|
|
397 !if $(HAVE_MS_WINDOWS) && $(HAVE_LDAP) && !defined(LDAP_DIR)
|
|
398 !message Please specify root directory for your LDAP installation: LDAP_DIR=path
|
|
399 CONFIG_ERROR=1
|
|
400 !endif
|
|
401 !if $(HAVE_MS_WINDOWS) && $(HAVE_LDAP) && defined(LDAP_DIR) && !exist("$(LDAP_DIR)\openldap.lib")
|
|
402 !message Specified LDAP directory does not contain "$(LDAP_DIR)\openldap.lib"
|
|
403 CONFIG_ERROR=1
|
|
404 !endif
|
428
|
405 !if $(CONFIG_ERROR)
|
|
406 !error Configuration error(s) found
|
|
407 !endif
|
|
408
|
1330
|
409 ########################### Set version strings.
|
|
410
|
|
411 !if $(INFODOCK)
|
|
412 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
|
|
413 PROGRAM_DEFINES=-DINFODOCK \
|
|
414 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
|
|
415 -DPATH_PROGNAME=\"infodock\" \
|
|
416 -DEMACS_PROGNAME=\"infodock\" \
|
|
417 -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
|
|
418 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
|
|
419 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
|
|
420 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
|
|
421 !else
|
|
422 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
|
|
423 !if "$(emacs_beta_version)" != ""
|
|
424 !if "$(emacs_is_beta)" != ""
|
|
425 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING)-b$(emacs_beta_version)
|
|
426 !else
|
|
427 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING).$(emacs_beta_version)
|
|
428 !endif
|
|
429 !endif
|
|
430 PROGRAM_DEFINES= \
|
|
431 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
|
|
432 -DPATH_PROGNAME=\"xemacs\" \
|
|
433 -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\" \
|
|
434 -DEMACS_PROGNAME=\"xemacs\"
|
|
435 !endif
|
|
436
|
|
437 ########################### Set up installation and package directories.
|
|
438
|
|
439 !if !defined(INSTALL_DIR)
|
|
440 ! if $(INFODOCK)
|
|
441 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
|
|
442 ! else
|
|
443 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
|
442
|
444 ! endif
|
1330
|
445 !endif
|
|
446 !if !defined(PACKAGE_PATH)
|
|
447 ! if !defined(PACKAGE_PREFIX)
|
|
448 PACKAGE_PREFIX=c:\Program Files\XEmacs
|
442
|
449 ! endif
|
1330
|
450 ! if $(MULE)
|
|
451 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
|
452 ! else
|
|
453 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
442
|
454 ! endif
|
|
455 !endif
|
1330
|
456 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
|
|
457
|
|
458 !if $(INFODOCK)
|
|
459 PATH_PREFIX=../..
|
|
460 !else
|
|
461 PATH_PREFIX=..
|
|
462 !endif
|
|
463
|
|
464 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
|
|
465
|
|
466 !if $(SEPARATE_BUILD)
|
1346
|
467 PATH_DEFINES=$(PATH_DEFINES) -DPATH_LOADSEARCH=\"$(LISP:\=\\)\" -DPATH_DATA=\"$(ETC:\=\\)\" -DPATH_INFO=\"$(INFO:\=\\)\"
|
1330
|
468 !endif
|
|
469
|
|
470 ########################### Determine system configuration.
|
|
471
|
|
472 !if !defined(OS)
|
|
473 OS=Windows_95/98
|
|
474 EMACS_CONFIGURATION=i586-pc-win32
|
|
475 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
|
476 EMACS_CONFIGURATION=i586-pc-win32
|
|
477 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
|
|
478 EMACS_CONFIGURATION=mips-pc-win32
|
|
479 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
|
|
480 EMACS_CONFIGURATION=alpha-pc-win32
|
|
481 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
|
|
482 EMACS_CONFIGURATION=ppc-pc-win32
|
|
483 !else
|
|
484 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
|
|
485 !endif
|
|
486 STACK_TRACE_EYE_CATCHER=$(XEMACS_VERSION_STRING:.=_)
|
|
487 STACK_TRACE_EYE_CATCHER=xemacs_$(STACK_TRACE_EYE_CATCHER:-=_)_$(EMACS_CONFIGURATION:-=_)
|
|
488 PROGRAM_DEFINES=$(PROGRAM_DEFINES) -DSTACK_TRACE_EYE_CATCHER=$(STACK_TRACE_EYE_CATCHER)
|
|
489
|
2951
|
490 ########################### Determine includes/defines/object files/libraries
|
|
491 ########################### for all configuration options given.
|
|
492
|
|
493 OPT_DEFINES=
|
|
494 OPT_INCLUDES=
|
|
495 OPT_LIBS=
|
|
496 OPT_OBJS=
|
|
497 TEMACS_MODULE_OBJS=
|
|
498 TEMACS_MODULE_SRCS=
|
1330
|
499
|
|
500 !if $(HAVE_MS_WINDOWS)
|
2951
|
501 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_MS_WINDOWS
|
|
502 OPT_LIBS=$(OPT_LIBS) comctl32.lib
|
|
503 OPT_OBJS=$(OPT_OBJS) \
|
1330
|
504 $(OUTDIR)\console-msw.obj \
|
|
505 $(OUTDIR)\device-msw.obj \
|
|
506 $(OUTDIR)\event-msw.obj \
|
|
507 $(OUTDIR)\frame-msw.obj \
|
|
508 $(OUTDIR)\glyphs-msw.obj \
|
|
509 $(OUTDIR)\gui-msw.obj \
|
|
510 $(OUTDIR)\objects-msw.obj \
|
|
511 $(OUTDIR)\redisplay-msw.obj \
|
|
512 $(OUTDIR)\select-msw.obj \
|
2951
|
513 $(OUTDIR)\dired-msw.obj
|
|
514 !if $(HAVE_MENUBARS)
|
|
515 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_MENUBARS
|
|
516 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\menubar.obj $(OUTDIR)\menubar-msw.obj
|
|
517 !endif
|
|
518 !if $(HAVE_SCROLLBARS)
|
|
519 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_SCROLLBARS
|
|
520 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\scrollbar.obj $(OUTDIR)\scrollbar-msw.obj
|
|
521 !endif
|
|
522 !if $(HAVE_TOOLBARS)
|
|
523 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_TOOLBARS
|
|
524 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
|
|
525 !endif
|
|
526 !if $(HAVE_WIDGETS)
|
|
527 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_WIDGETS
|
|
528 !endif
|
|
529 !if $(HAVE_DIALOGS)
|
|
530 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_DIALOGS
|
|
531 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
|
|
532 !endif
|
1330
|
533 # end !if $(HAVE_MS_WINDOWS)
|
|
534 !endif
|
|
535
|
2951
|
536 !if $(HAVE_XPM)
|
|
537 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_XPM -DFOR_MSW
|
|
538 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
|
|
539 OPT_LIBS=$(OPT_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
|
|
540 !endif
|
|
541 !if $(HAVE_GIF)
|
|
542 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_GIF
|
|
543 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
|
|
544 !endif
|
|
545 !if $(HAVE_PNG)
|
|
546 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_PNG
|
|
547 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
|
|
548 OPT_LIBS=$(OPT_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
|
|
549 !endif
|
|
550 !if $(HAVE_TIFF)
|
|
551 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_TIFF
|
|
552 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(TIFF_DIR)\libtiff"
|
|
553 OPT_LIBS=$(OPT_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
554 !endif
|
|
555 !if $(HAVE_JPEG)
|
|
556 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_JPEG
|
|
557 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(JPEG_DIR)"
|
|
558 OPT_LIBS=$(OPT_LIBS) "$(JPEG_DIR)\libjpeg.lib"
|
|
559 !endif
|
|
560 !if $(HAVE_XFACE)
|
|
561 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_XFACE
|
|
562 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(COMPFACE_DIR)"
|
|
563 OPT_LIBS=$(OPT_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
|
|
564 !endif
|
|
565 !if $(HAVE_ZLIB)
|
|
566 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_ZLIB
|
|
567 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(ZLIB_DIR)"
|
|
568 OPT_LIBS=$(OPT_LIBS) "$(ZLIB_DIR)\zlib.lib"
|
|
569 !endif
|
|
570 !if $(HAVE_BIGNUM)
|
|
571 OPT_DEFINES=$(OPT_DEFINES) -DWITH_NUMBER_TYPES -DWITH_GMP
|
|
572 !if $(BUILD_BIGNUM_MINGW_SHARED)
|
|
573 OPT_LIBS=$(OPT_LIBS) "$(BIGNUM_DIR)\libgmp-3.lib"
|
|
574 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(BIGNUM_DIR)"
|
|
575 !else
|
|
576 !if $(BUILD_BIGNUM_NATIVE_SHARED)
|
|
577 OPT_LIBS=$(OPT_LIBS) "$(BIGNUM_DIR)\gmp-dynamic\gmp.lib"
|
3034
|
578 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(BIGNUM_DIR)"
|
2951
|
579 !else
|
|
580 OPT_LIBS=$(OPT_LIBS) "$(BIGNUM_DIR)\gmp-static\gmp.lib"
|
3034
|
581 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(BIGNUM_DIR)"
|
2951
|
582 !endif
|
|
583 !endif
|
|
584 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\number-gmp.obj $(OUTDIR)\number.obj
|
|
585 !endif
|
|
586 !if $(HAVE_DATABASE)
|
|
587 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_DATABASE -DHAVE_BERKELEY_DB -DDB_H_FILE=\"db.h\"
|
|
588 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(DATABASE_DIR)\build_win32"
|
|
589 !if $(BUILD_DATABASE_SHARED)
|
|
590 OPT_LIBS=$(OPT_LIBS) "$(DATABASE_DIR)\build_win32\Release\libdb43.lib"
|
|
591 !else
|
|
592 OPT_LIBS=$(OPT_LIBS) "$(DATABASE_DIR)\build_win32\Release_static\libdb43s.lib"
|
|
593 !endif
|
|
594 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\database.obj
|
|
595 !endif
|
|
596 !if $(HAVE_POSTGRESQL)
|
|
597 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_POSTGRESQL -DHAVE_POSTGRESQLV7 -DLIBPQ_FE_H_FILE=\"libpq-fe.h\"
|
|
598 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(POSTGRESQL_DIR)\src\include" -I"$(POSTGRESQL_DIR)\src\interfaces\libpq"
|
|
599 OPT_LIBS=$(OPT_LIBS) "$(POSTGRESQL_DIR)\src\interfaces\libpq\Release\libpq.lib"
|
|
600 TEMACS_MODULE_OBJS=$(TEMACS_MODULE_OBJS) $(OUTDIR)\postgresql.obj
|
|
601 TEMACS_MODULE_SRCS=$(TEMACS_MODULE_SRCS) $(SRCROOT)\modules\postgresql\postgresql.c
|
|
602 !endif
|
|
603 !if $(HAVE_LDAP)
|
|
604 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_LDAP -DHAVE_LDAP_SET_OPTION -DHAVE_LDAP_RESULT2ERROR -DHAVE_LDAP_PARSE_RESULT
|
|
605 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(LDAP_DIR)"
|
|
606 OPT_LIBS=$(OPT_LIBS) "$(LDAP_DIR)\openldap.lib"
|
|
607 TEMACS_MODULE_OBJS=$(TEMACS_MODULE_OBJS) $(OUTDIR)\eldap.obj
|
|
608 TEMACS_MODULE_SRCS=$(TEMACS_MODULE_SRCS) $(SRCROOT)\modules\ldap\eldap.c
|
|
609 !endif
|
|
610 !if $(HAVE_NATIVE_SOUND)
|
|
611 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_NATIVE_SOUND
|
|
612 !endif
|
|
613
|
1330
|
614 !if $(MULE)
|
2951
|
615 OPT_DEFINES=$(OPT_DEFINES) -DMULE
|
|
616 OPT_OBJS=$(OPT_OBJS) \
|
1330
|
617 $(OUTDIR)\mule-ccl.obj \
|
|
618 $(OUTDIR)\mule-charset.obj \
|
|
619 $(OUTDIR)\mule-coding.obj
|
|
620 !endif
|
|
621
|
|
622 !if $(DEBUG_XEMACS)
|
2951
|
623 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\debug.obj $(OUTDIR)\tests.obj
|
1330
|
624 !endif
|
|
625
|
|
626 !if $(QUICK_BUILD)
|
2951
|
627 OPT_DEFINES=$(OPT_DEFINES) -DQUICK_BUILD
|
1330
|
628 !endif
|
|
629
|
|
630 !if $(ERROR_CHECK_ALL)
|
2951
|
631 OPT_DEFINES=$(OPT_DEFINES) -DERROR_CHECK_ALL
|
1330
|
632 !endif
|
|
633
|
|
634 !if $(USE_UNION_TYPE)
|
2951
|
635 OPT_DEFINES=$(OPT_DEFINES) -DUSE_UNION_TYPE
|
1330
|
636 !endif
|
|
637
|
|
638 !if $(USE_PORTABLE_DUMPER)
|
2951
|
639 OPT_DEFINES=$(OPT_DEFINES) -DPDUMP
|
|
640 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\dumper.obj
|
1330
|
641 !else
|
2951
|
642 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\unexnt.obj
|
1330
|
643 !endif
|
|
644
|
3092
|
645 !if $(NEW_GC)
|
|
646 OPT_DEFINES=$(OPT_DEFINES) -DNEW_GC
|
|
647 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\vdb.obj $(OUTDIR)\vdb-win32.obj
|
|
648 USE_KKCC=1
|
|
649 MC_ALLOC=1
|
|
650 !endif
|
|
651
|
1330
|
652 !if $(USE_KKCC)
|
2951
|
653 OPT_DEFINES=$(OPT_DEFINES) -DUSE_KKCC
|
1330
|
654 !endif
|
3092
|
655
|
2720
|
656 !if $(MC_ALLOC)
|
2951
|
657 OPT_DEFINES=$(OPT_DEFINES) -DMC_ALLOC
|
|
658 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\mc-alloc.obj
|
2720
|
659 !endif
|
|
660
|
1330
|
661 !if $(USE_SYSTEM_MALLOC)
|
2951
|
662 OPT_DEFINES=$(OPT_DEFINES) -DSYSTEM_MALLOC
|
1330
|
663 !else
|
2951
|
664 OPT_DEFINES=$(OPT_DEFINES) -DGNU_MALLOC
|
|
665 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\free-hook.obj $(OUTDIR)\gmalloc.obj \
|
1330
|
666 $(OUTDIR)\ntheap.obj $(OUTDIR)\vm-limit.obj
|
|
667 !endif
|
|
668
|
|
669 ########################### Process options related to compilation.
|
442
|
670
|
|
671 #
|
428
|
672 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
|
|
673 #
|
|
674 !if $(VERBOSECC)
|
|
675 CCV=$(CC)
|
|
676 !else
|
|
677 CCV=@$(CC)
|
|
678 !endif
|
|
679
|
|
680 !if $(DEBUG_XEMACS)
|
814
|
681
|
872
|
682 # ---- Debugging support ----
|
2951
|
683 ! if $(MSC_VER) >= 1400
|
|
684 # VC 7 sets opt:noref automatically with -debug. VC 8 apparently doesn't
|
|
685 # do this, and then complains if you try to use edit-and-continue without
|
|
686 # giving it.
|
|
687 DEBUG_FLAG_LINK_DEBUG=-debug -opt:noref
|
|
688 # This turns on additional run-time checking
|
|
689 # For some reason it causes spawning of make-docfile to crash in VC 7
|
|
690 DEBUG_FLAG_COMPILE_DEBUG=-RTC1
|
|
691 ! else
|
|
692 DEBUG_FLAG_LINK_DEBUG=-debug:full
|
|
693 DEBUG_FLAG_COMPILE_DEBUG=
|
|
694 ! endif
|
|
695
|
1333
|
696 ! if $(SUPPORT_EDIT_AND_CONTINUE)
|
872
|
697 # support edit-and-continue
|
2951
|
698 DEBUG_FLAGS_COMPILE=$(DEBUG_FLAG_COMPILE_DEBUG) -ZI
|
1333
|
699 # WARNING: There is a very good reason for -incremental:no, as it can cause
|
|
700 # all sorts of weird crashes in or after a pdump load. We must allow
|
|
701 # incremental linking for edit-and-continue to work, however.
|
2951
|
702 DEBUG_FLAGS_LINK=$(DEBUG_FLAG_LINK_DEBUG)
|
872
|
703 ! else
|
2951
|
704 DEBUG_FLAGS_COMPILE=$(DEBUG_FLAG_COMPILE_DEBUG) -Zi
|
|
705 DEBUG_FLAGS_LINK=$(DEBUG_FLAG_LINK_DEBUG) -incremental:no
|
872
|
706 ! endif
|
2951
|
707
|
|
708 OPT_DEFINES=$(OPT_DEFINES) -DDEBUG_XEMACS -D_DEBUG
|
|
709
|
|
710 ! if $(MSC_VER) >= 1300
|
|
711 #BROWSERFLAGS=-FR -Fd$(OUTDIR)\temacs.pdb
|
|
712 BROWSERFLAGS=-FR$*.sbr -Fd$(OUTDIR)\temacs.pdb
|
|
713 ! else
|
872
|
714 #BROWSERFLAGS=-Fr -Fd$(OUTDIR)\temacs.pdb
|
|
715 BROWSERFLAGS=-Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
|
2951
|
716 ! endif
|
872
|
717
|
814
|
718 !else
|
872
|
719
|
|
720 # ---- No debugging support ----
|
|
721 DEBUG_FLAGS_COMPILE=
|
|
722 DEBUG_FLAGS_LINK=-incremental:no
|
|
723 BROWSERFLAGS=
|
|
724
|
428
|
725 !endif
|
|
726
|
440
|
727 !if $(USE_CRTDLL)
|
872
|
728 ! if $(DEBUG_XEMACS)
|
440
|
729 C_LIBFLAG=-MDd
|
|
730 LIBC_LIB=msvcrtd.lib
|
872
|
731 ! else
|
440
|
732 C_LIBFLAG=-MD
|
|
733 LIBC_LIB=msvcrt.lib
|
872
|
734 ! endif
|
440
|
735 !else
|
|
736 C_LIBFLAG=-ML
|
|
737 LIBC_LIB=libc.lib
|
|
738 !endif
|
|
739
|
872
|
740 !if $(OPTIMIZED_BUILD)
|
2951
|
741 !if $(SUPPORT_EDIT_AND_CONTINUE)
|
|
742 !error Edit-and-continue is not compatible with optimization.
|
|
743 !endif
|
872
|
744 # -G5 means optimize for Pentium. (According to the code-optimization
|
|
745 # article, -GB is the same as -G5, and -G6, i.e. optimze for Pentium Pro,
|
|
746 # gains you little over -G5 for PPro's but causes big slowdowns for
|
|
747 # Pentiums.) -GF means put strings in read-only memory; -Gr means use
|
|
748 # fastcall convention. Another possible addition: -Ob2 -- allows inlining
|
|
749 # of any function, not just those declared inline. Potential code size
|
|
750 # increase, though.
|
|
751 #
|
|
752 # #### Note: fastcall doesn't actually seem to make any difference, at least
|
|
753 # not using the (admittedly unscientific) test of (hanoi 6). The
|
|
754 # optimization article claims 1-2% improvement in both speed and size.
|
|
755 OPTFLAGS_FASTCALL =-O2 -G5 -Gr -Ob2
|
|
756 OPTFLAGS_CDECL =-O2 -G5 -Ob2
|
|
757 !else
|
|
758 OPTFLAGS_FASTCALL =-Od
|
|
759 OPTFLAGS_CDECL =-Od
|
|
760 !endif
|
|
761
|
|
762 !if $(USE_FASTCALL)
|
|
763 OPTFLAGS = $(OPTFLAGS_FASTCALL)
|
|
764 !else
|
|
765 OPTFLAGS = $(OPTFLAGS_CDECL)
|
|
766 !endif
|
|
767
|
|
768 !if $(PROFILE_SUPPORT)
|
|
769 PROFILE_FLAGS=-profile
|
|
770 !else
|
|
771 PROFILE_FLAGS=
|
|
772 !endif
|
|
773
|
1203
|
774 !if $(CPLUSPLUS_COMPILE)
|
|
775 CPLUSPLUS_COMPILE_FLAGS=-TP
|
|
776 !else
|
|
777 CPLUSPLUS_COMPILE_FLAGS=
|
|
778 !endif
|
|
779
|
1330
|
780 ########################### Determine generic includes/defines/flags.
|
|
781
|
2951
|
782 INCLUDES=-I$(NT)\inc -I$(SRC) $(OPT_INCLUDES)
|
1330
|
783
|
2951
|
784 DEFINES=$(OPT_DEFINES) \
|
|
785 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
|
1330
|
786 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
|
|
787
|
872
|
788 CFLAGS_NO_OPT=-nologo -W3 -DSTRICT $(DEBUG_FLAGS_COMPILE)
|
|
789
|
|
790 CFLAGS_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS)
|
826
|
791 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG)
|
|
792
|
872
|
793 CFLAGS_CDECL_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS_CDECL)
|
|
794 CFLAGS_CDECL=$(CFLAGS_CDECL_NO_LIB) $(C_LIBFLAG)
|
|
795
|
1330
|
796 ########################### Determine flags for XEmacs object files.
|
428
|
797
|
|
798 # This may not exist
|
|
799 !if "$(emacs_beta_version)" != ""
|
496
|
800 !if "$(emacs_is_beta)" != ""
|
428
|
801 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
|
496
|
802 !else
|
|
803 EMACS_PATCH_LEVEL=-DEMACS_PATCH_LEVEL=$(emacs_beta_version)
|
|
804 !endif
|
|
805 !endif
|
428
|
806
|
1203
|
807 TEMACS_CPP_FLAGS_NO_CFLAGS=-c $(CPLUSPLUS_COMPILE_FLAGS) \
|
1330
|
808 $(INCLUDES) $(DEFINES) \
|
428
|
809 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
|
|
810 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
|
1330
|
811 $(EMACS_BETA_VERSION) $(EMACS_PATCH_LEVEL) \
|
442
|
812 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
|
2106
|
813 !if defined(xemacs_extra_name)
|
|
814 -DXEMACS_EXTRA_NAME=\"$(xemacs_extra_name:"=)\" \
|
|
815 !endif
|
428
|
816 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
|
|
817 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
|
872
|
818 TEMACS_CPP_FLAGS=$(CFLAGS) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
|
|
819 TEMACS_CPP_CDECL_FLAGS=$(CFLAGS_CDECL) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
|
428
|
820
|
1330
|
821 ########################### Determine XEmacs object files.
|
428
|
822
|
2951
|
823 TEMACS_COMMON_OBJS= \
|
|
824 $(OPT_OBJS)\
|
428
|
825 $(OUTDIR)\abbrev.obj \
|
|
826 $(OUTDIR)\alloc.obj \
|
851
|
827 $(OUTDIR)\alloca.obj \
|
428
|
828 $(OUTDIR)\blocktype.obj \
|
|
829 $(OUTDIR)\buffer.obj \
|
|
830 $(OUTDIR)\bytecode.obj \
|
|
831 $(OUTDIR)\callint.obj \
|
|
832 $(OUTDIR)\casefiddle.obj \
|
|
833 $(OUTDIR)\casetab.obj \
|
|
834 $(OUTDIR)\chartab.obj \
|
|
835 $(OUTDIR)\cmdloop.obj \
|
|
836 $(OUTDIR)\cmds.obj \
|
|
837 $(OUTDIR)\console-stream.obj \
|
|
838 $(OUTDIR)\console.obj \
|
|
839 $(OUTDIR)\data.obj \
|
|
840 $(OUTDIR)\device.obj \
|
|
841 $(OUTDIR)\dired.obj \
|
|
842 $(OUTDIR)\doc.obj \
|
|
843 $(OUTDIR)\doprnt.obj \
|
|
844 $(OUTDIR)\dragdrop.obj \
|
|
845 $(OUTDIR)\dynarr.obj \
|
|
846 $(OUTDIR)\editfns.obj \
|
|
847 $(OUTDIR)\elhash.obj \
|
|
848 $(OUTDIR)\emacs.obj \
|
1754
|
849 $(OUTDIR)\emodules.obj \
|
428
|
850 $(OUTDIR)\eval.obj \
|
|
851 $(OUTDIR)\event-stream.obj \
|
|
852 $(OUTDIR)\events.obj \
|
|
853 $(OUTDIR)\extents.obj \
|
|
854 $(OUTDIR)\faces.obj \
|
|
855 $(OUTDIR)\file-coding.obj \
|
|
856 $(OUTDIR)\fileio.obj \
|
|
857 $(OUTDIR)\filemode.obj \
|
|
858 $(OUTDIR)\floatfns.obj \
|
|
859 $(OUTDIR)\fns.obj \
|
|
860 $(OUTDIR)\font-lock.obj \
|
|
861 $(OUTDIR)\frame.obj \
|
3092
|
862 $(OUTDIR)\gc.obj \
|
428
|
863 $(OUTDIR)\general.obj \
|
442
|
864 $(OUTDIR)\getloadavg.obj \
|
428
|
865 $(OUTDIR)\glyphs.obj \
|
|
866 $(OUTDIR)\glyphs-eimage.obj \
|
587
|
867 $(OUTDIR)\glyphs-shared.obj \
|
428
|
868 $(OUTDIR)\glyphs-widget.obj \
|
|
869 $(OUTDIR)\gui.obj \
|
|
870 $(OUTDIR)\gutter.obj \
|
|
871 $(OUTDIR)\hash.obj \
|
|
872 $(OUTDIR)\indent.obj \
|
|
873 $(OUTDIR)\imgproc.obj \
|
|
874 $(OUTDIR)\insdel.obj \
|
|
875 $(OUTDIR)\intl.obj \
|
771
|
876 $(OUTDIR)\intl-win32.obj \
|
|
877 $(OUTDIR)\intl-encap-win32.obj \
|
|
878 $(OUTDIR)\intl-auto-encap-win32.obj \
|
428
|
879 $(OUTDIR)\keymap.obj \
|
872
|
880 $(OUTDIR)\libinterface.obj \
|
428
|
881 $(OUTDIR)\line-number.obj \
|
|
882 $(OUTDIR)\lread.obj \
|
|
883 $(OUTDIR)\lstream.obj \
|
|
884 $(OUTDIR)\macros.obj \
|
|
885 $(OUTDIR)\marker.obj \
|
|
886 $(OUTDIR)\md5.obj \
|
|
887 $(OUTDIR)\minibuf.obj \
|
872
|
888 # #### Leave the next one out when integrating my working ws
|
428
|
889 $(OUTDIR)\nt.obj \
|
|
890 $(OUTDIR)\ntplay.obj \
|
|
891 $(OUTDIR)\objects.obj \
|
|
892 $(OUTDIR)\opaque.obj \
|
|
893 $(OUTDIR)\print.obj \
|
|
894 $(OUTDIR)\process.obj \
|
|
895 $(OUTDIR)\process-nt.obj \
|
|
896 $(OUTDIR)\profile.obj \
|
|
897 $(OUTDIR)\rangetab.obj \
|
|
898 $(OUTDIR)\realpath.obj \
|
|
899 $(OUTDIR)\redisplay-output.obj \
|
|
900 $(OUTDIR)\redisplay.obj \
|
|
901 $(OUTDIR)\regex.obj \
|
|
902 $(OUTDIR)\search.obj \
|
|
903 $(OUTDIR)\select.obj \
|
|
904 $(OUTDIR)\signal.obj \
|
|
905 $(OUTDIR)\sound.obj \
|
|
906 $(OUTDIR)\specifier.obj \
|
|
907 $(OUTDIR)\strftime.obj \
|
|
908 $(OUTDIR)\symbols.obj \
|
|
909 $(OUTDIR)\syntax.obj \
|
|
910 $(OUTDIR)\sysdep.obj \
|
771
|
911 $(OUTDIR)\text.obj \
|
428
|
912 $(OUTDIR)\tparam.obj \
|
|
913 $(OUTDIR)\undo.obj \
|
771
|
914 $(OUTDIR)\unicode.obj \
|
428
|
915 $(OUTDIR)\widget.obj \
|
|
916 $(OUTDIR)\window.obj \
|
442
|
917 $(OUTDIR)\win32.obj
|
428
|
918
|
2951
|
919 TEMACS_OBJS= \
|
|
920 $(TEMACS_COMMON_OBJS) \
|
|
921 $(TEMACS_MODULE_OBJS)
|
|
922
|
|
923 TEMACS_DOC_SOURCES= \
|
|
924 $(TEMACS_COMMON_OBJS) \
|
|
925 $(TEMACS_MODULE_SRCS)
|
|
926
|
1330
|
927 #########################################################################
|
|
928 ## Implicit rules ##
|
|
929 #########################################################################
|
|
930
|
428
|
931 # Rules
|
|
932
|
|
933 .SUFFIXES:
|
430
|
934 .SUFFIXES: .c .obj .texi .info
|
428
|
935
|
872
|
936 # nmake rule with batching:
|
1330
|
937 #{$(SRC)}.c{$(OUTDIR)}.obj:
|
872
|
938 # echo $< >> $(OUTDIR)\listfile.tmp
|
|
939
|
1330
|
940 {$(SRC)}.c{$(OUTDIR)}.obj:
|
872
|
941 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ $(BROWSERFLAGS)
|
428
|
942
|
1330
|
943 #########################################################################
|
|
944 ## Subsidiary dependency rules ##
|
|
945 #########################################################################
|
|
946
|
|
947 ###################### Include auto-generated dependencies.
|
|
948
|
|
949 #
|
|
950 # Whether to use dependency information generated by make-src-depend
|
|
951 #
|
|
952 !if $(DEPEND) && exist("$(SRC)\depend")
|
3054
|
953 ! if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"]
|
1330
|
954 ! endif
|
|
955 # This perl script used to be inline but that caused too many quoting problems
|
|
956 ! if [perl $(NT)\make-nt-depend -s=$(SRC) -c=$(NT) -o=$(OUTDIR) < $(SRC)\depend > $(OUTDIR)\depend.tmp]
|
|
957 ! endif
|
|
958 ! include "$(OUTDIR)\depend.tmp"
|
|
959 !else
|
|
960 ! if [echo WARNING: Compiling without dependency information.]
|
|
961 ! endif
|
|
962 !endif
|
|
963
|
|
964 ###################### Build the output directory structure if not same as
|
|
965 ###################### source.
|
|
966
|
|
967 !if $(SEPARATE_BUILD)
|
|
968 # #### `if not exist' does not like the quotes around file names.
|
|
969 # But what if one of them has spaces? Fucking Microsoft!
|
3054
|
970 ! if [if not exist $(BLDROOT) mkdir "$(BLDROOT)"]
|
1330
|
971 ! endif
|
3054
|
972 ! if [if not exist $(BLDLIB_SRC) mkdir "$(BLDLIB_SRC)"]
|
1330
|
973 ! endif
|
3054
|
974 ! if [if not exist $(BLDNT) mkdir "$(BLDNT)"]
|
1330
|
975 ! endif
|
3054
|
976 ! if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"]
|
1330
|
977 ! endif
|
3054
|
978 ! if [if not exist $(BLDSRC) mkdir "$(BLDSRC)"]
|
1330
|
979 ! endif
|
|
980 # No point.
|
3054
|
981 # ! if [if not exist "$(BLDROOT)" mkdir "$(BLDROOT)"]
|
1330
|
982 # ! endif
|
|
983 !endif
|
|
984
|
|
985 ###################### Random .obj dependencies
|
|
986
|
872
|
987 # An explicit rule looks like this ($< works only in implicit rules):
|
1330
|
988 # $(OUTDIR)\foo.obj: $(SRC)\foo.c
|
|
989 # $(CCV) $(TEMACS_CPP_FLAGS) $(SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
|
442
|
990
|
1330
|
991 $(OUTDIR)\emacs.obj: $(SRCROOT)\version.sh
|
872
|
992
|
1330
|
993 $(OUTDIR)\libinterface.obj: $(SRC)\libinterface.c
|
|
994 $(CCV) $(TEMACS_CPP_CDECL_FLAGS) $(SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
|
428
|
995
|
2951
|
996 $(OUTDIR)\postgresql.obj: $(SRCROOT)\modules\postgresql\postgresql.c
|
|
997 $(CCV) -I$(SRC) $(TEMACS_CPP_FLAGS) $(SRCROOT)\modules\postgresql\postgresql.c -Fo$@ $(BROWSERFLAGS)
|
|
998
|
|
999 $(OUTDIR)\eldap.obj: $(SRCROOT)\modules\ldap\eldap.c
|
|
1000 $(CCV) -I$(SRC) $(TEMACS_CPP_FLAGS) $(SRCROOT)\modules\ldap\eldap.c -Fo$@ $(BROWSERFLAGS)
|
|
1001
|
1330
|
1002 ###################### Generated source files
|
|
1003
|
3054
|
1004 $(OUTDIR):
|
1330
|
1005 -@mkdir $(OUTDIR)
|
872
|
1006
|
1330
|
1007 XEMACS_INCLUDES=\
|
|
1008 $(SRC)\config.h \
|
|
1009 $(SRC)\Emacs.ad.h \
|
|
1010 $(SRC)\paths.h
|
428
|
1011
|
1330
|
1012 # #### Copying is cheap, we should just force these
|
|
1013 $(SRC)\config.h: $(SRC)\config.h.in
|
|
1014 # #### ms must have hired monkeys to design their shell commands. if
|
|
1015 # #### you use xcopy to copy a file from one name to another, it
|
|
1016 # #### PROMPTS you to see if you meant the second as a directory! and
|
|
1017 # #### no switch to mean "no of course, you idiots, it's a file!"
|
2106
|
1018 set COPYCMD=$(COPYCMD)
|
1330
|
1019 @copy $(SRC)\config.h.in $(SRC)\config.h
|
428
|
1020
|
1330
|
1021 #$(SRC)\Emacs.ad.h: $(SRCROOT)\etc\Emacs.ad
|
|
1022 # !"sed -f ad2c.sed < $(SRCROOT)\etc\Emacs.ad > $(SRC)\Emacs.ad.h"
|
872
|
1023
|
1330
|
1024 #$(SRC)\paths.h: $(SRC)\paths.h.in
|
|
1025 # !"cd $(SRC); cp paths.h.in paths.h"
|
|
1026
|
|
1027 $(SRC)\Emacs.ad.h: $(NT)\Emacs.ad.h
|
2106
|
1028 set COPYCMD=$(COPYCMD)
|
1330
|
1029 @$(COPY) $(NT)\Emacs.ad.h $(SRC)
|
872
|
1030
|
1330
|
1031 $(SRC)\paths.h: $(NT)\paths.h
|
2106
|
1032 set COPYCMD=$(COPYCMD)
|
1330
|
1033 @$(COPY) $(NT)\paths.h $(SRC)
|
872
|
1034
|
1330
|
1035
|
|
1036 ###################### lastfile.lib
|
872
|
1037
|
1330
|
1038 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
|
872
|
1039
|
1330
|
1040 LASTFILE=$(OUTDIR)\lastfile.lib
|
|
1041 LASTFILE_SRC=$(SRC)
|
|
1042 LASTFILE_FLAGS=$(CFLAGS) $(CPLUSPLUS_COMPILE_FLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
|
|
1043 LASTFILE_OBJS= \
|
|
1044 $(OUTDIR)\lastfile.obj
|
872
|
1045
|
1330
|
1046 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
|
|
1047 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
|
|
1048
|
|
1049 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
|
|
1050 $(CCV) $(LASTFILE_FLAGS) $(LASTFILE_SRC)\$(@B).c
|
|
1051
|
872
|
1052 !endif
|
|
1053
|
1330
|
1054 ###################### lib-src programs
|
|
1055
|
|
1056 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE
|
|
1057
|
|
1058 #
|
|
1059 # Creating config.values to be used by config.el
|
|
1060 #
|
|
1061 CONFIG_VALUES = $(BLDLIB_SRC)\config.values
|
|
1062 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
|
|
1063 !endif
|
|
1064 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(BLDROOT:\=\\)">>$(CONFIG_VALUES)]
|
|
1065 !endif
|
|
1066 !if [echo srcdir>>$(CONFIG_VALUES) && echo "$(SRCROOT:\=\\)">>$(CONFIG_VALUES)]
|
|
1067 !endif
|
|
1068 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
|
|
1069 !endif
|
|
1070 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
|
1071 !endif
|
|
1072 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
|
|
1073 !endif
|
|
1074 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
|
1075 !endif
|
|
1076 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
|
|
1077 !endif
|
|
1078 # PATH_PACKAGEPATH is already a quoted string.
|
|
1079 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
|
|
1080 !endif
|
|
1081
|
|
1082 LINK_DEPENDENCY_ARGS = -Fe$@ -Fd$* $** -link $(DEBUG_FLAGS_LINK)
|
|
1083 LINK_STANDARD_LIBRARY_ARGS = setargv.obj user32.lib wsock32.lib
|
|
1084
|
1333
|
1085 LIB_SRC_CFLAGS = $(CFLAGS) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES)
|
|
1086
|
1330
|
1087 # Inferred rule
|
|
1088 {$(LIB_SRC)}.c{$(BLDLIB_SRC)}.exe :
|
1333
|
1089 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) $(LINK_STANDARD_LIBRARY_ARGS)
|
1330
|
1090
|
|
1091 # Individual dependencies
|
|
1092 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(SRC)/regex.c
|
|
1093 $(BLDLIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
|
1333
|
1094 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) -stack:0x800000 $(LINK_STANDARD_LIBRARY_ARGS)
|
1330
|
1095
|
|
1096 $(BLDLIB_SRC)/movemail.exe : $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
|
|
1097
|
|
1098 # Minitar uses zlib so just use cdecl to simplify things
|
|
1099 $(BLDLIB_SRC)/minitar.exe : $(NT)/minitar.c
|
2951
|
1100 $(CCV) -I$(SRC) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) $(CFLAGS_CDECL_NO_LIB) -MD $(LINK_DEPENDENCY_ARGS) "$(ZLIB_DIR)\zlib.lib"
|
1330
|
1101
|
|
1102 LIB_SRC_TOOLS = \
|
|
1103 $(BLDLIB_SRC)/etags.exe \
|
|
1104 $(BLDLIB_SRC)/hexl.exe \
|
|
1105 $(BLDLIB_SRC)/i.exe \
|
|
1106 $(BLDLIB_SRC)/winclient.exe \
|
|
1107 $(BLDLIB_SRC)/make-docfile.exe \
|
|
1108 $(BLDLIB_SRC)/mmencode.exe \
|
|
1109 $(BLDLIB_SRC)/movemail.exe \
|
|
1110 $(BLDLIB_SRC)/sorted-doc.exe \
|
|
1111 $(BLDLIB_SRC)/wakeup.exe
|
|
1112 !if $(USE_MINITAR)
|
|
1113 LIB_SRC_TOOLS = \
|
|
1114 $(LIB_SRC_TOOLS) \
|
|
1115 $(BLDLIB_SRC)/minitar.exe
|
428
|
1116 !endif
|
440
|
1117 !if $(USE_PORTABLE_DUMPER)
|
1330
|
1118 LIB_SRC_TOOLS = \
|
|
1119 $(XEMACS_INCLUDES) \
|
|
1120 $(BLDLIB_SRC)/make-dump-id.exe \
|
|
1121 $(LIB_SRC_TOOLS)
|
442
|
1122 !endif
|
428
|
1123
|
1330
|
1124 ########################### Create the Installation file
|
428
|
1125
|
1330
|
1126 $(BLDROOT)\Installation:: installation
|
440
|
1127
|
442
|
1128 installation::
|
1330
|
1129 @echo OS version:>$(BLDROOT)\Installation
|
|
1130 @ver >> $(BLDROOT)\Installation
|
|
1131 @type >> $(BLDROOT)\Installation <<
|
428
|
1132 !if defined(OS)
|
|
1133 OS: $(OS)
|
|
1134 !endif
|
|
1135
|
1370
|
1136 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename) $(xemacs_extra_name:"=) configured for `$(EMACS_CONFIGURATION)'.
|
428
|
1137
|
1052
|
1138 Building XEmacs using "$(MAKE:\=\\)".
|
|
1139 Building XEmacs using make flags "$(MAKEFLAGS)".
|
1330
|
1140 Building XEmacs in source tree "$(SRCROOT:\=\\)".
|
|
1141 !if $(SEPARATE_BUILD)
|
|
1142 Building XEmacs into compiled tree "$(BLDROOT:\=\\)".
|
|
1143 !endif
|
428
|
1144 !if defined(CCV)
|
1333
|
1145 For src, using compiler "$(CC) $(TEMACS_CPP_FLAGS)".
|
|
1146 For lib-src, using compiler "$(CC) $(LIB_SRC_CFLAGS)".
|
428
|
1147 !endif
|
1203
|
1148 !if $(CPLUSPLUS_COMPILE)
|
|
1149 Compiling as C++.
|
|
1150 !endif
|
1052
|
1151 Installing XEmacs in "$(INSTALL_DIR:\=\\)".
|
|
1152 Package path is $(PATH_PACKAGEPATH).
|
428
|
1153 !if $(INFODOCK)
|
|
1154 Building InfoDock.
|
|
1155 !endif
|
442
|
1156 !if $(HAVE_MS_WINDOWS)
|
428
|
1157 Compiling in support for Microsoft Windows native GUI.
|
|
1158 !endif
|
771
|
1159 !if $(MULE)
|
|
1160 Compiling in international (MULE) support.
|
428
|
1161 !endif
|
488
|
1162 !if $(HAVE_GTK)
|
|
1163 --------------------------------------------------------------------
|
1315
|
1164 NOTE: You specified HAVE_GTK=1, but we are compiling WITHOUT GTK support.
|
|
1165 NOTE: gtk-xemacs is not currently supported on MS Windows (mingw or msvc).
|
|
1166 NOTE: Yes, we know that gtk has been ported to native MS Windows, but
|
|
1167 NOTE: XEmacs is not yet ready to use that port.
|
488
|
1168 --------------------------------------------------------------------
|
|
1169 !endif
|
428
|
1170 !if $(HAVE_XPM)
|
|
1171 Compiling in support for XPM images.
|
|
1172 !else
|
|
1173 --------------------------------------------------------------------
|
1315
|
1174 NOTE: Compiling without XPM support.
|
|
1175 NOTE: You should strongly consider installing XPM.
|
|
1176 NOTE: Otherwise toolbars and other graphics will look suboptimal.
|
|
1177 NOTE: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
|
428
|
1178 --------------------------------------------------------------------
|
|
1179 !endif
|
|
1180 !if $(HAVE_GIF)
|
|
1181 Compiling in support for GIF images.
|
|
1182 !endif
|
|
1183 !if $(HAVE_PNG)
|
|
1184 Compiling in support for PNG images.
|
|
1185 !else
|
|
1186 --------------------------------------------------------------------
|
1315
|
1187 NOTE: Compiling without PNG image support.
|
|
1188 NOTE: You should strongly consider installing the PNG libraries.
|
|
1189 NOTE: Otherwise certain images and glyphs may not display.
|
|
1190 NOTE: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
|
428
|
1191 --------------------------------------------------------------------
|
|
1192 !endif
|
|
1193 !if $(HAVE_TIFF)
|
|
1194 Compiling in support for TIFF images.
|
|
1195 !endif
|
|
1196 !if $(HAVE_JPEG)
|
|
1197 Compiling in support for JPEG images.
|
|
1198 !endif
|
|
1199 !if $(HAVE_XFACE)
|
|
1200 Compiling in support for X-Face message headers.
|
|
1201 !endif
|
771
|
1202 !if $(HAVE_ZLIB)
|
|
1203 Compiling in support for GZIP compression/decompression.
|
|
1204 !endif
|
428
|
1205 !if $(HAVE_TOOLBARS)
|
|
1206 Compiling in support for toolbars.
|
|
1207 !endif
|
|
1208 !if $(HAVE_DIALOGS)
|
|
1209 Compiling in support for dialogs.
|
|
1210 !endif
|
|
1211 !if $(HAVE_WIDGETS)
|
|
1212 Compiling in support for widgets.
|
|
1213 !endif
|
2951
|
1214 !if $(HAVE_BIGNUM)
|
|
1215 Compiling in support for arbitrary-precision numbers.
|
|
1216 !endif
|
|
1217 !if $(HAVE_DATABASE)
|
|
1218 !if $(BUILD_DATABASE_SHARED)
|
|
1219 Compiling in support for Berkeley Databases (DLL version).
|
|
1220 !else
|
|
1221 Compiling in support for Berkeley Databases (static-library version).
|
|
1222 !endif
|
|
1223 !endif
|
|
1224 !if $(HAVE_POSTGRESQL)
|
|
1225 Compiling in support for PostgreSQL.
|
|
1226 !endif
|
|
1227 !if $(HAVE_LDAP)
|
|
1228 Compiling in support for LDAP.
|
|
1229 !endif
|
428
|
1230 !if $(HAVE_NATIVE_SOUND)
|
|
1231 Compiling in support for native sounds.
|
|
1232 !endif
|
|
1233 !if $(USE_UNION_TYPE)
|
|
1234 Using union type for Lisp object storage.
|
1315
|
1235 NOTE: ---------------------------------------------------------
|
|
1236 NOTE: This tends to trigger compiler bugs, especially when combined
|
|
1237 NOTE: with MULE and ERROR_CHECKING. Crashes in pdump have recently
|
|
1238 NOTE: been observed using Visual C++ in combination with union type,
|
|
1239 NOTE: MULE, and ERROR_CHECKING.
|
|
1240 NOTE: ---------------------------------------------------------
|
428
|
1241 !endif
|
438
|
1242 !if $(USE_PORTABLE_DUMPER)
|
|
1243 Using portable dumper.
|
|
1244 !endif
|
440
|
1245 !if $(USE_SYSTEM_MALLOC)
|
|
1246 Using system malloc.
|
|
1247 !endif
|
|
1248 !if $(USE_CRTDLL)
|
942
|
1249 Using DLL version of C runtime library.
|
440
|
1250 !endif
|
814
|
1251 !if $(ERROR_CHECK_ALL)
|
1203
|
1252 Compiling in extra internal error-checking.
|
1315
|
1253 NOTE: ---------------------------------------------------------
|
|
1254 NOTE: Compiling in support for runtime error-checking.
|
|
1255 NOTE: XEmacs will run noticeably more slowly as a result.
|
|
1256 NOTE: Error-checking is on by default for XEmacs beta releases.
|
|
1257 NOTE: ---------------------------------------------------------
|
814
|
1258 !endif
|
428
|
1259 !if $(DEBUG_XEMACS)
|
814
|
1260 Compiling in debugging support (no slowdown).
|
|
1261 !endif
|
|
1262 !if $(OPTIMIZED_BUILD)
|
|
1263 Compiling with optimization.
|
428
|
1264 !endif
|
442
|
1265 !if $(QUICK_BUILD)
|
|
1266 Disabling non-essential build actions. Use with care!
|
|
1267 !endif
|
942
|
1268 !if $(USE_KKCC)
|
|
1269 Using new experimental GC algorithms.
|
|
1270 !endif
|
2720
|
1271 !if $(MC_ALLOC)
|
|
1272 Using new experimental allocator.
|
|
1273 !endif
|
3092
|
1274 !if $(NEW_GC)
|
|
1275 Using new experimental incremental garbage collector.
|
|
1276 !endif
|
428
|
1277 <<NOKEEP
|
|
1278 @echo --------------------------------------------------------------------
|
1330
|
1279 @type $(BLDROOT)\Installation
|
428
|
1280 @echo --------------------------------------------------------------------
|
|
1281
|
1330
|
1282 #########################################################################
|
|
1283 ## Primary rebuilding process ##
|
|
1284 #########################################################################
|
|
1285
|
|
1286 ########################### Definitions for linking temacs.exe
|
|
1287
|
|
1288 !if !$(USE_PORTABLE_DUMPER)
|
|
1289 TEMACS_ENTRYPOINT=-entry:_start
|
|
1290 !else
|
|
1291 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
|
|
1292 !endif
|
|
1293
|
|
1294 TEMACS_BROWSE=$(BLDSRC)\temacs.bsc
|
2951
|
1295 TEMACS_LIBS=$(LASTFILE) $(OPT_LIBS) \
|
1330
|
1296 oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \
|
|
1297 shell32.lib wsock32.lib netapi32.lib winmm.lib winspool.lib ole32.lib \
|
|
1298 mpr.lib uuid.lib imm32.lib $(LIBC_LIB)
|
2524
|
1299 TEMACS_COMMON_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS_LINK) \
|
1333
|
1300 -base:0x1000000 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows \
|
1330
|
1301 -heap:0x00100000 -nodefaultlib $(PROFILE_FLAGS) setargv.obj
|
2524
|
1302 TEMACS_LFLAGS=$(TEMACS_COMMON_LFLAGS) \
|
|
1303 -pdb:$(BLDSRC)\temacs.pdb -map:$(BLDSRC)\temacs.map
|
|
1304 XEMACS_LFLAGS=$(TEMACS_COMMON_LFLAGS) \
|
|
1305 -pdb:$(BLDSRC)\xemacs.pdb -map:$(BLDSRC)\xemacs.map
|
1330
|
1306
|
|
1307 ########################### Definitions for running temacs.exe/xemacs.exe
|
|
1308
|
|
1309 RAW_EXE=$(BLDSRC)\temacs.exe
|
|
1310 DUMP_TARGET = $(BLDSRC)\xemacs.exe
|
|
1311 DO_TEMACS = "$(BLDLIB_SRC)\i" "$(RAW_EXE)"
|
|
1312 DO_XEMACS = "$(BLDLIB_SRC)\i" "$(DUMP_TARGET)"
|
|
1313
|
|
1314 BATCH = -no-packages -batch
|
|
1315 BATCH_PACKAGES = -vanilla -batch
|
|
1316 TEMACS_BATCH = $(DO_TEMACS) -nd $(BATCH)
|
|
1317 XEMACS_BATCH = $(DO_XEMACS) $(BATCH)
|
|
1318 XEMACS_BATCH_PACKAGES = $(DO_XEMACS) $(BATCH_PACKAGES)
|
|
1319 temacs_loadup_args = -l $(LISP)/loadup.el
|
|
1320 dump_temacs_args = $(temacs_loadup_args) dump
|
|
1321 run_temacs_args = $(temacs_loadup_args) run-temacs
|
|
1322 dump_temacs = $(TEMACS_BATCH) $(dump_temacs_args)
|
|
1323
|
|
1324 ########################### Build rules
|
|
1325
|
1346
|
1326 ## Use this rule to build the complete system. We need both update-elc
|
|
1327 ## and update-elc-2 due to the sideways dependency of NEEDTODUMP. See
|
|
1328 ## src/Makefile.in.in for a more detailed discussion of this.
|
|
1329
|
3054
|
1330 all: installation $(OUTDIR) $(LIB_SRC_TOOLS) \
|
1346
|
1331 update-elc update-elc-2 \
|
|
1332 $(LISP)/finder-inf.el load-shadows info
|
1330
|
1333
|
|
1334 $(TEMACS_BROWSE): $(TEMACS_OBJS)
|
|
1335 @dir /b/s $(OUTDIR)\*.sbr > $(OUTDIR)\bscmake.tmp
|
|
1336 bscmake -nologo -o$(TEMACS_BROWSE) @$(OUTDIR)\bscmake.tmp
|
|
1337 -$(DEL) $(OUTDIR)\bscmake.tmp
|
|
1338
|
1346
|
1339 ## (1) Compile all dependencies of the XEmacs executable
|
1330
|
1340
|
|
1341 $(OUTDIR)\dump-id.obj : $(BLDSRC)\dump-id.c
|
|
1342 $(CCV) $(TEMACS_CPP_FLAGS) $(BLDSRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
|
|
1343
|
|
1344 $(BLDSRC)\dump-id.c : $(BLDLIB_SRC)/make-dump-id.exe $(TEMACS_OBJS)
|
|
1345 cd $(BLDSRC)
|
|
1346 $(BLDLIB_SRC)\make-dump-id.exe
|
|
1347
|
|
1348 $(OUTDIR)\temacs.res: $(NT)\xemacs.rc
|
|
1349 cd $(NT)
|
|
1350 rc -Fo$@ xemacs.rc
|
|
1351
|
1346
|
1352 ## (2) Link the XEmacs executable
|
|
1353
|
1330
|
1354 !if $(USE_PORTABLE_DUMPER)
|
|
1355 TEMACS_DUMP_DEP = $(OUTDIR)\dump-id.obj
|
|
1356 !else
|
|
1357 TEMACS_DUMP_DEP = $(OUTDIR)\temacs.res
|
|
1358 !endif
|
|
1359
|
|
1360 $(RAW_EXE): $(TEMACS_OBJS) $(LASTFILE) $(TEMACS_DUMP_DEP)
|
2951
|
1361 @echo link $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_DUMP_DEP) $(TEMACS_LIBS)
|
1330
|
1362 link.exe @<<
|
|
1363 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_DUMP_DEP) $(TEMACS_LIBS)
|
|
1364 <<
|
|
1365
|
|
1366 !if $(DEBUG_XEMACS)
|
|
1367 $(RAW_EXE): $(TEMACS_BROWSE)
|
|
1368 !endif
|
|
1369
|
1346
|
1370 ## (3) Update the .elc's needed for dumping
|
|
1371
|
|
1372 update-elc: $(RAW_EXE)
|
|
1373 $(TEMACS_BATCH) -l $(LISP)\update-elc.el
|
|
1374
|
|
1375 ## This file is touched by update-elc.el when redumping is necessary.
|
|
1376 $(BLDSRC)\NEEDTODUMP:
|
|
1377 @echo >$(BLDSRC)\NEEDTODUMP
|
|
1378
|
|
1379 ## (4) Build the DOC file
|
1330
|
1380
|
|
1381 DOC=$(BLDLIB_SRC)\DOC
|
|
1382
|
|
1383 docfile ::
|
|
1384 if exist $(DOC) $(DEL) $(DOC)
|
|
1385 docfile :: $(DOC)
|
|
1386
|
|
1387 # We need to write the QUICK_BUILD stuff as-is (and not just have no
|
2951
|
1388 # dependencies for DOC) because DOC needs TEMACS_DOC_SOURCES as dependencies to
|
1330
|
1389 # get $(**) right. The `touch' is needed because of the way nmake
|
|
1390 # calculates dependencies; see comments in src/Makefile.in.in.
|
2951
|
1391 $(DOC): $(BLDLIB_SRC)\make-docfile.exe $(BLDSRC)\NEEDTODUMP $(TEMACS_DOC_SOURCES)
|
1330
|
1392 !if $(QUICK_BUILD)
|
|
1393 if not exist $(DOC) $(TEMACS_BATCH) -l $(LISP)\make-docfile.el -- -o $(DOC) -i $(SRCROOT)\site-packages @<<
|
|
1394 $(**)
|
|
1395 <<
|
|
1396 -touch $(DOC)
|
|
1397 !else
|
|
1398 $(TEMACS_BATCH) -l $(LISP)\make-docfile.el -- -o $(DOC) -i $(SRCROOT)\site-packages @<<
|
|
1399 $(**)
|
|
1400 <<
|
|
1401 !endif
|
|
1402
|
1346
|
1403 ## (5) Dump
|
1330
|
1404
|
|
1405 !if $(USE_PORTABLE_DUMPER)
|
|
1406 $(DUMP_TARGET): $(NT)\xemacs.rc
|
|
1407 !endif
|
|
1408
|
|
1409 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
|
|
1410 # requirements have changed.
|
|
1411
|
|
1412 $(DUMP_TARGET): $(DOC) $(RAW_EXE) $(BLDSRC)\NEEDTODUMP
|
|
1413 $(TEMACS_BATCH) -l $(LISP)\loadup.el dump
|
|
1414 !if $(USE_PORTABLE_DUMPER)
|
|
1415 cd $(BLDSRC)
|
|
1416 rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
|
|
1417 # Make the resource section read/write since almost all of it is the dump
|
|
1418 # data which needs to be writable. This avoids having to copy it.
|
|
1419 link.exe @<<
|
2524
|
1420 $(XEMACS_LFLAGS) -section:.rsrc,rw -out:$(BLDSRC)\xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
|
1330
|
1421 <<
|
|
1422 -$(DEL) $(BLDSRC)\xemacs.dmp
|
|
1423 !endif
|
|
1424
|
1346
|
1425 ## (6) Update the remaining .elc's, post-dumping
|
|
1426
|
|
1427 update-elc-2: $(DUMP_TARGET)
|
1330
|
1428 $(XEMACS_BATCH) -no-autoloads -l update-elc-2.el -f batch-update-elc-2 $(LISP)
|
|
1429
|
1346
|
1430 ## (7) Other random stuff
|
|
1431
|
|
1432 $(LISP)/finder-inf.el: update-elc-2
|
1330
|
1433 !if !$(QUICK_BUILD)
|
|
1434 @echo Building finder database ...
|
|
1435 $(XEMACS_BATCH) -eval "(setq finder-compile-keywords-quiet t)" \
|
|
1436 -l finder -f finder-compile-keywords
|
|
1437 @echo Building finder database ...(done)
|
|
1438 !endif
|
|
1439
|
1346
|
1440 load-shadows: update-elc-2
|
1330
|
1441 !if !$(QUICK_BUILD)
|
|
1442 @echo Testing for Lisp shadows ...
|
|
1443 @$(XEMACS_BATCH) -f list-load-path-shadows
|
|
1444 !endif
|
|
1445
|
2948
|
1446 ###################### Building the info files
|
|
1447
|
|
1448 !if !defined(MAKEINFO)
|
|
1449 MAKEINFO=$(XEMACS_BATCH_PACKAGES) -l texinfmt -f batch-texinfo-format
|
|
1450 !endif
|
|
1451
|
|
1452 MANDIR = $(SRCROOT)\man
|
|
1453 INFODIR = $(SRCROOT)\info
|
|
1454 INFO_FILES= \
|
|
1455 $(INFODIR)\cl.info \
|
|
1456 $(INFODIR)\custom.info \
|
|
1457 $(INFODIR)\emodules.info \
|
|
1458 $(INFODIR)\external-widget.info \
|
|
1459 $(INFODIR)\info.info \
|
|
1460 $(INFODIR)\standards.info \
|
|
1461 $(INFODIR)\term.info \
|
|
1462 $(INFODIR)\termcap.info \
|
|
1463 $(INFODIR)\texinfo.info \
|
|
1464 $(INFODIR)\widget.info \
|
|
1465 $(INFODIR)\xemacs-faq.info \
|
|
1466 $(INFODIR)\xemacs.info \
|
|
1467 $(INFODIR)\lispref.info \
|
|
1468 $(INFODIR)\new-users-guide.info \
|
|
1469 $(INFODIR)\internals.info
|
|
1470
|
|
1471 {$(MANDIR)}.texi{$(INFODIR)}.info:
|
|
1472 cd $(MANDIR)
|
|
1473 $(MAKEINFO) $(**F)
|
|
1474
|
|
1475 XEMACS_SRCS = \
|
|
1476 $(MANDIR)\xemacs\abbrevs.texi \
|
|
1477 $(MANDIR)\xemacs\basic.texi \
|
|
1478 $(MANDIR)\xemacs\buffers.texi \
|
|
1479 $(MANDIR)\xemacs\building.texi \
|
|
1480 $(MANDIR)\xemacs\calendar.texi \
|
|
1481 $(MANDIR)\xemacs\cmdargs.texi \
|
|
1482 $(MANDIR)\xemacs\custom.texi \
|
|
1483 $(MANDIR)\xemacs\display.texi \
|
|
1484 $(MANDIR)\xemacs\entering.texi \
|
|
1485 $(MANDIR)\xemacs\files.texi \
|
|
1486 $(MANDIR)\xemacs\fixit.texi \
|
|
1487 $(MANDIR)\xemacs\frame.texi \
|
|
1488 $(MANDIR)\xemacs\glossary.texi \
|
|
1489 $(MANDIR)\xemacs\gnu.texi \
|
|
1490 $(MANDIR)\xemacs\help.texi \
|
|
1491 $(MANDIR)\xemacs\indent.texi \
|
|
1492 $(MANDIR)\xemacs\keystrokes.texi \
|
|
1493 $(MANDIR)\xemacs\killing.texi \
|
|
1494 $(MANDIR)\xemacs\m-x.texi \
|
|
1495 $(MANDIR)\xemacs\major.texi \
|
|
1496 $(MANDIR)\xemacs\mark.texi \
|
|
1497 $(MANDIR)\xemacs\menus.texi \
|
|
1498 $(MANDIR)\xemacs\mini.texi \
|
|
1499 $(MANDIR)\xemacs\misc.texi \
|
|
1500 $(MANDIR)\xemacs\mouse.texi \
|
|
1501 $(MANDIR)\xemacs\mule.texi \
|
|
1502 $(MANDIR)\xemacs\new.texi \
|
|
1503 $(MANDIR)\xemacs\packages.texi \
|
|
1504 $(MANDIR)\xemacs\picture.texi \
|
|
1505 $(MANDIR)\xemacs\programs.texi \
|
|
1506 $(MANDIR)\xemacs\reading.texi \
|
|
1507 $(MANDIR)\xemacs\regs.texi \
|
|
1508 $(MANDIR)\xemacs\search.texi \
|
|
1509 $(MANDIR)\xemacs\sending.texi \
|
|
1510 $(MANDIR)\xemacs\startup.texi \
|
|
1511 $(MANDIR)\xemacs\text.texi \
|
|
1512 $(MANDIR)\xemacs\trouble.texi \
|
|
1513 $(MANDIR)\xemacs\undo.texi \
|
|
1514 $(MANDIR)\xemacs\windows.texi \
|
|
1515 $(MANDIR)\xemacs\xemacs.texi
|
|
1516
|
|
1517 LISPREF_SRCS = \
|
|
1518 $(MANDIR)\lispref\abbrevs.texi \
|
|
1519 $(MANDIR)\lispref\annotations.texi \
|
|
1520 $(MANDIR)\lispref\back.texi \
|
|
1521 $(MANDIR)\lispref\backups.texi \
|
|
1522 $(MANDIR)\lispref\buffers.texi \
|
|
1523 $(MANDIR)\lispref\building.texi \
|
|
1524 $(MANDIR)\lispref\commands.texi \
|
|
1525 $(MANDIR)\lispref\compile.texi \
|
|
1526 $(MANDIR)\lispref\consoles-devices.texi \
|
|
1527 $(MANDIR)\lispref\control.texi \
|
|
1528 $(MANDIR)\lispref\customize.texi \
|
|
1529 $(MANDIR)\lispref\databases.texi \
|
|
1530 $(MANDIR)\lispref\debugging.texi \
|
|
1531 $(MANDIR)\lispref\dialog.texi \
|
|
1532 $(MANDIR)\lispref\display.texi \
|
|
1533 $(MANDIR)\lispref\dragndrop.texi \
|
|
1534 $(MANDIR)\lispref\edebug-inc.texi \
|
|
1535 $(MANDIR)\lispref\edebug.texi \
|
|
1536 $(MANDIR)\lispref\errors.texi \
|
|
1537 $(MANDIR)\lispref\eval.texi \
|
|
1538 $(MANDIR)\lispref\extents.texi \
|
|
1539 $(MANDIR)\lispref\faces.texi \
|
|
1540 $(MANDIR)\lispref\files.texi \
|
|
1541 $(MANDIR)\lispref\frames.texi \
|
|
1542 $(MANDIR)\lispref\functions.texi \
|
|
1543 $(MANDIR)\lispref\glyphs.texi \
|
|
1544 $(MANDIR)\lispref\hash-tables.texi \
|
|
1545 $(MANDIR)\lispref\help.texi \
|
|
1546 $(MANDIR)\lispref\hooks.texi \
|
|
1547 $(MANDIR)\lispref\index.texi \
|
|
1548 $(MANDIR)\lispref\internationalization.texi \
|
|
1549 $(MANDIR)\lispref\intro.texi \
|
|
1550 $(MANDIR)\lispref\keymaps.texi \
|
|
1551 $(MANDIR)\lispref\ldap.texi \
|
|
1552 $(MANDIR)\lispref\lispref.texi \
|
|
1553 $(MANDIR)\lispref\lists.texi \
|
|
1554 $(MANDIR)\lispref\loading.texi \
|
|
1555 $(MANDIR)\lispref\locals.texi \
|
|
1556 $(MANDIR)\lispref\macros.texi \
|
|
1557 $(MANDIR)\lispref\maps.texi \
|
|
1558 $(MANDIR)\lispref\markers.texi \
|
|
1559 $(MANDIR)\lispref\menus.texi \
|
|
1560 $(MANDIR)\lispref\minibuf.texi \
|
|
1561 $(MANDIR)\lispref\modes.texi \
|
|
1562 $(MANDIR)\lispref\mouse.texi \
|
|
1563 $(MANDIR)\lispref\mule.texi \
|
|
1564 $(MANDIR)\lispref\numbers.texi \
|
|
1565 $(MANDIR)\lispref\objects.texi \
|
|
1566 $(MANDIR)\lispref\os.texi \
|
|
1567 $(MANDIR)\lispref\positions.texi \
|
|
1568 $(MANDIR)\lispref\processes.texi \
|
|
1569 $(MANDIR)\lispref\range-tables.texi \
|
|
1570 $(MANDIR)\lispref\scrollbars.texi \
|
|
1571 $(MANDIR)\lispref\searching.texi \
|
|
1572 $(MANDIR)\lispref\sequences.texi \
|
|
1573 $(MANDIR)\lispref\specifiers.texi \
|
|
1574 $(MANDIR)\lispref\streams.texi \
|
|
1575 $(MANDIR)\lispref\strings.texi \
|
|
1576 $(MANDIR)\lispref\symbols.texi \
|
|
1577 $(MANDIR)\lispref\syntax.texi \
|
|
1578 $(MANDIR)\lispref\text.texi \
|
|
1579 $(MANDIR)\lispref\tips.texi \
|
|
1580 $(MANDIR)\lispref\toolbar.texi \
|
|
1581 $(MANDIR)\lispref\tooltalk.texi \
|
|
1582 $(MANDIR)\lispref\variables.texi \
|
|
1583 $(MANDIR)\lispref\windows.texi \
|
|
1584 $(MANDIR)\lispref\x-windows.texi
|
|
1585
|
|
1586 INTERNALS_SRCS = \
|
|
1587 $(MANDIR)\internals\internals.texi
|
|
1588
|
|
1589 NEW_USERS_GUIDE_SRCS = \
|
|
1590 $(MANDIR)\new-users-guide\custom1.texi \
|
|
1591 $(MANDIR)\new-users-guide\custom2.texi \
|
|
1592 $(MANDIR)\new-users-guide\edit.texi \
|
|
1593 $(MANDIR)\new-users-guide\enter.texi \
|
|
1594 $(MANDIR)\new-users-guide\files.texi \
|
|
1595 $(MANDIR)\new-users-guide\help.texi \
|
|
1596 $(MANDIR)\new-users-guide\modes.texi \
|
|
1597 $(MANDIR)\new-users-guide\new-users-guide.texi \
|
|
1598 $(MANDIR)\new-users-guide\region.texi \
|
|
1599 $(MANDIR)\new-users-guide\search.texi \
|
|
1600 $(MANDIR)\new-users-guide\xmenu.texi
|
|
1601
|
|
1602 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
|
|
1603 cd $(MANDIR)\xemacs
|
|
1604 $(MAKEINFO) xemacs.texi
|
|
1605
|
|
1606 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
|
|
1607 cd $(MANDIR)\lispref
|
|
1608 $(MAKEINFO) lispref.texi
|
|
1609
|
|
1610 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
|
|
1611 cd $(MANDIR)\internals
|
|
1612 $(MAKEINFO) internals.texi
|
|
1613
|
|
1614 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
|
|
1615 cd $(MANDIR)\new-users-guide
|
|
1616 $(MAKEINFO) new-users-guide.texi
|
|
1617
|
|
1618 info: makeinfo-test $(INFO_FILES)
|
|
1619
|
1330
|
1620 #########################################################################
|
2951
|
1621 ## Testing, TAGS, install, clean, etc. ##
|
1330
|
1622 #########################################################################
|
|
1623
|
|
1624 ########################### Automated tests
|
428
|
1625
|
1330
|
1626 testdir = ../tests/automated
|
|
1627 batch_test_emacs = $(BATCH_PACKAGES) -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
|
|
1628
|
|
1629 check:
|
|
1630 cd $(BLDSRC)
|
|
1631 $(DO_XEMACS) $(batch_test_emacs)
|
|
1632
|
|
1633 check-temacs:
|
|
1634 cd $(BLDSRC)
|
1680
|
1635 $(TEMACS_BATCH) $(run_temacs_args) $(batch_test_emacs)
|
1330
|
1636
|
|
1637 check-features: all
|
|
1638 cd $(BLDSRC)
|
|
1639 $(XEMACS_BATCH) -l check-features.el
|
|
1640
|
|
1641
|
|
1642 ########################### Rebuilding TAGS
|
|
1643
|
|
1644 tags:
|
|
1645 @echo If you do not have a copy of etags around, then do 'make lib-src' first.
|
|
1646 @echo To make use of the tags file, put the following in your .emacs:
|
|
1647 @echo (setq tag-table-alist
|
|
1648 @echo '(("$(SRCROOT:\=\\)\\" . "$(SRCROOT:\=\\)\\")))
|
|
1649 cd $(SRCROOT)
|
|
1650 -$(DEL) TAGS
|
|
1651 set PATH=lib-src;%PATH%
|
|
1652 # we need to double ^, but only in one place, because (according to the
|
|
1653 # nmake manual), a ^ is used to quote certain special characters such as
|
|
1654 # backslash, but is treated literally within double quotes -- and notice
|
|
1655 # carefully the occurrences of double quotes in the first line below!
|
|
1656 etags -a -r "/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
|
|
1657 etags -a -l none -r "/^(def\(var\|un\|alias\|const\|macro\|subst\|struct\|face\|group\|custom\|ine-\(function\|compiler-macro\|[a-z-]+alias\)\)[ ]+'?\([^ ]+\)/\3/" $(LISP)\*.el $(LISP)\mule\*.el
|
|
1658
|
|
1659 ########################### Install the system
|
|
1660
|
|
1661 # use this rule to install the system
|
|
1662 install: all
|
|
1663 cd $(NT)
|
2106
|
1664 set COPYCMD=$(COPYCMD)
|
1330
|
1665 @echo Installing in $(INSTALL_DIR) ...
|
|
1666 @echo PlaceHolder > PlaceHolder
|
1393
|
1667 @$(COPY) $(SRCROOT)\PROBLEMS "$(INSTALL_DIR)\"
|
2537
|
1668 @$(COPY) $(SRCROOT)\README "$(INSTALL_DIR)\"
|
|
1669 @$(COPY) $(SRCROOT)\COPYING "$(INSTALL_DIR)\"
|
|
1670 @$(COPY) $(SRCROOT)\Installation "$(INSTALL_DIR)\"
|
1330
|
1671 @$(COPY) PlaceHolder "$(INSTALL_DIR)\lock\"
|
|
1672 -$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
|
2537
|
1673 # @$(COPY) $(BLDLIB_SRC)\*.exe "$(INSTALL_DIR)\lib-src\"
|
|
1674 # @$(COPY) $(BLDLIB_SRC)\DOC "$(INSTALL_DIR)\lib-src\"
|
|
1675 # @$(COPY) $(CONFIG_VALUES) "$(INSTALL_DIR)\lib-src\"
|
|
1676 # @$(COPY) $(BLDSRC)\xemacs.exe "$(INSTALL_DIR)\bin\"
|
1330
|
1677 @$(COPY) $(BLDLIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
|
|
1678 @$(COPY) $(BLDLIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
|
1679 @$(COPY) $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
|
1680 @$(COPY) $(BLDSRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
1657
|
1681 # APA: This is not good enough! It copies all .#* CVS files
|
|
1682 # and the CVS directory too!
|
1330
|
1683 @$(COPYDIR) $(SRCROOT)\etc "$(INSTALL_DIR)\etc\"
|
|
1684 @$(COPYDIR) $(SRCROOT)\info "$(INSTALL_DIR)\info\"
|
|
1685 @$(COPYDIR) $(SRCROOT)\lisp "$(INSTALL_DIR)\lisp\"
|
|
1686 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
|
|
1687 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
|
|
1688 -$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
|
|
1689 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
|
|
1690 -$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
|
|
1691 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
|
|
1692 -$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
|
|
1693 -$(DEL) PlaceHolder
|
|
1694
|
|
1695 ########################### clean
|
|
1696
|
|
1697 mostlyclean:
|
|
1698 -$(DEL) $(BLDROOT)\Installation
|
|
1699 -$(DEL) $(OUTDIR)\*.lib
|
|
1700 -$(DEL) $(OUTDIR)\*.obj
|
|
1701 -$(DEL) $(OUTDIR)\*.pdb
|
2951
|
1702 -$(DEL) $(OUTDIR)\*.idb
|
|
1703 -$(DEL) $(OUTDIR)\*.ilk
|
1330
|
1704 -$(DEL) $(OUTDIR)\*.res
|
|
1705 -$(DEL) $(OUTDIR)\*.sbr
|
|
1706 -$(DEL) $(BLDSRC)\*.exe
|
|
1707 -$(DEL) $(BLDSRC)\*.dmp
|
|
1708 -$(DEL) $(BLDSRC)\*.map
|
|
1709 -$(DEL) $(BLDSRC)\*.pdb
|
2951
|
1710 -$(DEL) $(BLDSRC)\*.idb
|
|
1711 -$(DEL) $(BLDSRC)\*.ilk
|
1330
|
1712 -$(DEL) $(BLDSRC)\NEEDTODUMP
|
|
1713 -$(DEL) $(BLDSRC)\dump-id.c
|
|
1714 -$(DEL) $(SRC)\*.bsc
|
|
1715 -$(DEL) $(BLDLIB_SRC)\*.exe
|
|
1716 -$(DEL) $(BLDLIB_SRC)\*.obj
|
|
1717 -$(DEL) $(BLDLIB_SRC)\*.pdb
|
2951
|
1718 -$(DEL) $(BLDLIB_SRC)\*.idb
|
|
1719 -$(DEL) $(BLDLIB_SRC)\*.ilk
|
1330
|
1720 -$(DEL) $(BLDLIB_SRC)\*.res
|
|
1721
|
|
1722 versionclean:
|
|
1723 -$(DEL) $(BLDSRC)\xemacs.exe
|
|
1724 -$(DEL) $(BLDLIB_SRC)\DOC
|
|
1725
|
|
1726 clean: mostlyclean versionclean
|
|
1727 -$(DEL) $(SRCROOT)\TAGS
|
|
1728 -$(DEL) $(LISP)\auto-autoloads.el*
|
|
1729 -$(DEL) $(LISP)\mule\auto-autoloads.el*
|
|
1730 -$(DEL) $(LISP)\custom-load.el*
|
|
1731 -$(DEL) $(LISP)\mule\custom-load.el*
|
|
1732
|
|
1733 nicenclean: clean
|
|
1734 -$(DEL) $(NT)\*.bak
|
|
1735 -$(DEL) $(NT)\*.orig
|
|
1736 -$(DEL) $(NT)\*.rej
|
|
1737 -$(DEL) $(NT)\*.tmp
|
|
1738 -$(DEL) $(LIB_SRC)\*.bak
|
|
1739 -$(DEL) $(LIB_SRC)\*.orig
|
|
1740 -$(DEL) $(LIB_SRC)\*.rej
|
|
1741 -$(DEL) $(LIB_SRC)\*.tmp
|
|
1742 -$(DEL) $(SRC)\*.bak
|
|
1743 -$(DEL) $(SRC)\*.orig
|
|
1744 -$(DEL) $(SRC)\*.rej
|
|
1745 -$(DEL) $(SRC)\*.tmp
|
|
1746 -$(DEL) $(LISP)\*.bak
|
|
1747 -$(DEL) $(LISP)\*.orig
|
|
1748 -$(DEL) $(LISP)\*.rej
|
|
1749 -$(DEL) $(LISP)\*.tmp
|
|
1750
|
|
1751 # Convenience target.
|
|
1752 # Reproducing the configuration is just a matter of copying, and if
|
|
1753 # we use the same directory for Cygwin builds these must go. We don't
|
|
1754 # want to use distclean.
|
|
1755 configclean:
|
|
1756 -$(DEL) $(SRC)\config.h
|
|
1757 -$(DEL) $(SRC)\paths.h
|
|
1758 -$(DEL) $(SRC)\Emacs.ad.h
|
|
1759
|
|
1760 ## This is used in making a distribution.
|
|
1761 ## Do not use it on development directories!
|
|
1762 distclean: nicenclean configclean
|
|
1763 -$(DEL) $(BLDLIB_SRC)\$(CONFIG_VALUES)
|
|
1764 -$(DEL) $(INFODIR)\*.info*
|
|
1765 -$(DEL) $(LISP)\*.elc
|
|
1766 -$(DEL) $(LISP)\mule\*.elc
|
|
1767 -$(DEL) $(LISP)\term\*.elc
|
|
1768
|
|
1769 realclean: distclean
|
|
1770
|
|
1771 #not sure about those wildcards. DOS wildcards are stupid compared to Unix,
|
|
1772 #and could end up deleting *everything* instead of just backup files or
|
|
1773 #whatever. So just leave it at "realclean"
|
|
1774 extraclean: realclean
|
|
1775 # -$(DEL) *~
|
|
1776 # -$(DEL) *.*~
|
|
1777 # -$(DEL) #*
|
|
1778 # -$(DEL) m\*~
|
|
1779 # -$(DEL) m\#*
|
|
1780 # -$(DEL) s\*~
|
|
1781 # -$(DEL) s\#*
|
|
1782
|
|
1783 ########################### Rebuild source dependency file
|
|
1784
|
|
1785 depend:
|
|
1786 cd $(SRC)
|
|
1787 perl ./make-src-depend > depend.tmp
|
|
1788 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
|
|
1789
|
|
1790 ########################### Redo Unicode-Encapsulation
|
|
1791
|
|
1792 unicode-encapsulate:
|
|
1793 cd $(SRC)
|
|
1794 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
|
|
1795
|
1657
|
1796 makeinfo-test: $(DUMP_TARGET)
|
|
1797 @<<makeinfo_test.bat
|
|
1798 @echo off
|
|
1799 @"$(MAKEINFO)" --version
|
|
1800 @if not errorlevel 1 goto test_done
|
|
1801 @$(XEMACS_BATCH_PACKAGES) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
|
|
1802 @if not errorlevel 1 goto suggest_makeinfo
|
|
1803 @echo XEmacs 'info' cannot be built!
|
|
1804 @echo Install XEmacs package 'texinfo' (see README.packages).
|
|
1805 :suggest_makeinfo
|
|
1806 @echo Consider specifying path to 'makeinfo' in config.inc.
|
|
1807 @echo as this will build the info docs much faster than XEmacs using 'texinfo'.
|
|
1808 @if errorlevel 1 exit 1
|
|
1809 :test_done
|
|
1810 <<NOKEEP
|