Commit | Line | Data |
---|---|---|
eb4252f7 RS |
1 | # Makefile for lib-src subdirectory in GNU Emacs. |
2 | # Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc. | |
29ed0542 | 3 | |
eb4252f7 | 4 | # This file is part of GNU Emacs. |
29ed0542 | 5 | |
eb4252f7 RS |
6 | # GNU Emacs is free software; you can redistribute it and/or modify |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2, or (at your option) | |
9 | # any later version. | |
29ed0542 | 10 | |
eb4252f7 RS |
11 | # GNU Emacs is distributed in the hope that it will be useful, |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
29ed0542 | 15 | |
eb4252f7 RS |
16 | # You should have received a copy of the GNU General Public License |
17 | # along with GNU Emacs; see the file COPYING. If not, write to | |
3b7ad313 EN |
18 | # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | # Boston, MA 02111-1307, USA. | |
29ed0542 | 20 | |
eb4252f7 RS |
21 | # Avoid trouble on systems where the `SHELL' variable might be |
22 | # inherited from the environment. | |
f7dbcf3c JB |
23 | SHELL = /bin/sh |
24 | ||
eb4252f7 | 25 | # ==================== Things `configure' will edit ==================== |
c71beb75 | 26 | |
b93f2493 BF |
27 | CC=@CC@ |
28 | CFLAGS=@CFLAGS@ | |
29 | ALLOCA=@ALLOCA@ | |
b93f2493 BF |
30 | YACC=@YACC@ |
31 | version=@version@ | |
cf770692 | 32 | configuration=@configuration@ |
c71beb75 | 33 | |
eb4252f7 | 34 | # ==================== Where To Install Things ==================== |
c71beb75 | 35 | |
eb4252f7 RS |
36 | # The default location for installation. Everything is placed in |
37 | # subdirectories of this directory. The default values for many of | |
38 | # the variables below are expressed in terms of this one, so you may | |
39 | # not need to change them. This is set with the --prefix option to | |
40 | # `../configure'. | |
b93f2493 | 41 | prefix=@prefix@ |
c71beb75 | 42 | |
eb4252f7 RS |
43 | # Like `prefix', but used for architecture-specific files. This is |
44 | # set with the --exec-prefix option to `../configure'. | |
b93f2493 | 45 | exec_prefix=@exec_prefix@ |
c71beb75 | 46 | |
eb4252f7 RS |
47 | # Where to install Emacs and other binaries that people will want to |
48 | # run directly (like etags). This is set with the --bindir option | |
49 | # to `../configure'. | |
b93f2493 | 50 | bindir=@bindir@ |
c71beb75 | 51 | |
eb4252f7 RS |
52 | # Where to install and expect executable files to be run by Emacs |
53 | # rather than directly by users, and other architecture-dependent | |
54 | # data. ${archlibdir} is usually below this. This is set with the | |
424b6d2b RS |
55 | # --libexecdir option to `../configure'. |
56 | libexecdir=@libexecdir@ | |
c71beb75 | 57 | |
eb4252f7 RS |
58 | # Where to find the source code. This is set by the configure |
59 | # script's `--srcdir' option. However, the value of ${srcdir} in | |
60 | # this makefile is not identical to what was specified with --srcdir, | |
61 | # since the variable here has `/lib-src' added at the end. | |
5126d3b7 RS |
62 | |
63 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | |
b93f2493 BF |
64 | srcdir=@srcdir@ |
65 | VPATH=@srcdir@ | |
c71beb75 | 66 | |
2d521ee6 DM |
67 | # The top-level source directory, also set by configure. |
68 | top_srcdir=@top_srcdir@ | |
69 | ||
eb4252f7 | 70 | # ==================== Emacs-specific directories ==================== |
c71beb75 | 71 | |
eb4252f7 RS |
72 | # These variables hold the values Emacs will actually use. They are |
73 | # based on the values of the standard Make variables above. | |
c71beb75 | 74 | |
eb4252f7 RS |
75 | # Where to put executables to be run by Emacs rather than the user. |
76 | # This path usually includes the Emacs version and configuration name, | |
77 | # so that multiple configurations for multiple versions of Emacs may | |
78 | # be installed at once. This can be set with the --archlibdir option | |
79 | # to `../configure'. | |
b93f2493 | 80 | archlibdir=@archlibdir@ |
41f86d5a | 81 | |
eb4252f7 | 82 | # ==================== Utility Programs for the Build ================= |
c71beb75 | 83 | |
eb4252f7 | 84 | # ../configure figures out the correct values for these. |
b93f2493 | 85 | INSTALL = @INSTALL@ |
b93f2493 BF |
86 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
87 | INSTALL_DATA = @INSTALL_DATA@ | |
ae6ed0ac RS |
88 | # By default, we uphold the dignity of our programs. |
89 | INSTALL_STRIP = | |
c71beb75 | 90 | |
eb4252f7 | 91 | # ========================== Lists of Files =========================== |
f7dbcf3c | 92 | |
eb4252f7 RS |
93 | # Things that a user might actually run, |
94 | # which should be installed in bindir. | |
adb0a8d3 | 95 | INSTALLABLES = etags ctags emacsclient b2m ebrowse |
e511d7f4 | 96 | INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog |
f7dbcf3c | 97 | |
eb4252f7 RS |
98 | # Things that Emacs runs internally, or during the build process, |
99 | # which should not be installed in bindir. | |
ebf9219e RS |
100 | UTILITIES= profile digest-doc \ |
101 | sorted-doc movemail cvtmail fakemail yow emacsserver hexl | |
f7dbcf3c | 102 | |
2d521ee6 | 103 | DONT_INSTALL= test-distrib make-docfile |
5aae6601 | 104 | |
eb4252f7 RS |
105 | # Like UTILITIES, but they're not system-dependent, and should not be |
106 | # deleted by the distclean target. | |
b7cceaf1 JB |
107 | SCRIPTS= rcs2log vcdiff |
108 | ||
0d73e8e3 | 109 | EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
f7dbcf3c | 110 | |
5c579a75 | 111 | SOURCES = COPYING ChangeLog Makefile.in README emacs.csh \ |
41f86d5a ER |
112 | makedoc.com *.[chy] rcs2log vcdiff |
113 | ||
81f94052 RS |
114 | # Additional -D flags for movemail (add to MOVE_FLAGS if desired): |
115 | # MAIL_USE_POP Support mail retrieval from a POP mailbox. | |
116 | # MAIL_USE_MMDF Support MMDF mailboxes. | |
117 | # MAIL_USE_FLOCK Use flock for file locking (see the comments | |
118 | # about locking in movemail.c) | |
119 | # MAIL_UNLINK_SPOOL Unlink the user's spool mailbox after reading | |
120 | # it (instead of just emptying it). | |
121 | # KERBEROS Support Kerberized POP. | |
122 | # KRB5 Support Kerberos Version 5 pop instead of | |
123 | # Version 4 (define this in addition to | |
124 | # KERBEROS). | |
125 | # HESIOD Support Hesiod lookups of user mailboxes. | |
126 | # MAILHOST A string, the host name of the default POP | |
127 | # mail host for the site. | |
128 | MOVE_FLAGS= | |
129 | ||
eb4252f7 RS |
130 | # ========================== start of cpp stuff ======================= |
131 | /* From here on, comments must be done in C syntax. */ | |
132 | ||
133 | #define NO_SHORTNAMES | |
fcd4533c | 134 | #define THIS_IS_MAKEFILE |
eb4252f7 RS |
135 | #define NOT_C_CODE |
136 | #include "../src/config.h" | |
137 | ||
89b3f894 RS |
138 | /* We won't really call alloca; |
139 | don't let the file name alloca.c get messed up. */ | |
140 | #ifdef alloca | |
141 | #undef alloca | |
142 | #endif | |
143 | ||
5e70aa9c RS |
144 | /* Some machines don't find the standard C libraries in the usual place. */ |
145 | #ifndef ORDINARY_LINK | |
fcd4533c KH |
146 | #ifndef LIB_STANDARD_LIBSRC |
147 | #define LIB_STANDARD_LIBSRC -lc | |
5e70aa9c RS |
148 | #endif |
149 | #else | |
fcd4533c KH |
150 | #ifndef LIB_STANDARD_LIBSRC |
151 | #define LIB_STANDARD_LIBSRC | |
5e70aa9c RS |
152 | #endif |
153 | #endif | |
154 | ||
f11c1c14 | 155 | /* Some s/SYSTEM.h files define this to request special libraries. */ |
eb4252f7 RS |
156 | #ifndef LIBS_SYSTEM |
157 | #define LIBS_SYSTEM | |
158 | #endif | |
159 | ||
f11c1c14 | 160 | /* Some m/MACHINE.h files define this to request special libraries. */ |
eb4252f7 RS |
161 | #ifndef LIBS_MACHINE |
162 | #define LIBS_MACHINE | |
163 | #endif | |
164 | ||
165 | #ifndef C_SWITCH_SYSTEM | |
166 | #define C_SWITCH_SYSTEM | |
167 | #endif | |
168 | ||
169 | #ifndef C_SWITCH_MACHINE | |
170 | #define C_SWITCH_MACHINE | |
171 | #endif | |
172 | ||
173 | #undef MOVEMAIL_NEEDS_BLESSING | |
174 | #ifndef MAIL_USE_FLOCK | |
175 | #ifndef MAIL_USE_LOCKF | |
176 | #define MOVEMAIL_NEEDS_BLESSING | |
177 | #endif | |
178 | #endif | |
179 | ||
180 | #ifdef MOVEMAIL_NEEDS_BLESSING | |
181 | #define BLESSMAIL blessmail | |
182 | #else | |
183 | #define BLESSMAIL | |
184 | #endif | |
185 | ||
ae6ed0ac | 186 | #ifdef KERBEROS |
93de505d | 187 | # ifdef HAVE_LIBKRB |
f616d119 | 188 | KRB4LIB = -lkrb |
93de505d RS |
189 | # else |
190 | # ifdef HAVE_LIBKRB4 | |
f616d119 | 191 | KRB4LIB = -lkrb4 |
93de505d RS |
192 | # endif |
193 | # endif | |
194 | # ifdef HAVE_LIBDES | |
f616d119 | 195 | DESLIB = -ldes |
93de505d RS |
196 | # else |
197 | # ifdef HAVE_LIBDES425 | |
f616d119 | 198 | DESLIB = -ldes425 |
93de505d RS |
199 | # endif |
200 | # endif | |
201 | # ifdef HAVE_LIBKRB5 | |
f616d119 | 202 | KRB5LIB = -lkrb5 |
93de505d | 203 | # endif |
84e70f78 KR |
204 | # ifdef HAVE_LIBK5CRYPTO |
205 | CRYPTOLIB = -lk5crypto | |
206 | # else | |
207 | # ifdef HAVE_LIBCRYPTO | |
f616d119 | 208 | CRYPTOLIB = -lcrypto |
84e70f78 | 209 | # endif |
93de505d RS |
210 | # endif |
211 | # ifdef HAVE_LIBCOM_ERR | |
f616d119 | 212 | COM_ERRLIB = -lcom_err |
93de505d | 213 | # endif |
665eba9d | 214 | #endif /* KERBEROS */ |
ae6ed0ac | 215 | |
bbcac09c | 216 | /* If HESIOD is defined, set this to "-lhesiod". */ |
84e70f78 KR |
217 | #ifdef HAVE_LIBHESIOD |
218 | # ifdef HAVE_LIBRESOLV | |
219 | HESIODLIB= -lhesiod -lresolv | |
220 | # else | |
221 | HESIODLIB= -lhesiod | |
222 | # endif | |
223 | #endif | |
ae6ed0ac | 224 | |
bbcac09c | 225 | MOVE_LIBS=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB) |
6fd14a09 | 226 | |
6e3dda29 RS |
227 | #ifdef HAVE_LIBMAIL |
228 | LIBMAIL=-lmail | |
229 | #endif | |
230 | ||
fcd4533c | 231 | LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_STANDARD_LIBSRC |
eb4252f7 | 232 | |
29ed0542 RS |
233 | /* We need to #define emacs to get the right versions of some files. |
234 | Some other files - those shared with other GNU utilities - need | |
235 | HAVE_CONFIG_H #defined before they know they can take advantage of | |
236 | the information in ../src/config.h. */ | |
56bdb2f5 | 237 | ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
3e883207 | 238 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
56bdb2f5 | 239 | LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
3e883207 | 240 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} |
56bdb2f5 | 241 | CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
b2d7a9c7 | 242 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} |
56bdb2f5 RS |
243 | /* This was all of CPP_CFLAGS except -Demacs. |
244 | Now that -Demacs has been deleted from CPP_CFLAGS, | |
245 | this is actually the same as CPP_CFLAGS, but let's not delete it yet. */ | |
1d0b600d | 246 | BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
20cda85b | 247 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} |
29ed0542 RS |
248 | \f |
249 | /* This is the default compilation command. | |
250 | But we should never rely on it, because some make version | |
251 | failed to find it for getopt.o. | |
252 | Using an explicit command made it work. */ | |
c38a040d | 253 | .c.o: |
5293b432 | 254 | ${CC} -c ${CPP_CFLAGS} $< |
c71beb75 | 255 | |
0731825e | 256 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} |
c71beb75 | 257 | |
c6207d0d | 258 | #ifdef MOVEMAIL_NEEDS_BLESSING |
f675ecb5 | 259 | blessmail: |
828524de | 260 | ../src/emacs -batch -l $(srcdir)/../lisp/mail/blessmail.el |
c6207d0d KH |
261 | chmod +x blessmail |
262 | #endif | |
263 | ||
d19f95fe RS |
264 | maybe-blessmail: BLESSMAIL |
265 | #ifdef MOVEMAIL_NEEDS_BLESSING | |
266 | /* Don't charge ahead and do it! Let the installer decide. | |
267 | ./blessmail ${archlibdir}/movemail */ | |
268 | @if [ `wc -l <blessmail` != 2 ] ; then \ | |
269 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | |
270 | echo Assuming $$dir is really the mail spool directory, you should; \ | |
fed76e78 | 271 | echo run lib-src/blessmail ${archlibdir}/movemail; \ |
d19f95fe | 272 | echo as root, to give movemail appropriate permissions.; \ |
eb4252f7 | 273 | echo Do that after running make install.; \ |
d19f95fe RS |
274 | fi |
275 | #endif | |
276 | ||
29ed0542 RS |
277 | /* Install the internal utilities. Until they are installed, we can |
278 | just run them directly from lib-src. */ | |
d19f95fe | 279 | ${archlibdir}: all |
c71beb75 JB |
280 | @echo |
281 | @echo "Installing utilities run internally by Emacs." | |
2d521ee6 | 282 | $(top_srcdir)/mkinstalldirs ${archlibdir} |
f7d3e7d0 | 283 | if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ |
544d556f | 284 | for file in ${UTILITIES}; do \ |
ae6ed0ac | 285 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \ |
544d556f | 286 | done ; \ |
ad600343 RS |
287 | fi |
288 | if [ `(cd ${archlibdir} && /bin/pwd)` \ | |
289 | != `(cd ${srcdir} && /bin/pwd)` ]; then \ | |
544d556f | 290 | for file in ${SCRIPTS}; do \ |
c61a529e | 291 | $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file; \ |
c71beb75 | 292 | done ; \ |
0268f19b | 293 | fi |
f7dbcf3c | 294 | |
c71beb75 JB |
295 | install: ${archlibdir} |
296 | @echo | |
297 | @echo "Installing utilities for users to run." | |
b70cff71 | 298 | for file in ${INSTALLABLES} ; do \ |
3e2c8981 | 299 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} ${bindir}/$${file} ; \ |
c37a4294 | 300 | chmod a+rx ${bindir}/$${file}; \ |
0268f19b | 301 | done |
b70cff71 | 302 | for file in ${INSTALLABLE_SCRIPTS} ; do \ |
c61a529e | 303 | $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file} ; \ |
c37a4294 | 304 | chmod a+rx ${bindir}/$${file}; \ |
0268f19b | 305 | done |
f7dbcf3c | 306 | |
39b649dd JB |
307 | uninstall: |
308 | (cd ${bindir}; \ | |
309 | rm -f ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}) | |
310 | (cd ${archlibdir}; \ | |
311 | rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) | |
312 | ||
a17d2c25 RS |
313 | mostlyclean: |
314 | -rm -f core *.o | |
315 | ||
316 | clean: mostlyclean | |
5aae6601 | 317 | -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} |
8598a0f1 | 318 | -rm -f ../etc/DOC* fns*.el *.tab.c *.tab.h |
f7dbcf3c | 319 | |
39b649dd | 320 | distclean: clean |
5c579a75 | 321 | -rm -f TAGS |
b2959c9d | 322 | -rm -f Makefile Makefile.c blessmail |
f7dbcf3c | 323 | |
26873b72 | 324 | maintainer-clean: distclean |
39b649dd | 325 | true |
c71beb75 | 326 | |
a01c76d7 | 327 | extraclean: maintainer-clean |
c71beb75 | 328 | -rm -f *~ \#* |
f7dbcf3c | 329 | |
41f86d5a ER |
330 | unlock: |
331 | chmod u+w $(SOURCES) | |
332 | ||
333 | relock: | |
334 | chmod u-w $(SOURCES) | |
335 | ||
29ed0542 | 336 | /* Test the contents of the directory. */ |
f7dbcf3c JB |
337 | check: |
338 | @echo "We don't have any tests for GNU Emacs yet." | |
339 | ||
93548af1 | 340 | tags: TAGS |
f7dbcf3c JB |
341 | TAGS: etags |
342 | etags *.[ch] | |
343 | ||
29ed0542 RS |
344 | /* This verifies that the non-ASCII characters in the file `testfile' |
345 | have not been clobbered by whatever means were used to copy and | |
346 | distribute Emacs. If they were clobbered, all the .elc files were | |
347 | clobbered too. */ | |
0d73e8e3 | 348 | test-distrib: ${srcdir}/test-distrib.c |
c88a7f88 | 349 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
0d73e8e3 | 350 | ./test-distrib ${srcdir}/testfile |
f7dbcf3c | 351 | |
c38a040d | 352 | GETOPTOBJS = getopt.o getopt1.o $(ALLOCA) |
0d73e8e3 | 353 | GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h |
b90589d8 | 354 | getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h |
0268f19b | 355 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c |
b90589d8 | 356 | getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h |
0268f19b | 357 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c |
20cda85b | 358 | alloca.o: ${srcdir}/alloca.c |
32b4c0e9 | 359 | ${CC} -Demacs -c ${BASE_CFLAGS} ${srcdir}/alloca.c |
f7dbcf3c | 360 | |
e63ceebf RS |
361 | #ifdef REGEXP_IN_LIBC |
362 | REGEXPOBJ = | |
363 | REGEXPDEPS = | |
364 | #else | |
66ab94d9 | 365 | REGEXPOBJ = regex.o |
5126d3b7 | 366 | REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h |
e63ceebf RS |
367 | #endif |
368 | ||
5126d3b7 | 369 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h |
1d0b600d | 370 | ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c |
66ab94d9 KH |
371 | |
372 | etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h | |
0b532ca2 | 373 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags |
f7dbcf3c | 374 | |
adb0a8d3 GM |
375 | ebrowse: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h |
376 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse | |
377 | ||
29ed0542 RS |
378 | /* We depend on etags to assure that parallel makes don't write two |
379 | etags.o files on top of each other. */ | |
1ff164dd | 380 | ctags: etags |
59aacecb | 381 | $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags |
f7dbcf3c | 382 | |
efa21132 | 383 | profile: ${srcdir}/profile.c ../src/config.h |
379fb9c8 RS |
384 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile |
385 | ||
efa21132 | 386 | make-docfile: ${srcdir}/make-docfile.c ../src/config.h |
3e883207 | 387 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile |
f7dbcf3c | 388 | |
0d73e8e3 | 389 | digest-doc: ${srcdir}/digest-doc.c |
3e883207 | 390 | $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc |
f7dbcf3c | 391 | |
1e3255d8 | 392 | sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA} |
3e883207 | 393 | $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc |
f7dbcf3c | 394 | |
fa52fcb5 | 395 | b2m: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) |
1817145f KH |
396 | $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \ |
397 | $(GETOPTOBJS) $(LOADLIBES) -o b2m | |
f7dbcf3c | 398 | |
7c1b5778 RS |
399 | movemail: movemail.o pop.o $(GETOPTDEPS) |
400 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBMAIL) $(MOVE_LIBS) -o movemail | |
81f94052 RS |
401 | |
402 | movemail.o: ${srcdir}/movemail.c ../src/config.h | |
56bdb2f5 | 403 | $(CC) -c ${CPP_CFLAGS} -Demacs ${MOVE_FLAGS} ${srcdir}/movemail.c |
81f94052 | 404 | |
93c8d183 | 405 | pop.o: ${srcdir}/pop.c ../src/config.h |
81f94052 | 406 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c |
f7dbcf3c | 407 | |
0d73e8e3 | 408 | cvtmail: ${srcdir}/cvtmail.c |
3e883207 | 409 | $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail |
f7dbcf3c | 410 | |
0d73e8e3 | 411 | fakemail: ${srcdir}/fakemail.c ../src/config.h |
3e883207 | 412 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail |
f7dbcf3c | 413 | |
4c32bfb9 | 414 | yow: ${srcdir}/yow.c ../src/epaths.h |
3e883207 | 415 | $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow |
f7dbcf3c | 416 | |
0d73e8e3 | 417 | emacsserver: ${srcdir}/emacsserver.c ../src/config.h |
3e883207 | 418 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver |
f7dbcf3c | 419 | |
deec6f99 RS |
420 | emacsclient: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS) |
421 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \ | |
422 | -DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \ | |
423 | $(LOADLIBES) -o emacsclient | |
f7dbcf3c | 424 | |
efa21132 | 425 | hexl: ${srcdir}/hexl.c ../src/config.h |
3e883207 | 426 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
f7dbcf3c | 427 | |
29ed0542 | 428 | /* These are NOT included in INSTALLABLES or UTILITIES. |
b2959c9d | 429 | See ../src/Makefile.in. */ |
0d73e8e3 | 430 | emacstool: ${srcdir}/emacstool.c |
3e883207 | 431 | $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \ |
f7dbcf3c JB |
432 | -lsuntool -lsunwindow -lpixrect $(LOADLIBES) |
433 | ||
29ed0542 | 434 | /* For SUN Japanese Language Environment. */ |
0d73e8e3 | 435 | nemacstool: ${srcdir}/emacstool.c |
3e883207 | 436 | $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \ |
f7dbcf3c JB |
437 | -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES) |
438 | ||
0d73e8e3 | 439 | xvetool: ${srcdir}/emacstool.c |
3e883207 | 440 | $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \ |
f7dbcf3c JB |
441 | -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ |
442 | $(LOADLIBES) | |
443 | ||
0d73e8e3 | 444 | xveterm: ${srcdir}/emacstool.c |
3e883207 | 445 | $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \ |
f7dbcf3c JB |
446 | -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ |
447 | $(LOADLIBES) |