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