(${archlibdir}): Don't conditionalize on
[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
7451222f
CW
294/* If the following commands fail, that is not a big deal.
295 update-game-score will detect at runtime that it is not setuid,
296 and handle things accordingly. */
297 if test ${gamedir} != no && chown ${gameuser} ${archlibdir}/update-game-score && chmod u+s ${archlibdir}/update-game-score; then \
298 $(top_srcdir)/mkinstalldirs ${gamedir}; \
299 chown ${gameuser} ${gamedir}; \
300 chmod u=rwx,g=rwx,o=rx ${gamedir}; \
301 touch ${gamedir}/snake-scores; \
302 touch ${gamedir}/tetris-scores; \
303 fi
ad600343
RS
304 if [ `(cd ${archlibdir} && /bin/pwd)` \
305 != `(cd ${srcdir} && /bin/pwd)` ]; then \
544d556f 306 for file in ${SCRIPTS}; do \
c61a529e 307 $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file; \
c71beb75 308 done ; \
0268f19b 309 fi
f7dbcf3c 310
c71beb75
JB
311install: ${archlibdir}
312 @echo
313 @echo "Installing utilities for users to run."
b70cff71 314 for file in ${INSTALLABLES} ; do \
a4663fed
PJ
315 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
316 chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
0268f19b 317 done
b70cff71 318 for file in ${INSTALLABLE_SCRIPTS} ; do \
a4663fed
PJ
319 $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
320 chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
0268f19b 321 done
f7dbcf3c 322
39b649dd
JB
323uninstall:
324 (cd ${bindir}; \
a4663fed
PJ
325 for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \
326 rm -f ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
327 done)
39b649dd
JB
328 (cd ${archlibdir}; \
329 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS})
330
a17d2c25
RS
331mostlyclean:
332 -rm -f core *.o
333
334clean: mostlyclean
5aae6601 335 -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
1405e9d0 336 -rm -f fns*.el *.tab.c *.tab.h
f7dbcf3c 337
39b649dd 338distclean: clean
5c579a75 339 -rm -f TAGS
b2959c9d 340 -rm -f Makefile Makefile.c blessmail
f7dbcf3c 341
26873b72 342maintainer-clean: distclean
39b649dd 343 true
c71beb75 344
a01c76d7 345extraclean: maintainer-clean
c71beb75 346 -rm -f *~ \#*
f7dbcf3c 347
41f86d5a
ER
348unlock:
349 chmod u+w $(SOURCES)
350
351relock:
352 chmod u-w $(SOURCES)
353
29ed0542 354/* Test the contents of the directory. */
f7dbcf3c
JB
355check:
356 @echo "We don't have any tests for GNU Emacs yet."
357
93548af1 358tags: TAGS
f7dbcf3c
JB
359TAGS: etags
360 etags *.[ch]
361
29ed0542
RS
362/* This verifies that the non-ASCII characters in the file `testfile'
363 have not been clobbered by whatever means were used to copy and
364 distribute Emacs. If they were clobbered, all the .elc files were
365 clobbered too. */
0d73e8e3 366test-distrib: ${srcdir}/test-distrib.c
c88a7f88 367 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
0d73e8e3 368 ./test-distrib ${srcdir}/testfile
f7dbcf3c 369
c38a040d 370GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
0d73e8e3 371GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
b90589d8 372getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
0268f19b 373 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
b90589d8 374getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
0268f19b 375 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
20cda85b 376alloca.o: ${srcdir}/alloca.c
32b4c0e9 377 ${CC} -Demacs -c ${BASE_CFLAGS} ${srcdir}/alloca.c
f7dbcf3c 378
e63ceebf
RS
379#ifdef REGEXP_IN_LIBC
380REGEXPOBJ =
381REGEXPDEPS =
382#else
66ab94d9 383REGEXPOBJ = regex.o
5126d3b7 384REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
e63ceebf
RS
385#endif
386
5126d3b7 387regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
1d0b600d 388 ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
66ab94d9
KH
389
390etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
0b532ca2 391 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags
f7dbcf3c 392
adb0a8d3
GM
393ebrowse: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h
394 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse
395
29ed0542
RS
396/* We depend on etags to assure that parallel makes don't write two
397 etags.o files on top of each other. */
1ff164dd 398ctags: etags
59aacecb 399 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags
f7dbcf3c 400
efa21132 401profile: ${srcdir}/profile.c ../src/config.h
379fb9c8
RS
402 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
403
efa21132 404make-docfile: ${srcdir}/make-docfile.c ../src/config.h
3e883207 405 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
f7dbcf3c 406
0d73e8e3 407digest-doc: ${srcdir}/digest-doc.c
3e883207 408 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
f7dbcf3c 409
1e3255d8 410sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA}
3e883207 411 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
f7dbcf3c 412
fa52fcb5 413b2m: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
1817145f
KH
414 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \
415 $(GETOPTOBJS) $(LOADLIBES) -o b2m
f7dbcf3c 416
7c1b5778
RS
417movemail: movemail.o pop.o $(GETOPTDEPS)
418 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBMAIL) $(MOVE_LIBS) -o movemail
81f94052
RS
419
420movemail.o: ${srcdir}/movemail.c ../src/config.h
56bdb2f5 421 $(CC) -c ${CPP_CFLAGS} -Demacs ${MOVE_FLAGS} ${srcdir}/movemail.c
81f94052 422
93c8d183 423pop.o: ${srcdir}/pop.c ../src/config.h
81f94052 424 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
f7dbcf3c 425
0d73e8e3 426cvtmail: ${srcdir}/cvtmail.c
3e883207 427 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
f7dbcf3c 428
0d73e8e3 429fakemail: ${srcdir}/fakemail.c ../src/config.h
3e883207 430 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
f7dbcf3c 431
4c32bfb9 432yow: ${srcdir}/yow.c ../src/epaths.h
3e883207 433 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
f7dbcf3c 434
0d73e8e3 435emacsserver: ${srcdir}/emacsserver.c ../src/config.h
3e883207 436 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
f7dbcf3c 437
deec6f99
RS
438emacsclient: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS)
439 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \
440 -DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \
441 $(LOADLIBES) -o emacsclient
f7dbcf3c 442
efa21132 443hexl: ${srcdir}/hexl.c ../src/config.h
3e883207 444 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
f7dbcf3c 445
1ba1fb11
CW
446update-game-score: ${srcdir}/update-game-score.c ../src/config.h
447 $(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score
448
29ed0542 449/* These are NOT included in INSTALLABLES or UTILITIES.
b2959c9d 450 See ../src/Makefile.in. */
0d73e8e3 451emacstool: ${srcdir}/emacstool.c
3e883207 452 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \
f7dbcf3c
JB
453 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
454
29ed0542 455/* For SUN Japanese Language Environment. */
0d73e8e3 456nemacstool: ${srcdir}/emacstool.c
3e883207 457 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \
f7dbcf3c
JB
458 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
459
0d73e8e3 460xvetool: ${srcdir}/emacstool.c
3e883207 461 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \
f7dbcf3c
JB
462 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
463 $(LOADLIBES)
464
0d73e8e3 465xveterm: ${srcdir}/emacstool.c
3e883207 466 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
f7dbcf3c
JB
467 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
468 $(LOADLIBES)