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