annotate lib-src/Makefile.in @ 0:376386a54a3c r19-14

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