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