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