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