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