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