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