annotate nt/xemacs.mak @ 3034:fe94f59a2773

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