annotate nt/xemacs.mak @ 1346:01c57eb70ae9

[xemacs-hg @ 2003-03-09 02:27:27 by ben] To: xemacs-patches@xemacs.org i.c: Sleep between calls to check for I/O, since these calls are non-blocking. behavior.el: Allow other keywords for forward compatibility. cl-macs.el: Rewrite to eliminate byte-compiler warning when `return' is used without `finally'. cmdloop.el: Avoid truncated error messages for `end-of-file' and the like. cmdloop.el: Avoid char-int error after syncing. files.el: Eliminate byte-compile warnings. printer.el: Fix line-width calculations. #### This used to work. Someone's changes (perhaps by Michael Sperber?) seem to have messed something up. simple.el: Use new clear-left-side functions to avoid messages ending up on the same line as other output. xemacs.mak: Add override for info/ as well when separate source/build dirs. xemacs.mak: Order sections in main build process and add comments. Add additional dependencies to try and prevent later steps from happening when failures in earlier steps have occurred. Makefile.in.in: Order sections in main build process and add comments. Add additional dependencies to try and prevent later steps from happening when failures in earlier steps have occurred. alloc.c: Don't arbitrarily clear Vconfigure_info_directory since it messes up separate build/source dirs. console.c, console.h, device-msw.c, device.c: Add accidentally omitted msprinter console and data descriptions. print.c, console-msw.c: Add clear-left-side functionality to help keep stdio/stderr output from separate sources on separate lines. Generalize the different kinds of debugging output. Add dpa(). profile.c: Add better docs on Unix/Windows differences. regex.c: Fix problems with rel-alloc compilation caused by previous patch. emacs.c: Seg fault rather than abort on Cygwin, since gdb doesn't trap aborts properly. console-gtk-impl.h, console-gtk.h, console-msw.h, console-x-impl.h, console-x.h, dialog-gtk.c, dialog-x.c, event-msw.c, frame-gtk.c, frame-x.c, frameslots.h, glyphs-gtk.c, glyphs-x.c, gui-gtk.c, gui-x.c, inline.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, scrollbar-gtk.c, scrollbar-x.c, ui-gtk.c: Delete popup-data object. Delete menubar_data field from frames, since its usage is frame-specific. Delete menubar-msw.h, gui-x.h, gui-gtk.h. Clean up handling of lwlib callback data GCPRO'ing and add missing GCPRO recomputation in widget code.
author ben
date Sun, 09 Mar 2003 02:27:46 +0000
parents 1b0339b048ce
children 49cfb333a12a
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.
1303
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
4 # Copyright (C) 1995, 1996, 2000, 2001, 2002, 2003 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
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
45 # Define the 'del' command to use
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.
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
48 DEL=del
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.
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
52 # set COPYCMD=/y
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
53 # Define the 'copy' command to use.
669
5c696033aec4 [xemacs-hg @ 2001-09-28 15:31:01 by adrian]
adrian
parents: 637
diff changeset
54 # Use /r (instead of /y), which exists on Windows NT 4 and 5.
1001
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
55 COPY=xcopy /q /r
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
56 COPYDIR=xcopy /q /r /e
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
57
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
58 ########################### Includes, and source and build tree determination.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
59
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
60 !include "config.inc"
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
62 !if defined(BUILD_DIR)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
63 SEPARATE_BUILD=1
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
64 SRCROOT=$(MAKEROOT)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
65 BLDROOT=$(BUILD_DIR)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
66 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
67 !if defined(SOURCE_DIR)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
68 SEPARATE_BUILD=1
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
69 SRCROOT=$(SOURCE_DIR)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
70 BLDROOT=$(MAKEROOT)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
71 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
72 SEPARATE_BUILD=0
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
73 SRCROOT=$(MAKEROOT)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
74 BLDROOT=$(MAKEROOT)
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 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
77
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
78 # Program name and version
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
79 !include "$(SRCROOT)\version.sh"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
80
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
81 ########################### Basic vars referring to directories, both in
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
82 ########################### the source and build trees.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
83
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
84 LISP=$(SRCROOT)\lisp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
85 LIB_SRC=$(SRCROOT)\lib-src
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
86 NT=$(SRCROOT)\nt
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
87 SRC=$(SRCROOT)\src
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
88 ETC=$(SRCROOT)\etc
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
89 INFO=$(SRCROOT)\info
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
90
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
91 BLDLIB_SRC=$(BLDROOT)\lib-src
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
92 BLDNT=$(BLDROOT)\nt
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
93 OUTDIR=$(BLDNT)\obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
94 BLDSRC=$(BLDROOT)\src
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
95
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
96 # This appears in the dependency file
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
97 LWLIB_SRCDIR=$(SRCROOT)\lwlib
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
98
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
99 ########################### Process the config.inc options.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
100
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 !if !defined(INFODOCK)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 INFODOCK=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 !endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
104 !if !defined(MULE)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
105 MULE=0
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
107 !if !defined(HAVE_MS_WINDOWS)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
108 HAVE_MS_WINDOWS=1
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 !if !defined(HAVE_XPM)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 HAVE_XPM=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113 !if !defined(HAVE_PNG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 HAVE_PNG=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 !endif
632
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
116 !if !defined(HAVE_ZLIB)
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
117 HAVE_ZLIB=$(HAVE_PNG)
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
118 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 !if !defined(HAVE_TIFF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 HAVE_TIFF=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 !if !defined(HAVE_JPEG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 HAVE_JPEG=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125 !if !defined(HAVE_XFACE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 HAVE_XFACE=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 !if !defined(HAVE_GIF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 HAVE_GIF=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130 !endif
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
131 !if !defined(HAVE_GTK)
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
132 HAVE_GTK=0
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
133 !endif
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
134 !if !defined(HAVE_MENUBARS)
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
135 HAVE_MENUBARS=1
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
136 !endif
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
137 !if !defined(HAVE_SCROLLBARS)
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
138 HAVE_SCROLLBARS=1
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
139 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140 !if !defined(HAVE_TOOLBARS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 HAVE_TOOLBARS=$(HAVE_XPM)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 !if !defined(HAVE_DIALOGS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 HAVE_DIALOGS=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 !if !defined(HAVE_NATIVE_SOUND)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 HAVE_NATIVE_SOUND=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 !if !defined(HAVE_WIDGETS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 HAVE_WIDGETS=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 !endif
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
152 !if !defined(OPTIMIZED_BUILD)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
153 OPTIMIZED_BUILD=1
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
154 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
155 !if !defined(USE_FASTCALL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
156 # #### 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
157 USE_FASTCALL=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
158 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
159 !if !defined(PROFILE_SUPPORT)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
160 PROFILE_SUPPORT=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
161 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 !if !defined(DEBUG_XEMACS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 DEBUG_XEMACS=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 !endif
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
165 !if !defined(SUPPORT_EDIT_AND_CONTINUE)
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
166 SUPPORT_EDIT_AND_CONTINUE=0
834
9c4fcc216a5f [xemacs-hg @ 2002-05-10 06:29:24 by adrian]
adrian
parents: 827
diff changeset
167 !endif
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
168
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 795
diff changeset
169 !if !defined(ERROR_CHECK_ALL)
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
170 !if "$(emacs_is_beta)" != ""
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 795
diff changeset
171 ERROR_CHECK_ALL=1
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
172 !else
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
173 ERROR_CHECK_ALL=0
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
174 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
175 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
176
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
177 !if !defined(CPLUSPLUS_COMPILE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
178 !if $(ERROR_CHECK_ALL)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
179 CPLUSPLUS_COMPILE=1
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
180 !else
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
181 CPLUSPLUS_COMPILE=0
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
182 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
183 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
184
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
185 !if !defined(USE_KKCC)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
186 USE_KKCC=0
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
187 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
188 !if !defined(USE_UNION_TYPE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
189 USE_UNION_TYPE=0
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 795
diff changeset
190 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
191 !if !defined(QUICK_BUILD)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
192 QUICK_BUILD=0
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
193 !endif
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
194 !if !defined(VERBOSECC)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
195 VERBOSECC=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
196 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
197 !if !defined(DEPEND)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
198 DEPEND=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
199 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
200 !if !defined(USE_PORTABLE_DUMPER)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
201 USE_PORTABLE_DUMPER=1
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
202 !endif
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
203 !if !defined(USE_MINITAR)
632
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
204 USE_MINITAR=$(HAVE_ZLIB)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
205 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
206
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
207 # A little bit of adhockery. Default to use system malloc and
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
208 # DLL version of the C runtime library when using portable
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
209 # dumping. These are the optimal settings.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
210 !if !defined(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
211 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
212 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
213 !if !defined(USE_CRTDLL)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
214 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
215 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
216
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
217 ########################### Check for incompatible options.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
218
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219 CONFIG_ERROR=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
220 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221 !message Cannot build InfoDock without InfoDock sources
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223 !endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
224 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
225 !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
226 CONFIG_ERROR=1
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
227 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
228 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
229 !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
230 CONFIG_ERROR=1
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
231 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
232 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
233 !message GNU malloc currently cannot be used with CRT DLL.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
234 !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
235 CONFIG_ERROR=1
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
236 !endif
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
237 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_GTK)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
238 !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
239 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240 !endif
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
241 !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
242 !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
243 CONFIG_ERROR=1
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
244 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
245 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 !message Please specify root directory for your XPM installation: XPM_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
247 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
248 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
249 !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
250 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
252 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
253 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
254 !message Please specify root directory for your PNG installation: PNG_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
255 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
256 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
257 !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
258 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
259 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
260 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
261 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
262 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
263 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
264 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
265 !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
266 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
267 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
268 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
269 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
270 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
271 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
272 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
273 !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
274 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
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
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
277 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
278 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
279 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
280 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
281 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
282 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
283 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
284 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
285 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
286 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
287 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
288 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
289 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
290 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
291 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
292 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
293 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
294 !message Toolbars require XPM support
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
295 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
296 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
297 !if $(CONFIG_ERROR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
298 !error Configuration error(s) found
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
299 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
301 ########################### Set version strings.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
302
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
303 !if $(INFODOCK)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
304 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
305 PROGRAM_DEFINES=-DINFODOCK \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
306 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
307 -DPATH_PROGNAME=\"infodock\" \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
308 -DEMACS_PROGNAME=\"infodock\" \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
309 -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
310 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
311 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
312 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
313 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
314 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
315 !if "$(emacs_beta_version)" != ""
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
316 !if "$(emacs_is_beta)" != ""
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
317 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
318 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
319 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
320 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
321 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
322 PROGRAM_DEFINES= \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
323 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
324 -DPATH_PROGNAME=\"xemacs\" \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
325 -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\" \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
326 -DEMACS_PROGNAME=\"xemacs\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
327 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
328
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
329 ########################### Set up installation and package directories.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
331 !if !defined(INSTALL_DIR)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
332 ! if $(INFODOCK)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
333 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
334 ! else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
335 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
336 ! endif
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
337 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
338 !if !defined(PACKAGE_PATH)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
339 ! if !defined(PACKAGE_PREFIX)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
340 PACKAGE_PREFIX=c:\Program Files\XEmacs
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
341 ! endif
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
342 ! if $(MULE)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
343 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
344 ! else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
345 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
346 ! endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
347 !endif
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
348 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
349
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
350 !if $(INFODOCK)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
351 PATH_PREFIX=../..
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
352 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
353 PATH_PREFIX=..
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
354 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
355
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
356 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
357
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
358 !if $(SEPARATE_BUILD)
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
359 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
360 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
361
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
362 ########################### Determine system configuration.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
363
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
364 !if !defined(OS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
365 OS=Windows_95/98
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
366 EMACS_CONFIGURATION=i586-pc-win32
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
367 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
368 EMACS_CONFIGURATION=i586-pc-win32
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
369 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
370 EMACS_CONFIGURATION=mips-pc-win32
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
371 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
372 EMACS_CONFIGURATION=alpha-pc-win32
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
373 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
374 EMACS_CONFIGURATION=ppc-pc-win32
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
375 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
376 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
377 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
378 STACK_TRACE_EYE_CATCHER=$(XEMACS_VERSION_STRING:.=_)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
379 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
380 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
381
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
382 ########################### Determine includes/defines/object file for
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
383 ########################### various options.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
384
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
385 !if $(HAVE_MS_WINDOWS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
386 MSW_DEFINES=-DHAVE_MS_WINDOWS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
387 MSW_INCLUDES=
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
388 MSW_LIBS=comctl32.lib
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
389
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
390 !if $(HAVE_XPM)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
391 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
392 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
393 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
394 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
395 !if $(HAVE_GIF)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
396 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
397 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
398 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
399 !if $(HAVE_PNG)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
400 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
401 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
402 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
403 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
404 !if $(HAVE_TIFF)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
405 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
406 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
407 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
408 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
409 !if $(HAVE_JPEG)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
410 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
411 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
412 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
413 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
414 !if $(HAVE_XFACE)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
415 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
416 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
417 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
418 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
419 !if $(HAVE_ZLIB)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
420 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_ZLIB
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
421 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(ZLIB_DIR)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
422 MSW_LIBS=$(MSW_LIBS) "$(ZLIB_DIR)\zlib.lib"
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 !if $(HAVE_MENUBARS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
425 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MENUBARS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
426 MSW_MENUBAR_OBJ=$(OUTDIR)\menubar.obj $(OUTDIR)\menubar-msw.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
427 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
428 !if $(HAVE_SCROLLBARS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
429 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_SCROLLBARS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
430 MSW_SCROLLBAR_OBJ=$(OUTDIR)\scrollbar.obj $(OUTDIR)\scrollbar-msw.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
431 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
432 !if $(HAVE_TOOLBARS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
433 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
434 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
435 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
436 !if $(HAVE_WIDGETS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
437 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
438 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
439 !if $(HAVE_DIALOGS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
440 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
441 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
442 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
443 !if $(HAVE_NATIVE_SOUND)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
444 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
445 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
446
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
447 TEMACS_MSW_OBJS=\
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
448 $(OUTDIR)\console-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
449 $(OUTDIR)\device-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
450 $(OUTDIR)\event-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
451 $(OUTDIR)\frame-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
452 $(OUTDIR)\glyphs-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
453 $(OUTDIR)\gui-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
454 $(OUTDIR)\objects-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
455 $(OUTDIR)\redisplay-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
456 $(OUTDIR)\select-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
457 $(OUTDIR)\dired-msw.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
458 $(MSW_MENUBAR_OBJ) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
459 $(MSW_SCROLLBAR_OBJ) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
460 $(MSW_TOOLBAR_OBJ) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
461 $(MSW_DIALOG_OBJ) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
462 $(MSW_GIF_OBJ)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
463
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
464 # end !if $(HAVE_MS_WINDOWS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
465 !endif
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 $(MULE)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
468 MULE_DEFINES=-DMULE
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
469 TEMACS_MULE_OBJS=\
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
470 $(OUTDIR)\mule-ccl.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
471 $(OUTDIR)\mule-charset.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
472 $(OUTDIR)\mule-coding.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
473 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
474
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
475 !if $(DEBUG_XEMACS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
476 TEMACS_DEBUG_OBJS=$(OUTDIR)\debug.obj $(OUTDIR)\tests.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
477 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
478
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
479 !if $(QUICK_BUILD)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
480 QUICK_DEFINES=-DQUICK_BUILD
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
481 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
482
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
483 !if $(ERROR_CHECK_ALL)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
484 ERROR_CHECK_DEFINES=-DERROR_CHECK_ALL
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
485 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
486
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
487 !if $(USE_UNION_TYPE)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
488 UNION_DEFINES=-DUSE_UNION_TYPE
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
489 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
490
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
491 !if $(USE_PORTABLE_DUMPER)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
492 DUMPER_DEFINES=-DPDUMP
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
493 TEMACS_DUMP_OBJS=$(OUTDIR)\dumper.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
494 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
495 TEMACS_DUMP_OBJS=$(OUTDIR)\unexnt.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
496 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
497
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
498 !if $(USE_KKCC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
499 KKCC_DEFINES=-DUSE_KKCC
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
500 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
501
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
502 !if $(USE_SYSTEM_MALLOC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
503 MALLOC_DEFINES=-DSYSTEM_MALLOC
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
504 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
505 MALLOC_DEFINES=-DGNU_MALLOC
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
506 TEMACS_ALLOC_OBJS=$(OUTDIR)\free-hook.obj $(OUTDIR)\gmalloc.obj \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
507 $(OUTDIR)\ntheap.obj $(OUTDIR)\vm-limit.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
508 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
509
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
510 ########################### Process options related to compilation.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
511
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
512 #
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
513 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
514 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
515 !if $(VERBOSECC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
516 CCV=$(CC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
517 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
518 CCV=@$(CC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
519 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
520
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
521 !if $(DEBUG_XEMACS)
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
522
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
523 # ---- Debugging support ----
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
524 ! if $(SUPPORT_EDIT_AND_CONTINUE)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
525 # support edit-and-continue
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
526 DEBUG_FLAGS_COMPILE=-ZI
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
527 # 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
528 # 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
529 # incremental linking for edit-and-continue to work, however.
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
530 DEBUG_FLAGS_LINK=-debug:full
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
531 ! else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
532 DEBUG_FLAGS_COMPILE=-Zi
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
533 DEBUG_FLAGS_LINK=-debug:full -incremental:no
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
534 ! endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
535 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
536 #BROWSERFLAGS=-Fr -Fd$(OUTDIR)\temacs.pdb
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
537 BROWSERFLAGS=-Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
538
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
539 !else
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
540
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
541 # ---- No debugging support ----
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
542 DEBUG_FLAGS_COMPILE=
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
543 DEBUG_FLAGS_LINK=-incremental:no
882
f503f1607e8b [xemacs-hg @ 2002-06-25 21:20:47 by adrian]
adrian
parents: 872
diff changeset
544 DEBUG_DEFINES=
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
545 BROWSERFLAGS=
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
546
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
547 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
548
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
549 !if $(USE_CRTDLL)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
550 ! if $(DEBUG_XEMACS)
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
551 C_LIBFLAG=-MDd
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
552 LIBC_LIB=msvcrtd.lib
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
553 ! else
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
554 C_LIBFLAG=-MD
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
555 LIBC_LIB=msvcrt.lib
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
556 ! endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
557 !else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
558 C_LIBFLAG=-ML
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
559 LIBC_LIB=libc.lib
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
560 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
561
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
562 !if $(OPTIMIZED_BUILD)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
563 # -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
564 # 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
565 # 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
566 # 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
567 # fastcall convention. Another possible addition: -Ob2 -- allows inlining
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
568 # 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
569 # increase, though.
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
570 #
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
571 # #### 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
572 # 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
573 # 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
574 OPTFLAGS_FASTCALL =-O2 -G5 -Gr -Ob2
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
575 OPTFLAGS_CDECL =-O2 -G5 -Ob2
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
576 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
577 OPTFLAGS_FASTCALL =-Od
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
578 OPTFLAGS_CDECL =-Od
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
579 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
580
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
581 !if $(USE_FASTCALL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
582 OPTFLAGS = $(OPTFLAGS_FASTCALL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
583 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
584 OPTFLAGS = $(OPTFLAGS_CDECL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
585 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
586
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
587 !if $(PROFILE_SUPPORT)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
588 PROFILE_FLAGS=-profile
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
589 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
590 PROFILE_FLAGS=
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
591 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
592
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
593 !if $(CPLUSPLUS_COMPILE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
594 CPLUSPLUS_COMPILE_FLAGS=-TP
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
595 !else
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
596 CPLUSPLUS_COMPILE_FLAGS=
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
597 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
598
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
599 ########################### Determine generic includes/defines/flags.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
600
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
601 INCLUDES=$(MSW_INCLUDES) -I$(NT)\inc -I$(SRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
602
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
603 DEFINES=$(MSW_DEFINES) $(MULE_DEFINES) $(UNION_DEFINES) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
604 $(DUMPER_DEFINES) $(KKCC_DEFINES) $(MALLOC_DEFINES) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
605 $(QUICK_DEFINES) $(ERROR_CHECK_DEFINES) $(DEBUG_DEFINES) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
606 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
607 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
608
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
609 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
610
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
611 CFLAGS_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS)
826
6728e641994e [xemacs-hg @ 2002-05-05 11:30:15 by ben]
ben
parents: 819
diff changeset
612 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG)
6728e641994e [xemacs-hg @ 2002-05-05 11:30:15 by ben]
ben
parents: 819
diff changeset
613
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
614 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
615 CFLAGS_CDECL=$(CFLAGS_CDECL_NO_LIB) $(C_LIBFLAG)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
616
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
617 ########################### Determine flags for XEmacs object files.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
618
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
619 # This may not exist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
620 !if "$(emacs_beta_version)" != ""
496
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
621 !if "$(emacs_is_beta)" != ""
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
622 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
623 !else
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
624 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
625 !endif
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
626 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
627
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
628 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
629 $(INCLUDES) $(DEFINES) \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
630 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
631 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
632 $(EMACS_BETA_VERSION) $(EMACS_PATCH_LEVEL) \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
633 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
634 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
635 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
636 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
637 TEMACS_CPP_CDECL_FLAGS=$(CFLAGS_CDECL) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
638
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
639 ########################### Determine XEmacs object files.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
640
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
641 TEMACS_OBJS= \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
642 $(TEMACS_MSW_OBJS)\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
643 $(TEMACS_MULE_OBJS)\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
644 $(TEMACS_DEBUG_OBJS)\
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
645 $(TEMACS_ALLOC_OBJS)\
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
646 $(TEMACS_DUMP_OBJS)\
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
647 $(OUTDIR)\abbrev.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
648 $(OUTDIR)\alloc.obj \
851
e7ee5f8bde58 [xemacs-hg @ 2002-05-23 11:46:08 by ben]
ben
parents: 841
diff changeset
649 $(OUTDIR)\alloca.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
650 $(OUTDIR)\blocktype.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
651 $(OUTDIR)\buffer.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
652 $(OUTDIR)\bytecode.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
653 $(OUTDIR)\callint.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
654 $(OUTDIR)\casefiddle.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
655 $(OUTDIR)\casetab.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
656 $(OUTDIR)\chartab.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
657 $(OUTDIR)\cmdloop.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
658 $(OUTDIR)\cmds.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
659 $(OUTDIR)\console-stream.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
660 $(OUTDIR)\console.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
661 $(OUTDIR)\data.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
662 $(OUTDIR)\device.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
663 $(OUTDIR)\dired.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
664 $(OUTDIR)\doc.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
665 $(OUTDIR)\doprnt.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
666 $(OUTDIR)\dragdrop.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
667 $(OUTDIR)\dynarr.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
668 $(OUTDIR)\editfns.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
669 $(OUTDIR)\elhash.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
670 $(OUTDIR)\emacs.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
671 $(OUTDIR)\eval.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
672 $(OUTDIR)\event-stream.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
673 $(OUTDIR)\events.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
674 $(OUTDIR)\extents.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
675 $(OUTDIR)\faces.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
676 $(OUTDIR)\file-coding.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
677 $(OUTDIR)\fileio.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
678 $(OUTDIR)\filemode.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
679 $(OUTDIR)\floatfns.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
680 $(OUTDIR)\fns.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
681 $(OUTDIR)\font-lock.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
682 $(OUTDIR)\frame.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
683 $(OUTDIR)\general.obj \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
684 $(OUTDIR)\getloadavg.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
685 $(OUTDIR)\glyphs.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
686 $(OUTDIR)\glyphs-eimage.obj \
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
687 $(OUTDIR)\glyphs-shared.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
688 $(OUTDIR)\glyphs-widget.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
689 $(OUTDIR)\gui.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
690 $(OUTDIR)\gutter.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
691 $(OUTDIR)\hash.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
692 $(OUTDIR)\indent.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
693 $(OUTDIR)\imgproc.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
694 $(OUTDIR)\insdel.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
695 $(OUTDIR)\intl.obj \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
696 $(OUTDIR)\intl-win32.obj \
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
697 $(OUTDIR)\intl-encap-win32.obj \
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
698 $(OUTDIR)\intl-auto-encap-win32.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
699 $(OUTDIR)\keymap.obj \
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
700 $(OUTDIR)\libinterface.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
701 $(OUTDIR)\line-number.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
702 $(OUTDIR)\lread.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
703 $(OUTDIR)\lstream.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
704 $(OUTDIR)\macros.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
705 $(OUTDIR)\marker.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
706 $(OUTDIR)\md5.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
707 $(OUTDIR)\minibuf.obj \
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
708 # #### Leave the next one out when integrating my working ws
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
709 $(OUTDIR)\nt.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
710 $(OUTDIR)\ntplay.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
711 $(OUTDIR)\objects.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
712 $(OUTDIR)\opaque.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
713 $(OUTDIR)\print.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
714 $(OUTDIR)\process.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
715 $(OUTDIR)\process-nt.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
716 $(OUTDIR)\profile.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
717 $(OUTDIR)\rangetab.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
718 $(OUTDIR)\realpath.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
719 $(OUTDIR)\redisplay-output.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
720 $(OUTDIR)\redisplay.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
721 $(OUTDIR)\regex.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
722 $(OUTDIR)\search.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
723 $(OUTDIR)\select.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
724 $(OUTDIR)\signal.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
725 $(OUTDIR)\sound.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
726 $(OUTDIR)\specifier.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
727 $(OUTDIR)\strftime.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
728 $(OUTDIR)\symbols.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
729 $(OUTDIR)\syntax.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
730 $(OUTDIR)\sysdep.obj \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
731 $(OUTDIR)\text.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
732 $(OUTDIR)\tparam.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
733 $(OUTDIR)\undo.obj \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
734 $(OUTDIR)\unicode.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
735 $(OUTDIR)\widget.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
736 $(OUTDIR)\window.obj \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
737 $(OUTDIR)\win32.obj
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
738
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
739 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
740 ## Implicit rules ##
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
741 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
742
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
743 # Rules
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
744
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
745 .SUFFIXES:
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
746 .SUFFIXES: .c .obj .texi .info
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
747
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
748 # nmake rule with batching:
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
749 #{$(SRC)}.c{$(OUTDIR)}.obj:
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
750 # echo $< >> $(OUTDIR)\listfile.tmp
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
751
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
752 {$(SRC)}.c{$(OUTDIR)}.obj:
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
753 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ $(BROWSERFLAGS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
754
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
755 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
756 ## Subsidiary dependency rules ##
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
757 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
758
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
759 ###################### Include auto-generated dependencies.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
760
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
761 #
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
762 # 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
763 #
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
764 !if $(DEPEND) && exist("$(SRC)\depend")
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
765 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
766 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
767 # 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
768 ! 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
769 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
770 ! include "$(OUTDIR)\depend.tmp"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
771 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
772 ! if [echo WARNING: Compiling without dependency information.]
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
773 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
774 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
775
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
776 ###################### 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
777 ###################### source.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
778
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
779 !if $(SEPARATE_BUILD)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
780 # #### `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
781 # 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
782 ! if [if not exist $(BLDROOT)\nul mkdir "$(BLDROOT)"]
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
783 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
784 ! 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
785 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
786 ! if [if not exist $(BLDNT)\nul mkdir "$(BLDNT)"]
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
787 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
788 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
789 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
790 ! if [if not exist $(BLDSRC)\nul mkdir "$(BLDSRC)"]
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
791 ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
792 # No point.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
793 # ! if [if not exist "$(BLDROOT)\nul" mkdir "$(BLDROOT)"]
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
794 # ! endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
795 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
796
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
797 ###################### Random .obj dependencies
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
798
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
799 # 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
800 # $(OUTDIR)\foo.obj: $(SRC)\foo.c
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
801 # $(CCV) $(TEMACS_CPP_FLAGS) $(SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
802
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
803 $(OUTDIR)\emacs.obj: $(SRCROOT)\version.sh
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
804
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
805 $(OUTDIR)\libinterface.obj: $(SRC)\libinterface.c
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
806 $(CCV) $(TEMACS_CPP_CDECL_FLAGS) $(SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
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 ###################### Generated source files
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
809
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
810 $(OUTDIR)\nul:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
811 -@mkdir $(OUTDIR)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
812
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
813 XEMACS_INCLUDES=\
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
814 $(SRC)\config.h \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
815 $(SRC)\Emacs.ad.h \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
816 $(SRC)\paths.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
817
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
818 # #### Copying is cheap, we should just force these
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
819 $(SRC)\config.h: $(SRC)\config.h.in
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
820 # #### 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
821 # #### 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
822 # #### 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
823 # #### no switch to mean "no of course, you idiots, it's a file!"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
824 @copy $(SRC)\config.h.in $(SRC)\config.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
825
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
826 #$(SRC)\Emacs.ad.h: $(SRCROOT)\etc\Emacs.ad
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
827 # !"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
828
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
829 #$(SRC)\paths.h: $(SRC)\paths.h.in
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
830 # !"cd $(SRC); cp paths.h.in paths.h"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
831
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
832 $(SRC)\Emacs.ad.h: $(NT)\Emacs.ad.h
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
833 set COPYCMD=/y
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
834 @$(COPY) $(NT)\Emacs.ad.h $(SRC)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
835
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
836 $(SRC)\paths.h: $(NT)\paths.h
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
837 set COPYCMD=/y
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
838 @$(COPY) $(NT)\paths.h $(SRC)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
839
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
840
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
841 ###################### lastfile.lib
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
842
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
843 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
844
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
845 LASTFILE=$(OUTDIR)\lastfile.lib
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
846 LASTFILE_SRC=$(SRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
847 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
848 LASTFILE_OBJS= \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
849 $(OUTDIR)\lastfile.obj
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
850
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
851 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
852 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
853
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
854 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
855 $(CCV) $(LASTFILE_FLAGS) $(LASTFILE_SRC)\$(@B).c
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
856
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
857 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
858
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
859 ###################### lib-src programs
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
860
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
861 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
862
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
863 #
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
864 # 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
865 #
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
866 CONFIG_VALUES = $(BLDLIB_SRC)\config.values
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
867 !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
868 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
869 !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
870 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
871 !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
872 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
873 !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
874 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
875 !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
876 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
877 !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
878 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
879 !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
880 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
881 !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
882 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
883 # PATH_PACKAGEPATH is already a quoted string.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
884 !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
885 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
886
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
887 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
888 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
889
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
890 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
891
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
892 # Inferred rule
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
893 {$(LIB_SRC)}.c{$(BLDLIB_SRC)}.exe :
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
894 $(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
895
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
896 # Individual dependencies
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
897 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
898 $(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
899 $(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
900
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
901 $(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
902
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
903 # 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
904 $(BLDLIB_SRC)/minitar.exe : $(NT)/minitar.c
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
905 $(CCV) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) $(CFLAGS_CDECL_NO_LIB) $(LINK_DEPENDENCY_ARGS) "$(ZLIB_DIR)\zlib.lib"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
906
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
907 LIB_SRC_TOOLS = \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
908 $(BLDLIB_SRC)/etags.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
909 $(BLDLIB_SRC)/hexl.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
910 $(BLDLIB_SRC)/i.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
911 $(BLDLIB_SRC)/winclient.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
912 $(BLDLIB_SRC)/make-docfile.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
913 $(BLDLIB_SRC)/mmencode.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
914 $(BLDLIB_SRC)/movemail.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
915 $(BLDLIB_SRC)/sorted-doc.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
916 $(BLDLIB_SRC)/wakeup.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
917 !if $(USE_MINITAR)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
918 LIB_SRC_TOOLS = \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
919 $(LIB_SRC_TOOLS) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
920 $(BLDLIB_SRC)/minitar.exe
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
921 !endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
922 !if $(USE_PORTABLE_DUMPER)
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
923 LIB_SRC_TOOLS = \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
924 $(XEMACS_INCLUDES) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
925 $(BLDLIB_SRC)/make-dump-id.exe \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
926 $(LIB_SRC_TOOLS)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
927 !endif
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 ###################### Building the info files
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
930
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
931 !if !defined(MAKEINFO)
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
932 MAKEINFO=$(XEMACS_BATCH_PACKAGES) -l texinfmt -f batch-texinfo-format
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
933 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
934
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
935 MANDIR = $(SRCROOT)\man
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
936 INFODIR = $(SRCROOT)\info
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
937 INFO_FILES= \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
938 $(INFODIR)\cl.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
939 $(INFODIR)\custom.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
940 $(INFODIR)\emodules.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
941 $(INFODIR)\external-widget.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
942 $(INFODIR)\info.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
943 $(INFODIR)\standards.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
944 $(INFODIR)\term.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
945 $(INFODIR)\termcap.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
946 $(INFODIR)\texinfo.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
947 $(INFODIR)\widget.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
948 $(INFODIR)\xemacs-faq.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
949 $(INFODIR)\xemacs.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
950 $(INFODIR)\lispref.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
951 $(INFODIR)\new-users-guide.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
952 $(INFODIR)\internals.info
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
953
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
954 {$(MANDIR)}.texi{$(INFODIR)}.info:
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
955 cd $(MANDIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
956 $(MAKEINFO) $**
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
957
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
958 XEMACS_SRCS = \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
959 $(MANDIR)\xemacs\abbrevs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
960 $(MANDIR)\xemacs\basic.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
961 $(MANDIR)\xemacs\buffers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
962 $(MANDIR)\xemacs\building.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
963 $(MANDIR)\xemacs\calendar.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
964 $(MANDIR)\xemacs\cmdargs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
965 $(MANDIR)\xemacs\custom.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
966 $(MANDIR)\xemacs\display.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
967 $(MANDIR)\xemacs\entering.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
968 $(MANDIR)\xemacs\files.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
969 $(MANDIR)\xemacs\fixit.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
970 $(MANDIR)\xemacs\frame.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
971 $(MANDIR)\xemacs\glossary.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
972 $(MANDIR)\xemacs\gnu.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
973 $(MANDIR)\xemacs\help.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
974 $(MANDIR)\xemacs\indent.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
975 $(MANDIR)\xemacs\keystrokes.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
976 $(MANDIR)\xemacs\killing.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
977 $(MANDIR)\xemacs\m-x.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
978 $(MANDIR)\xemacs\major.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
979 $(MANDIR)\xemacs\mark.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
980 $(MANDIR)\xemacs\menus.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
981 $(MANDIR)\xemacs\mini.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
982 $(MANDIR)\xemacs\misc.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
983 $(MANDIR)\xemacs\mouse.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
984 $(MANDIR)\xemacs\mule.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
985 $(MANDIR)\xemacs\new.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
986 $(MANDIR)\xemacs\packages.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
987 $(MANDIR)\xemacs\picture.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
988 $(MANDIR)\xemacs\programs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
989 $(MANDIR)\xemacs\reading.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
990 $(MANDIR)\xemacs\regs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
991 $(MANDIR)\xemacs\search.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
992 $(MANDIR)\xemacs\sending.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
993 $(MANDIR)\xemacs\startup.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
994 $(MANDIR)\xemacs\text.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
995 $(MANDIR)\xemacs\trouble.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
996 $(MANDIR)\xemacs\undo.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
997 $(MANDIR)\xemacs\windows.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
998 $(MANDIR)\xemacs\xemacs.texi
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
999
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1000 LISPREF_SRCS = \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1001 $(MANDIR)\lispref\abbrevs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1002 $(MANDIR)\lispref\annotations.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1003 $(MANDIR)\lispref\back.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1004 $(MANDIR)\lispref\backups.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1005 $(MANDIR)\lispref\buffers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1006 $(MANDIR)\lispref\building.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1007 $(MANDIR)\lispref\commands.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1008 $(MANDIR)\lispref\compile.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1009 $(MANDIR)\lispref\consoles-devices.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1010 $(MANDIR)\lispref\control.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1011 $(MANDIR)\lispref\customize.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1012 $(MANDIR)\lispref\databases.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1013 $(MANDIR)\lispref\debugging.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1014 $(MANDIR)\lispref\dialog.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1015 $(MANDIR)\lispref\display.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1016 $(MANDIR)\lispref\dragndrop.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1017 $(MANDIR)\lispref\edebug-inc.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1018 $(MANDIR)\lispref\edebug.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1019 $(MANDIR)\lispref\errors.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1020 $(MANDIR)\lispref\eval.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1021 $(MANDIR)\lispref\extents.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1022 $(MANDIR)\lispref\faces.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1023 $(MANDIR)\lispref\files.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1024 $(MANDIR)\lispref\frames.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1025 $(MANDIR)\lispref\functions.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1026 $(MANDIR)\lispref\glyphs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1027 $(MANDIR)\lispref\hash-tables.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1028 $(MANDIR)\lispref\help.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1029 $(MANDIR)\lispref\hooks.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1030 $(MANDIR)\lispref\index.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1031 $(MANDIR)\lispref\internationalization.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1032 $(MANDIR)\lispref\intro.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1033 $(MANDIR)\lispref\keymaps.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1034 $(MANDIR)\lispref\ldap.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1035 $(MANDIR)\lispref\lispref.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1036 $(MANDIR)\lispref\lists.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1037 $(MANDIR)\lispref\loading.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1038 $(MANDIR)\lispref\locals.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1039 $(MANDIR)\lispref\macros.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1040 $(MANDIR)\lispref\maps.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1041 $(MANDIR)\lispref\markers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1042 $(MANDIR)\lispref\menus.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1043 $(MANDIR)\lispref\minibuf.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1044 $(MANDIR)\lispref\modes.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1045 $(MANDIR)\lispref\mouse.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1046 $(MANDIR)\lispref\mule.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1047 $(MANDIR)\lispref\numbers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1048 $(MANDIR)\lispref\objects.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1049 $(MANDIR)\lispref\os.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1050 $(MANDIR)\lispref\positions.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1051 $(MANDIR)\lispref\processes.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1052 $(MANDIR)\lispref\range-tables.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1053 $(MANDIR)\lispref\scrollbars.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1054 $(MANDIR)\lispref\searching.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1055 $(MANDIR)\lispref\sequences.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1056 $(MANDIR)\lispref\specifiers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1057 $(MANDIR)\lispref\streams.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1058 $(MANDIR)\lispref\strings.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1059 $(MANDIR)\lispref\symbols.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1060 $(MANDIR)\lispref\syntax.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1061 $(MANDIR)\lispref\text.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1062 $(MANDIR)\lispref\tips.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1063 $(MANDIR)\lispref\toolbar.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1064 $(MANDIR)\lispref\tooltalk.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1065 $(MANDIR)\lispref\variables.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1066 $(MANDIR)\lispref\windows.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1067 $(MANDIR)\lispref\x-windows.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1068
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1069 INTERNALS_SRCS = \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1070 $(MANDIR)\internals\internals.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1071 $(MANDIR)\internals\index.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1072
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1073 NEW_USERS_GUIDE_SRCS = \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1074 $(MANDIR)\new-users-guide\custom1.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1075 $(MANDIR)\new-users-guide\custom2.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1076 $(MANDIR)\new-users-guide\edit.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1077 $(MANDIR)\new-users-guide\enter.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1078 $(MANDIR)\new-users-guide\files.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1079 $(MANDIR)\new-users-guide\help.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1080 $(MANDIR)\new-users-guide\modes.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1081 $(MANDIR)\new-users-guide\new-users-guide.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1082 $(MANDIR)\new-users-guide\region.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1083 $(MANDIR)\new-users-guide\search.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1084 $(MANDIR)\new-users-guide\xmenu.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1085
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1086 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1087 cd $(MANDIR)\xemacs
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1088 $(MAKEINFO) xemacs.texi
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1089
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1090
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1091 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1092 cd $(MANDIR)\lispref
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1093 $(MAKEINFO) lispref.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1094
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1095 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1096 cd $(MANDIR)\internals
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1097 $(MAKEINFO) internals.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1098
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1099 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1100 cd $(MANDIR)\new-users-guide
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1101 $(MAKEINFO) new-users-guide.texi
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1102
815
66265f190a16 [xemacs-hg @ 2002-04-14 17:40:13 by jhar]
jhar
parents: 814
diff changeset
1103 info: makeinfo-test $(INFO_FILES)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1104
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1105 makeinfo-test:
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1106 @<<makeinfo_test.bat
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1107 @echo off
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1108 if exist "$(MAKEINFO)" goto test_done
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
1109 @$(XEMACS_BATCH_PACKAGES) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1110 @if not errorlevel 1 goto suggest_makeinfo
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1111 @echo XEmacs 'info' cannot be built!
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1112 @echo Install XEmacs package 'texinfo' (see README.packages).
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1113 :suggest_makeinfo
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1114 @echo Consider specifying path to 'makeinfo' in config.inc.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1115 @echo as this will build the info docs much faster than XEmacs using 'texinfo'.
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1116 @if errorlevel 1 exit 1
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1117 :test_done
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1118 <<NOKEEP
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1119
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1120 ########################### Create the Installation file
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1121
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1122 $(BLDROOT)\Installation:: installation
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1123
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1124 installation::
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1125 @echo OS version:>$(BLDROOT)\Installation
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1126 @ver >> $(BLDROOT)\Installation
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1127 @type >> $(BLDROOT)\Installation <<
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1128 !if defined(OS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1129 OS: $(OS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1130 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1131
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1132 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
1133
1052
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1134 Building XEmacs using "$(MAKE:\=\\)".
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1135 Building XEmacs using make flags "$(MAKEFLAGS)".
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1136 Building XEmacs in source tree "$(SRCROOT:\=\\)".
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1137 !if $(SEPARATE_BUILD)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1138 Building XEmacs into compiled tree "$(BLDROOT:\=\\)".
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1139 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1140 !if defined(CCV)
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
1141 For src, using compiler "$(CC) $(TEMACS_CPP_FLAGS)".
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
1142 For lib-src, using compiler "$(CC) $(LIB_SRC_CFLAGS)".
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1143 !endif
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1144 !if $(CPLUSPLUS_COMPILE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1145 Compiling as C++.
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1146 !endif
1052
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1147 Installing XEmacs in "$(INSTALL_DIR:\=\\)".
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1148 Package path is $(PATH_PACKAGEPATH).
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1149 !if $(INFODOCK)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1150 Building InfoDock.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1151 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1152 !if $(HAVE_MS_WINDOWS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1153 Compiling in support for Microsoft Windows native GUI.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1154 !endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1155 !if $(MULE)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1156 Compiling in international (MULE) support.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1157 !endif
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
1158 !if $(HAVE_GTK)
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
1159 --------------------------------------------------------------------
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1160 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
1161 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
1162 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
1163 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
1164 --------------------------------------------------------------------
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
1165 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1166 !if $(HAVE_XPM)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1167 Compiling in support for XPM images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1168 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1169 --------------------------------------------------------------------
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1170 NOTE: Compiling without XPM support.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1171 NOTE: You should strongly consider installing XPM.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1172 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
1173 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
1174 --------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1175 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1176 !if $(HAVE_GIF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1177 Compiling in support for GIF images.
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_PNG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1180 Compiling in support for PNG images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1181 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1182 --------------------------------------------------------------------
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1183 NOTE: Compiling without PNG image support.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1184 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
1185 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
1186 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
1187 --------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1188 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1189 !if $(HAVE_TIFF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1190 Compiling in support for TIFF images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1191 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1192 !if $(HAVE_JPEG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1193 Compiling in support for JPEG images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1194 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1195 !if $(HAVE_XFACE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1196 Compiling in support for X-Face message headers.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1197 !endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1198 !if $(HAVE_ZLIB)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1199 Compiling in support for GZIP compression/decompression.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1200 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1201 !if $(HAVE_TOOLBARS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1202 Compiling in support for toolbars.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1203 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1204 !if $(HAVE_DIALOGS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1205 Compiling in support for dialogs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1206 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1207 !if $(HAVE_WIDGETS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1208 Compiling in support for widgets.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1209 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1210 !if $(HAVE_NATIVE_SOUND)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1211 Compiling in support for native sounds.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1212 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1213 !if $(USE_UNION_TYPE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1214 Using union type for Lisp object storage.
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1215 NOTE: ---------------------------------------------------------
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1216 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
1217 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
1218 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
1219 NOTE: MULE, and ERROR_CHECKING.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1220 NOTE: ---------------------------------------------------------
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1221 !endif
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
1222 !if $(USE_PORTABLE_DUMPER)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
1223 Using portable dumper.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
1224 !endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1225 !if $(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1226 Using system malloc.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1227 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1228 !if $(USE_CRTDLL)
942
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1229 Using DLL version of C runtime library.
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1230 !endif
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1231 !if $(ERROR_CHECK_ALL)
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1232 Compiling in extra internal error-checking.
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1233 NOTE: ---------------------------------------------------------
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1234 NOTE: Compiling in support for runtime error-checking.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1235 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
1236 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
1237 NOTE: ---------------------------------------------------------
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1238 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1239 !if $(DEBUG_XEMACS)
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1240 Compiling in debugging support (no slowdown).
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1241 !endif
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1242 !if $(OPTIMIZED_BUILD)
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1243 Compiling with optimization.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1244 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1245 !if $(QUICK_BUILD)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1246 Disabling non-essential build actions. Use with care!
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1247 !endif
942
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1248 !if $(USE_KKCC)
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1249 Using new experimental GC algorithms.
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1250 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1251 <<NOKEEP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1252 @echo --------------------------------------------------------------------
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1253 @type $(BLDROOT)\Installation
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1254 @echo --------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1255
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1256 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1257 ## Primary rebuilding process ##
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1258 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1259
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1260 ########################### Definitions for linking temacs.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1261
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1262 !if !$(USE_PORTABLE_DUMPER)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1263 TEMACS_ENTRYPOINT=-entry:_start
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1264 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1265 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1266 !endif
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 TEMACS_BROWSE=$(BLDSRC)\temacs.bsc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1269 TEMACS_LIBS=$(LASTFILE) $(MSW_LIBS) \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1270 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
1271 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
1272 mpr.lib uuid.lib imm32.lib $(LIBC_LIB)
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
1273 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS_LINK) \
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1330
diff changeset
1274 -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
1275 -pdb:$(BLDSRC)\temacs.pdb -map:$(BLDSRC)\temacs.map \
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1276 -heap:0x00100000 -nodefaultlib $(PROFILE_FLAGS) setargv.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1277
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1278 ########################### Definitions for running temacs.exe/xemacs.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1279
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1280 RAW_EXE=$(BLDSRC)\temacs.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1281 DUMP_TARGET = $(BLDSRC)\xemacs.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1282 DO_TEMACS = "$(BLDLIB_SRC)\i" "$(RAW_EXE)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1283 DO_XEMACS = "$(BLDLIB_SRC)\i" "$(DUMP_TARGET)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1284
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1285 BATCH = -no-packages -batch
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1286 BATCH_PACKAGES = -vanilla -batch
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1287 TEMACS_BATCH = $(DO_TEMACS) -nd $(BATCH)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1288 XEMACS_BATCH = $(DO_XEMACS) $(BATCH)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1289 XEMACS_BATCH_PACKAGES = $(DO_XEMACS) $(BATCH_PACKAGES)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1290 temacs_loadup_args = -l $(LISP)/loadup.el
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1291 dump_temacs_args = $(temacs_loadup_args) dump
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1292 run_temacs_args = $(temacs_loadup_args) run-temacs
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1293 dump_temacs = $(TEMACS_BATCH) $(dump_temacs_args)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1294
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1295 ########################### Build rules
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1296
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1297 ## 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
1298 ## 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
1299 ## 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
1300
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1301 all: installation $(OUTDIR)\nul $(LIB_SRC_TOOLS) \
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1302 update-elc update-elc-2 \
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1303 $(LISP)/finder-inf.el load-shadows info
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1304
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1305 $(TEMACS_BROWSE): $(TEMACS_OBJS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1306 @dir /b/s $(OUTDIR)\*.sbr > $(OUTDIR)\bscmake.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1307 bscmake -nologo -o$(TEMACS_BROWSE) @$(OUTDIR)\bscmake.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1308 -$(DEL) $(OUTDIR)\bscmake.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1309
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1310 ## (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
1311
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1312 $(OUTDIR)\dump-id.obj : $(BLDSRC)\dump-id.c
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1313 $(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
1314
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1315 $(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
1316 cd $(BLDSRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1317 $(BLDLIB_SRC)\make-dump-id.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1318
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1319 $(OUTDIR)\temacs.res: $(NT)\xemacs.rc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1320 cd $(NT)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1321 rc -Fo$@ xemacs.rc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1322
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1323 ## (2) Link the XEmacs executable
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1324
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1325 !if $(USE_PORTABLE_DUMPER)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1326 TEMACS_DUMP_DEP = $(OUTDIR)\dump-id.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1327 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1328 TEMACS_DUMP_DEP = $(OUTDIR)\temacs.res
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1329 !endif
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 $(RAW_EXE): $(TEMACS_OBJS) $(LASTFILE) $(TEMACS_DUMP_DEP)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1332 link.exe @<<
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1333 $(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
1334 <<
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1335
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1336 !if $(DEBUG_XEMACS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1337 $(RAW_EXE): $(TEMACS_BROWSE)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1338 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1339
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1340 ## (3) Update the .elc's needed for dumping
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1341
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1342 update-elc: $(RAW_EXE)
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1343 $(TEMACS_BATCH) -l $(LISP)\update-elc.el
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1344
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1345 ## 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
1346 $(BLDSRC)\NEEDTODUMP:
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1347 @echo >$(BLDSRC)\NEEDTODUMP
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1348
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1349 ## (4) Build the DOC file
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1350
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1351 DOC=$(BLDLIB_SRC)\DOC
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1352
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1353 docfile ::
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1354 if exist $(DOC) $(DEL) $(DOC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1355 docfile :: $(DOC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1356
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1357 # We need to write the QUICK_BUILD stuff as-is (and not just have no
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1358 # dependencies for DOC) because DOC needs TEMACS_OBJS as dependencies to
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1359 # 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
1360 # calculates dependencies; see comments in src/Makefile.in.in.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1361 $(DOC): $(BLDLIB_SRC)\make-docfile.exe $(BLDSRC)\NEEDTODUMP $(TEMACS_OBJS)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1362 !if $(QUICK_BUILD)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1363 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
1364 $(**)
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 -touch $(DOC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1367 !else
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1368 $(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
1369 $(**)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1370 <<
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1371 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1372
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1373 ## (5) Dump
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1374
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1375 !if $(USE_PORTABLE_DUMPER)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1376 $(DUMP_TARGET): $(NT)\xemacs.rc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1377 !endif
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 # 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
1380 # requirements have changed.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1381
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1382 $(DUMP_TARGET): $(DOC) $(RAW_EXE) $(BLDSRC)\NEEDTODUMP
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1383 $(TEMACS_BATCH) -l $(LISP)\loadup.el dump
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1384 !if $(USE_PORTABLE_DUMPER)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1385 cd $(BLDSRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1386 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
1387 # 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
1388 # 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
1389 link.exe @<<
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1390 $(TEMACS_LFLAGS) -section:.rsrc,rw -out:$(BLDSRC)\xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
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 -$(DEL) $(BLDSRC)\xemacs.dmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1393 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1394
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1395 ## (6) Update the remaining .elc's, post-dumping
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1396
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1397 update-elc-2: $(DUMP_TARGET)
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1398 $(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
1399
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1400 ## (7) Other random stuff
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1401
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1402 $(LISP)/finder-inf.el: update-elc-2
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1403 !if !$(QUICK_BUILD)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1404 @echo Building finder database ...
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1405 $(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
1406 -l finder -f finder-compile-keywords
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1407 @echo Building finder database ...(done)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1408 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1409
1346
01c57eb70ae9 [xemacs-hg @ 2003-03-09 02:27:27 by ben]
ben
parents: 1333
diff changeset
1410 load-shadows: update-elc-2
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1411 !if !$(QUICK_BUILD)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1412 @echo Testing for Lisp shadows ...
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1413 @$(XEMACS_BATCH) -f list-load-path-shadows
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1414 !endif
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1415
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1416 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1417 ## Other random crap ##
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1418 #########################################################################
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1419
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1420 ########################### Automated tests
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1421
1330
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1422 testdir = ../tests/automated
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1423 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
1424
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1425 check:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1426 cd $(BLDSRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1427 $(DO_XEMACS) $(batch_test_emacs)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1428
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1429 check-temacs:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1430 cd $(BLDSRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1431 $(TEMACS_BATCH) $(run_temacs_args) $(batch_test_emacs)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1432
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1433 check-features: all
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1434 cd $(BLDSRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1435 $(XEMACS_BATCH) -l check-features.el
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1436
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1437
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1438 ########################### Rebuilding TAGS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1439
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1440 tags:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1441 @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
1442 @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
1443 @echo (setq tag-table-alist
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1444 @echo '(("$(SRCROOT:\=\\)\\" . "$(SRCROOT:\=\\)\\")))
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1445 cd $(SRCROOT)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1446 -$(DEL) TAGS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1447 set PATH=lib-src;%PATH%
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1448 # 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
1449 # 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
1450 # 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
1451 # 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
1452 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
1453 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
1454
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1455 ########################### Install the system
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1456
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1457 # use this rule to install the system
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1458 install: all
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1459 cd $(NT)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1460 set COPYCMD=/y
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1461 @echo Installing in $(INSTALL_DIR) ...
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1462 @echo PlaceHolder > PlaceHolder
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1463 @$(COPY) PROBLEMS "$(INSTALL_DIR)\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1464 @$(COPY) PlaceHolder "$(INSTALL_DIR)\lock\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1465 -$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1466 @$(COPY) $(BLDLIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1467 @$(COPY) $(BLDLIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1468 @$(COPY) $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1469 @$(COPY) $(BLDSRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1470 @$(COPYDIR) $(SRCROOT)\etc "$(INSTALL_DIR)\etc\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1471 @$(COPYDIR) $(SRCROOT)\info "$(INSTALL_DIR)\info\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1472 @$(COPYDIR) $(SRCROOT)\lisp "$(INSTALL_DIR)\lisp\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1473 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1474 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1475 -$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1476 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1477 -$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1478 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1479 -$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1480 -$(DEL) PlaceHolder
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1481
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1482 ########################### clean
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1483
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1484 mostlyclean:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1485 -$(DEL) $(BLDROOT)\Installation
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1486 -$(DEL) $(OUTDIR)\*.lib
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1487 -$(DEL) $(OUTDIR)\*.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1488 -$(DEL) $(OUTDIR)\*.pdb
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1489 -$(DEL) $(OUTDIR)\*.res
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1490 -$(DEL) $(OUTDIR)\*.sbr
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1491 -$(DEL) $(BLDSRC)\*.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1492 -$(DEL) $(BLDSRC)\*.dmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1493 -$(DEL) $(BLDSRC)\*.map
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1494 -$(DEL) $(BLDSRC)\*.pdb
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1495 -$(DEL) $(BLDSRC)\NEEDTODUMP
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1496 -$(DEL) $(BLDSRC)\dump-id.c
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1497 -$(DEL) $(SRC)\*.bsc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1498 -$(DEL) $(BLDLIB_SRC)\*.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1499 -$(DEL) $(BLDLIB_SRC)\*.obj
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1500 -$(DEL) $(BLDLIB_SRC)\*.pdb
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1501 -$(DEL) $(BLDLIB_SRC)\*.res
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1502
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1503 versionclean:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1504 -$(DEL) $(BLDSRC)\xemacs.exe
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1505 -$(DEL) $(BLDLIB_SRC)\DOC
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1506
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1507 clean: mostlyclean versionclean
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1508 -$(DEL) $(SRCROOT)\TAGS
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1509 -$(DEL) $(LISP)\auto-autoloads.el*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1510 -$(DEL) $(LISP)\mule\auto-autoloads.el*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1511 -$(DEL) $(LISP)\custom-load.el*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1512 -$(DEL) $(LISP)\mule\custom-load.el*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1513
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1514 nicenclean: clean
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1515 -$(DEL) $(NT)\*.bak
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1516 -$(DEL) $(NT)\*.orig
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1517 -$(DEL) $(NT)\*.rej
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1518 -$(DEL) $(NT)\*.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1519 -$(DEL) $(LIB_SRC)\*.bak
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1520 -$(DEL) $(LIB_SRC)\*.orig
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1521 -$(DEL) $(LIB_SRC)\*.rej
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1522 -$(DEL) $(LIB_SRC)\*.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1523 -$(DEL) $(SRC)\*.bak
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1524 -$(DEL) $(SRC)\*.orig
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1525 -$(DEL) $(SRC)\*.rej
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1526 -$(DEL) $(SRC)\*.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1527 -$(DEL) $(LISP)\*.bak
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1528 -$(DEL) $(LISP)\*.orig
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1529 -$(DEL) $(LISP)\*.rej
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1530 -$(DEL) $(LISP)\*.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1531
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1532 # Convenience target.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1533 # 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
1534 # 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
1535 # want to use distclean.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1536 configclean:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1537 -$(DEL) $(SRC)\config.h
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1538 -$(DEL) $(SRC)\paths.h
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1539 -$(DEL) $(SRC)\Emacs.ad.h
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1540
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1541 ## This is used in making a distribution.
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1542 ## Do not use it on development directories!
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1543 distclean: nicenclean configclean
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1544 -$(DEL) $(BLDLIB_SRC)\$(CONFIG_VALUES)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1545 -$(DEL) $(INFODIR)\*.info*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1546 -$(DEL) $(LISP)\*.elc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1547 -$(DEL) $(LISP)\mule\*.elc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1548 -$(DEL) $(LISP)\term\*.elc
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1549
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1550 realclean: distclean
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1551
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1552 #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
1553 #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
1554 #whatever. So just leave it at "realclean"
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1555 extraclean: realclean
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1556 # -$(DEL) *~
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1557 # -$(DEL) *.*~
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1558 # -$(DEL) #*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1559 # -$(DEL) m\*~
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1560 # -$(DEL) m\#*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1561 # -$(DEL) s\*~
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1562 # -$(DEL) s\#*
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1563
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1564 ########################### Rebuild source dependency file
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1565
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1566 depend:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1567 cd $(SRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1568 perl ./make-src-depend > depend.tmp
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1569 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
1570
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1571 ########################### Redo Unicode-Encapsulation
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1572
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1573 unicode-encapsulate:
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1574 cd $(SRC)
4542b72c005e [xemacs-hg @ 2003-03-01 07:25:26 by ben]
ben
parents: 1315
diff changeset
1575 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
1576