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