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