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