annotate lib-src/Makefile.in.in @ 84:ac0620f6398e r20-0b92

Import from CVS: tag r20-0b92
author cvs
date Mon, 13 Aug 2007 09:08:29 +0200
parents 1ce6082ce73f
children 0d2f883870bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Makefile for lib-src subdirectory in XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 /* Note: FSF Makefile.in.in does something weird so that the comments
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 above a certain point in this file are in shell format instead of
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
24 in C format. How the hell is this supposed to work? */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
26 /* Avoid trouble on systems where the "SHELL" variable might be
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 inherited from the environment. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 SHELL = /bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
30 /* Some people use these in paths they define.
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
31 This is a horrible kludge - should we really use CPP
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
32 to pre-process Makefiles? */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #undef sparc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #undef sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 #undef unix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #undef sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 #undef NeXT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #undef mips
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
39 #undef i386
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
41 /* ==================== Things "configure" will edit ==================== */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 CC=@CC@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 CFLAGS=@CFLAGS@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ALLOCA=@ALLOCA@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 YACC=@YACC@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 LN_S=@LN_S@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 version=@version@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 configuration=@configuration@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 /* ==================== Where To Install Things ==================== */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 /* The default location for installation. Everything is placed in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 subdirectories of this directory. The default values for many of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 the variables below are expressed in terms of this one, so you may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 not need to change them. This is set with the --prefix option to
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
57 "../configure". */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 prefix=@prefix@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
60 /* Like "prefix", but used for architecture-specific files. This is
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
61 set with the "--exec-prefix" option to "../configure". */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 exec_prefix=@exec_prefix@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 /* Where to install Emacs and other binaries that people will want to
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
65 run directly (like etags). This is set with the "--bindir" option
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
66 to "../configure". */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 bindir=@bindir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 /* Where to install and expect executable files to be run by Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 rather than directly by users, and other architecture-dependent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 data. ${archlibdir} is usually below this. This is set with the
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
72 --libdir option to "../configure". */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 libdir=@libdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 /* Where to find the source code. This is set by the configure
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
76 "--srcdir" option. However, the value of ${srcdir} in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 this makefile is not identical to what was specified with --srcdir,
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
78 since the variable here has "/lib-src" appended to the end. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 srcdir=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 /* ==================== Emacs-specific directories ==================== */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 /* These variables hold the values Emacs will actually use. They are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 based on the values of the standard Make variables above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 Where to put executables to be run by Emacs rather than the user.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 This path usually includes the Emacs version and configuration name,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 so that multiple configurations for multiple versions of Emacs may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 be installed at once. This can be set with the --archlibdir option
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
90 to "../configure". */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 archlibdir=@archlibdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 /* ==================== Utility Programs for the Build ================= */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 /* ../configure figures out the correct values for these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 INSTALL = @INSTALL@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 INSTALL_DATA = @INSTALL_DATA@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 /* ========================== Lists of Files =========================== */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 /* Things that a user might actually run,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 which should be installed in bindir. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 INSTALLABLES = etags ctags emacsclient b2m gnuclient gnuattach gnudoit
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
105 INSTALLABLE_SCRIPTS = rcs-checkin
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 /* Things that Emacs runs internally, or during the build process,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 which should not be installed in bindir. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 UTILITIES= make-path wakeup profile make-docfile digest-doc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 sorted-doc movemail cvtmail fakemail yow emacsserver hexl \
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
111 gnuserv mmencode
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
112 /* These need to be conditional on I18N3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
113 make-msgfile make-po */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
115 /* Like UTILITIES, but they are not system-dependent, and should not be
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 deleted by the distclean target. */
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
117 TM_SCRIPTS=tm-au tm-file tm-html tm-image tm-mpeg tm-plain tm-ps tmdecode
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
118 SCRIPTS= rcs2log vcdiff $(TM_SCRIPTS)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 SOURCES = COPYING ChangeLog Makefile.in.in README aixcc.lex emacs.csh \
26
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
123 makedoc.com *.[chy] $(SCRIPTS)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 /* ========================== start of cpp stuff ======================= */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 /* From here on, comments must be done in C syntax. (see comment above
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 about this.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 #define NO_SHORTNAMES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 #define THIS_IS_YMAKEFILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 #include "../src/config.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 /* With the traditional VPATH setting, it is not possible to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 simultaneously compile in-place and in another directory. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 mistaken definition is that *all* dependencies are searched for in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 the VPATH directory, rather than just the dependencies that are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 themselves targets. Thus, if there is an up-to-date .o file in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 in-place location, it will not get recompiled in the not-in-place
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 location.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
143 The GNU Make "vpath" directive continues this tradition, but at
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 least lets you restrict the classes of files that it applies to.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 This allows us to kludge around the problem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 #ifdef USE_GNU_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 vpath %.c @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 vpath %.h @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 /* now list files that should NOT be searched in the srcdir.
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
150 This includes any .c or .h built from something else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (e.g. a .in file). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 /* none here */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 VPATH=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
157 /* We will not really call alloca;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
158 do not let the file name alloca.c get messed up. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 #ifdef alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 #undef alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 /* Some s/*.h files define this to request special libraries. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 #ifndef LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 #define LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 /* Some m/*.h files define this to request special libraries. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 #ifndef LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 #define LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 #ifndef LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 #define LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 #ifndef LD_SWITCH_X_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 #define LD_SWITCH_X_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 #ifndef C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 #define C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 #ifndef C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 #define C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 #ifndef C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 #define C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 #ifndef C_SWITCH_X_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 #define C_SWITCH_X_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 #ifndef C_SWITCH_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 #define C_SWITCH_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 #ifndef LD_SWITCH_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 #define LD_SWITCH_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 #undef MOVEMAIL_NEEDS_BLESSING
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 #ifndef MAIL_USE_FLOCK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 #ifndef MAIL_USE_LOCKF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 #define MOVEMAIL_NEEDS_BLESSING
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 #ifdef MOVEMAIL_NEEDS_BLESSING
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 #define BLESSMAIL blessmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 #define BLESSMAIL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 #if defined (HAVE_SOCKS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 #define LIB_SOCKS -lsocks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 #define LIB_SOCKS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_SOCKS LD_SWITCH_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 LOAD_X_LIBES=LD_SWITCH_X_SITE LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 C_SWITCH_X=C_SWITCH_X_SITE C_SWITCH_X_SYSTEM C_SWITCH_SITE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 /* We need to #define emacs to get the right versions of some files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 Some other files - those shared with other GNU utilities - need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 HAVE_CONFIG_H #defined before they know they can take advantage of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 the information in ../src/config.h. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 -DSTDC_HEADERS -I. -I../src -I${srcdir} -I${srcdir}/../src \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H -DSTDC_HEADERS \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
241 /* Formerly -Demacs was missing, but it is needed to suppress the
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
242 defining of malloc to xmalloc. [Yes it is fucked up. Blame FSF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 for this.] */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 ALLOCA_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 /* This is the default compilation command.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 But we should never rely on it, because some make version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 failed to find it for getopt.o.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 Using an explicit command made it work. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 .c.o:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ${CC} -c ${CPP_CFLAGS} $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 all: ${UTILITIES} ${INSTALLABLES} ${SCRIPTS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
256 /* Make symlinks for shell scripts if using --srcdir */
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
257 rcs2log:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
258 ${LN_S} ${srcdir}/$@ $@
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
259 vcdiff:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
260 ${LN_S} ${srcdir}/$@ $@
26
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
261 tm-au :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
262 ${LN_S} ${srcdir}/$@ $@
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
263 tm-file :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
264 ${LN_S} ${srcdir}/$@ $@
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
265 tm-html :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
266 ${LN_S} ${srcdir}/$@ $@
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
267 tm-image :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
268 ${LN_S} ${srcdir}/$@ $@
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
269 tm-mpeg :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
270 ${LN_S} ${srcdir}/$@ $@
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
271 tm-plain :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
272 ${LN_S} ${srcdir}/$@ $@
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
273 tm-ps :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
274 ${LN_S} ${srcdir}/$@ $@
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
275 tmdecode :
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
276 ${LN_S} ${srcdir}/$@ $@
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 14
diff changeset
277
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 #ifdef MOVEMAIL_NEEDS_BLESSING
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 blessmail:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 ../src/emacs -batch -l ../lisp/blessmail.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 chmod +x blessmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 maybe-blessmail: BLESSMAIL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 #ifdef MOVEMAIL_NEEDS_BLESSING
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
287 /* Do not charge ahead and do it! Let the installer decide.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 ./blessmail ${archlibdir}/movemail */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 @if [ `wc -l <blessmail` != 2 ] ; then \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 echo Assuming $$dir is really the mail spool directory, you should; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 echo run lib-src/blessmail ${archlibdir}/movemail; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 echo as root, to give movemail appropriate permissions.; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 echo Do that after running make install.; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 /* Install the internal utilities. Until they are installed, we can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 just run them directly from lib-src. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 ${archlibdir}: all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 @echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 @echo "Installing utilities run internally by XEmacs."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 ./make-path ${archlibdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 for file in ${UTILITIES}; do \
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
306 (cd .. && $(INSTALL_PROGRAM) lib-src/$$file ${archlibdir}/$$file) ; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 done ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 if [ `(cd ${archlibdir} && /bin/pwd)` \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 != `(cd ${srcdir} && /bin/pwd)` ]; then \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 for file in ${SCRIPTS}; do \
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
312 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file); \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 done ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
316 /* We do not need to install "wakeup" explicitly, because it will be
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 copied when this whole directory is copied. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 install: ${archlibdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 @echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 @echo "Installing utilities for users to run."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 for file in ${INSTALLABLES} ; do \
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
322 (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 for file in ${INSTALLABLE_SCRIPTS} ; do \
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
325 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 uninstall:
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
329 (cd ${bindir} && \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 rm -f ${INSTALLABLES} ${INSTALLABLE_SCRIPTS})
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
331 (cd ${archlibdir} && \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 mostlyclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 -rm -f core *.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 clean: mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 -rm -f ${INSTALLABLES} ${UTILITIES}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 distclean: clean
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
341 -rm -f DOC *.tab.c *.tab.h aixcc.c TAGS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 -rm -f Makefile Makefile.in blessmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 realclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 extraclean: realclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 -rm -f *~ \#*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 unlock:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 chmod u+w $(SOURCES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 relock:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 chmod u-w $(SOURCES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 /* Test the contents of the directory. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 check:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 @echo "We don't have any tests for XEmacs yet."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 TAGS: etags
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 etags *.[ch]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 alloca.o: ${srcdir}/../src/alloca.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 ${CC} -c ${ALLOCA_CFLAGS} ${srcdir}/../src/alloca.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 #ifdef REGEXP_IN_LIBC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 REGEXOBJ =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 REGEXDEPS =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 REGEXOBJ = regex.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 REGEXDEPS = $(REGEXOBJ) ${srcdir}/../src/regex.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 $(CC) -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXDEPS) ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" -DETAGS_REGEXPS ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXOBJ) $(LOADLIBES) -o etags
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
386 /* We depend on etags to assure that parallel makes do not write two
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 etags.o files on top of each other. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 ctags: ${srcdir}/etags.c $(GETOPTDEPS) etags
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 wakeup: ${srcdir}/wakeup.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 $(CC) ${ALL_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 profile: ${srcdir}/profile.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 make-docfile: ${srcdir}/make-docfile.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 digest-doc: ${srcdir}/digest-doc.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 b2m: ${srcdir}/b2m.c ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
409 movemail: ${srcdir}/movemail.c ../src/config.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
410 $(CC) ${ALL_CFLAGS} ${srcdir}/movemail.c $(LOADLIBES) -o movemail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 cvtmail: ${srcdir}/cvtmail.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 fakemail: ${srcdir}/fakemail.c ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 yow: ${srcdir}/yow.c ../src/paths.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 emacsserver: ${srcdir}/emacsserver.c ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 emacsclient: ${srcdir}/emacsclient.c ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 hexl: ${srcdir}/hexl.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
430 make-msgfile: ${srcdir}/make-msgfile.c
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
431 $(CC) ${CPP_CFLAGS} ${srcdir}/make-msgfile.c $(LOADLIBES) -o make-msgfile
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
432
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
433 make-po: ${srcdir}/make-po.c
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
434 $(CC) ${CPP_CFLAGS} ${srcdir}/make-po.c $(LOADLIBES) -o make-po
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
435
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
436 /* Why oh why does HP not include half of the standard X distribution? */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 #if defined (HAVE_XAUTH)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 $(CC) -c ${CPP_CFLAGS} ${C_SWITCH_X} ${srcdir}/gnuslib.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 $(CC) ${ALL_CFLAGS} -o gnuclient ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 gnuattach: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h gnuclient
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 $(CC) ${ALL_CFLAGS} -o gnuattach -DGNUATTACH ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 gnudoit: ${srcdir}/gnudoit.c gnuslib.o ${srcdir}/gnuserv.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 $(CC) ${ALL_CFLAGS} -o gnudoit ${srcdir}/gnudoit.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 $(CC) ${ALL_CFLAGS} ${C_SWITCH_X} -o gnuserv ${srcdir}/gnuserv.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 #else /* !HAVE_XAUTH */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 $(CC) ${ALL_CFLAGS} -o gnuclient ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 gnuattach: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h gnuclient
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 $(CC) ${ALL_CFLAGS} -o gnuattach -DGNUATTACH ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 gnudoit: ${srcdir}/gnudoit.c gnuslib.o ${srcdir}/gnuserv.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 $(CC) ${ALL_CFLAGS} -o gnudoit ${srcdir}/gnudoit.c gnuslib.o $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 $(CC) ${ALL_CFLAGS} -o gnuserv ${srcdir}/gnuserv.c gnuslib.o $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 #endif /* !HAVE_XAUTH */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
463
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
464 /* mmencode binary is used by tm - but is really part of the metamail package */
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
465 /* mmencode.c was merged copy of mmencode.c and codes.c of metamail */
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
466 mmencode : ${srcdir}/mmencode.c
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
467 $(CC) ${ALL_CFLAGS} ${srcdir}/mmencode.c -o mmencode
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
468
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
469
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 /* The timer utility (timer.c, getdate.y) is not used in XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 because XEmacs provides built-in timer facilities. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 make-path: ${srcdir}/make-path.c ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 $(CC) $(ALL_CFLAGS) ${srcdir}/make-path.c -o make-path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 /* These are NOT included in INSTALLABLES or UTILITIES.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 See ../src/Makefile.in.in. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 emacstool: ${srcdir}/emacstool.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 /* For SUN Japanese Language Environment. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 nemacstool: ${srcdir}/emacstool.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 xvetool: ${srcdir}/emacstool.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 xveterm: ${srcdir}/emacstool.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 $(LOADLIBES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 aixcc: ${srcdir}/aixcc.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 $(CC) $(ALL_CFLAGS) -o aixcc ${srcdir}/aixcc.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 aixcc.c: ${srcdir}/aixcc.lex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 lex ${srcdir}/aixcc.lex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 mv lex.yy.c aixcc.c