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