Add --game-dir, --game-user. Test to see if we can use them.
[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
eb4252f7 85# ==================== Utility Programs for the Build =================
c71beb75 86
eb4252f7 87# ../configure figures out the correct values for these.
b93f2493 88INSTALL = @INSTALL@
b93f2493
BF
89INSTALL_PROGRAM = @INSTALL_PROGRAM@
90INSTALL_DATA = @INSTALL_DATA@
ae6ed0ac
RS
91# By default, we uphold the dignity of our programs.
92INSTALL_STRIP =
c71beb75 93
eb4252f7 94# ========================== Lists of Files ===========================
f7dbcf3c 95
eb4252f7
RS
96# Things that a user might actually run,
97# which should be installed in bindir.
adb0a8d3 98INSTALLABLES = etags ctags emacsclient b2m ebrowse
e511d7f4 99INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog
f7dbcf3c 100
eb4252f7
RS
101# Things that Emacs runs internally, or during the build process,
102# which should not be installed in bindir.
ebf9219e
RS
103UTILITIES= profile digest-doc \
104 sorted-doc movemail cvtmail fakemail yow emacsserver hexl
f7dbcf3c 105
2d521ee6 106DONT_INSTALL= test-distrib make-docfile
5aae6601 107
eb4252f7
RS
108# Like UTILITIES, but they're not system-dependent, and should not be
109# deleted by the distclean target.
b7cceaf1
JB
110SCRIPTS= rcs2log vcdiff
111
0d73e8e3 112EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
f7dbcf3c 113
5c579a75 114SOURCES = COPYING ChangeLog Makefile.in README emacs.csh \
41f86d5a
ER
115 makedoc.com *.[chy] rcs2log vcdiff
116
81f94052
RS
117# Additional -D flags for movemail (add to MOVE_FLAGS if desired):
118# MAIL_USE_POP Support mail retrieval from a POP mailbox.
119# MAIL_USE_MMDF Support MMDF mailboxes.
120# MAIL_USE_FLOCK Use flock for file locking (see the comments
121# about locking in movemail.c)
122# MAIL_UNLINK_SPOOL Unlink the user's spool mailbox after reading
123# it (instead of just emptying it).
124# KERBEROS Support Kerberized POP.
125# KRB5 Support Kerberos Version 5 pop instead of
126# Version 4 (define this in addition to
127# KERBEROS).
128# HESIOD Support Hesiod lookups of user mailboxes.
129# MAILHOST A string, the host name of the default POP
130# mail host for the site.
131MOVE_FLAGS=
132
eb4252f7
RS
133# ========================== start of cpp stuff =======================
134/* From here on, comments must be done in C syntax. */
135
136#define NO_SHORTNAMES
fcd4533c 137#define THIS_IS_MAKEFILE
eb4252f7
RS
138#define NOT_C_CODE
139#include "../src/config.h"
140
89b3f894
RS
141/* We won't really call alloca;
142 don't let the file name alloca.c get messed up. */
143#ifdef alloca
144#undef alloca
145#endif
146
5e70aa9c
RS
147/* Some machines don't find the standard C libraries in the usual place. */
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
bbcac09c 228MOVE_LIBS=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB)
6fd14a09 229
6e3dda29
RS
230#ifdef HAVE_LIBMAIL
231LIBMAIL=-lmail
232#endif
233
fcd4533c 234LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_STANDARD_LIBSRC
eb4252f7 235
29ed0542
RS
236/* We need to #define emacs to get the right versions of some files.
237 Some other files - those shared with other GNU utilities - need
238 HAVE_CONFIG_H #defined before they know they can take advantage of
239 the information in ../src/config.h. */
56bdb2f5 240ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
3e883207 241 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
56bdb2f5 242LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
3e883207 243 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
56bdb2f5 244CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
b2d7a9c7 245 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
56bdb2f5
RS
246/* This was all of CPP_CFLAGS except -Demacs.
247 Now that -Demacs has been deleted from CPP_CFLAGS,
248 this is actually the same as CPP_CFLAGS, but let's not delete it yet. */
1d0b600d 249BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
20cda85b 250 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
29ed0542
RS
251\f
252/* This is the default compilation command.
253 But we should never rely on it, because some make version
254 failed to find it for getopt.o.
255 Using an explicit command made it work. */
c38a040d 256.c.o:
5293b432 257 ${CC} -c ${CPP_CFLAGS} $<
c71beb75 258
0731825e 259all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES}
c71beb75 260
c6207d0d 261#ifdef MOVEMAIL_NEEDS_BLESSING
f675ecb5 262blessmail:
828524de 263 ../src/emacs -batch -l $(srcdir)/../lisp/mail/blessmail.el
c6207d0d
KH
264 chmod +x blessmail
265#endif
266
d19f95fe
RS
267maybe-blessmail: BLESSMAIL
268#ifdef MOVEMAIL_NEEDS_BLESSING
269/* Don't charge ahead and do it! Let the installer decide.
270 ./blessmail ${archlibdir}/movemail */
271 @if [ `wc -l <blessmail` != 2 ] ; then \
272 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
273 echo Assuming $$dir is really the mail spool directory, you should; \
fed76e78 274 echo run lib-src/blessmail ${archlibdir}/movemail; \
d19f95fe 275 echo as root, to give movemail appropriate permissions.; \
eb4252f7 276 echo Do that after running make install.; \
d19f95fe
RS
277 fi
278#endif
279
29ed0542
RS
280/* Install the internal utilities. Until they are installed, we can
281 just run them directly from lib-src. */
d19f95fe 282${archlibdir}: all
c71beb75
JB
283 @echo
284 @echo "Installing utilities run internally by Emacs."
2d521ee6 285 $(top_srcdir)/mkinstalldirs ${archlibdir}
f7d3e7d0 286 if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
544d556f 287 for file in ${UTILITIES}; do \
ae6ed0ac 288 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \
544d556f 289 done ; \
ad600343
RS
290 fi
291 if [ `(cd ${archlibdir} && /bin/pwd)` \
292 != `(cd ${srcdir} && /bin/pwd)` ]; then \
544d556f 293 for file in ${SCRIPTS}; do \
c61a529e 294 $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file; \
c71beb75 295 done ; \
0268f19b 296 fi
f7dbcf3c 297
c71beb75
JB
298install: ${archlibdir}
299 @echo
300 @echo "Installing utilities for users to run."
b70cff71 301 for file in ${INSTALLABLES} ; do \
a4663fed
PJ
302 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
303 chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
0268f19b 304 done
b70cff71 305 for file in ${INSTALLABLE_SCRIPTS} ; do \
a4663fed
PJ
306 $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
307 chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
0268f19b 308 done
f7dbcf3c 309
39b649dd
JB
310uninstall:
311 (cd ${bindir}; \
a4663fed
PJ
312 for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \
313 rm -f ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
314 done)
39b649dd
JB
315 (cd ${archlibdir}; \
316 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS})
317
a17d2c25
RS
318mostlyclean:
319 -rm -f core *.o
320
321clean: mostlyclean
5aae6601 322 -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
1405e9d0 323 -rm -f fns*.el *.tab.c *.tab.h
f7dbcf3c 324
39b649dd 325distclean: clean
5c579a75 326 -rm -f TAGS
b2959c9d 327 -rm -f Makefile Makefile.c blessmail
f7dbcf3c 328
26873b72 329maintainer-clean: distclean
39b649dd 330 true
c71beb75 331
a01c76d7 332extraclean: maintainer-clean
c71beb75 333 -rm -f *~ \#*
f7dbcf3c 334
41f86d5a
ER
335unlock:
336 chmod u+w $(SOURCES)
337
338relock:
339 chmod u-w $(SOURCES)
340
29ed0542 341/* Test the contents of the directory. */
f7dbcf3c
JB
342check:
343 @echo "We don't have any tests for GNU Emacs yet."
344
93548af1 345tags: TAGS
f7dbcf3c
JB
346TAGS: etags
347 etags *.[ch]
348
29ed0542
RS
349/* This verifies that the non-ASCII characters in the file `testfile'
350 have not been clobbered by whatever means were used to copy and
351 distribute Emacs. If they were clobbered, all the .elc files were
352 clobbered too. */
0d73e8e3 353test-distrib: ${srcdir}/test-distrib.c
c88a7f88 354 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
0d73e8e3 355 ./test-distrib ${srcdir}/testfile
f7dbcf3c 356
c38a040d 357GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
0d73e8e3 358GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
b90589d8 359getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
0268f19b 360 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
b90589d8 361getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
0268f19b 362 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
20cda85b 363alloca.o: ${srcdir}/alloca.c
32b4c0e9 364 ${CC} -Demacs -c ${BASE_CFLAGS} ${srcdir}/alloca.c
f7dbcf3c 365
e63ceebf
RS
366#ifdef REGEXP_IN_LIBC
367REGEXPOBJ =
368REGEXPDEPS =
369#else
66ab94d9 370REGEXPOBJ = regex.o
5126d3b7 371REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
e63ceebf
RS
372#endif
373
5126d3b7 374regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
1d0b600d 375 ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
66ab94d9
KH
376
377etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
0b532ca2 378 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags
f7dbcf3c 379
adb0a8d3
GM
380ebrowse: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h
381 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse
382
29ed0542
RS
383/* We depend on etags to assure that parallel makes don't write two
384 etags.o files on top of each other. */
1ff164dd 385ctags: etags
59aacecb 386 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags
f7dbcf3c 387
efa21132 388profile: ${srcdir}/profile.c ../src/config.h
379fb9c8
RS
389 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
390
efa21132 391make-docfile: ${srcdir}/make-docfile.c ../src/config.h
3e883207 392 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
f7dbcf3c 393
0d73e8e3 394digest-doc: ${srcdir}/digest-doc.c
3e883207 395 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
f7dbcf3c 396
1e3255d8 397sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA}
3e883207 398 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
f7dbcf3c 399
fa52fcb5 400b2m: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
1817145f
KH
401 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \
402 $(GETOPTOBJS) $(LOADLIBES) -o b2m
f7dbcf3c 403
7c1b5778
RS
404movemail: movemail.o pop.o $(GETOPTDEPS)
405 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBMAIL) $(MOVE_LIBS) -o movemail
81f94052
RS
406
407movemail.o: ${srcdir}/movemail.c ../src/config.h
56bdb2f5 408 $(CC) -c ${CPP_CFLAGS} -Demacs ${MOVE_FLAGS} ${srcdir}/movemail.c
81f94052 409
93c8d183 410pop.o: ${srcdir}/pop.c ../src/config.h
81f94052 411 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
f7dbcf3c 412
0d73e8e3 413cvtmail: ${srcdir}/cvtmail.c
3e883207 414 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
f7dbcf3c 415
0d73e8e3 416fakemail: ${srcdir}/fakemail.c ../src/config.h
3e883207 417 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
f7dbcf3c 418
4c32bfb9 419yow: ${srcdir}/yow.c ../src/epaths.h
3e883207 420 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
f7dbcf3c 421
0d73e8e3 422emacsserver: ${srcdir}/emacsserver.c ../src/config.h
3e883207 423 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
f7dbcf3c 424
deec6f99
RS
425emacsclient: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS)
426 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \
427 -DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \
428 $(LOADLIBES) -o emacsclient
f7dbcf3c 429
efa21132 430hexl: ${srcdir}/hexl.c ../src/config.h
3e883207 431 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
f7dbcf3c 432
29ed0542 433/* These are NOT included in INSTALLABLES or UTILITIES.
b2959c9d 434 See ../src/Makefile.in. */
0d73e8e3 435emacstool: ${srcdir}/emacstool.c
3e883207 436 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \
f7dbcf3c
JB
437 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
438
29ed0542 439/* For SUN Japanese Language Environment. */
0d73e8e3 440nemacstool: ${srcdir}/emacstool.c
3e883207 441 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \
f7dbcf3c
JB
442 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
443
0d73e8e3 444xvetool: ${srcdir}/emacstool.c
3e883207 445 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \
f7dbcf3c
JB
446 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
447 $(LOADLIBES)
448
0d73e8e3 449xveterm: ${srcdir}/emacstool.c
3e883207 450 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
f7dbcf3c
JB
451 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
452 $(LOADLIBES)