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