* Makefile.in (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Move to the
[bpt/emacs.git] / lib-src / Makefile.in
CommitLineData
eb4252f7 1# Makefile for lib-src subdirectory in GNU Emacs.
b3d90e46 2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004,
aded53ff
GM
3# 2005, 2006, 2007, 2008, 2009, 2010
4# Free Software Foundation, Inc.
29ed0542 5
eb4252f7 6# This file is part of GNU Emacs.
29ed0542 7
294981c7 8# GNU Emacs is free software: you can redistribute it and/or modify
eb4252f7 9# it under the terms of the GNU General Public License as published by
294981c7
GM
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
29ed0542 12
eb4252f7
RS
13# GNU Emacs is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
29ed0542 17
eb4252f7 18# You should have received a copy of the GNU General Public License
294981c7
GM
19# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20
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
70e48c86
GM
26# Following ../lisp/Makefile.in.
27EMACS = ../src/emacs
28EMACSOPT = -batch --no-site-file --multibyte
29
eb4252f7 30# ==================== Things `configure' will edit ====================
c71beb75 31
b93f2493
BF
32CC=@CC@
33CFLAGS=@CFLAGS@
b93f2493 34version=@version@
cf770692 35configuration=@configuration@
108c7c97 36EXEEXT=@EXEEXT@
76bd8202
DN
37C_SWITCH_SYSTEM=@c_switch_system@
38C_SWITCH_MACHINE=@c_switch_machine@
c71beb75 39
a4663fed
PJ
40# Program name transformation.
41TRANSFORM = @program_transform_name@
42
eb4252f7 43# ==================== Where To Install Things ====================
c71beb75 44
eb4252f7
RS
45# The default location for installation. Everything is placed in
46# subdirectories of this directory. The default values for many of
47# the variables below are expressed in terms of this one, so you may
48# not need to change them. This is set with the --prefix option to
49# `../configure'.
b93f2493 50prefix=@prefix@
c71beb75 51
eb4252f7
RS
52# Like `prefix', but used for architecture-specific files. This is
53# set with the --exec-prefix option to `../configure'.
b93f2493 54exec_prefix=@exec_prefix@
c71beb75 55
eb4252f7
RS
56# Where to install Emacs and other binaries that people will want to
57# run directly (like etags). This is set with the --bindir option
58# to `../configure'.
b93f2493 59bindir=@bindir@
c71beb75 60
eb4252f7
RS
61# Where to install and expect executable files to be run by Emacs
62# rather than directly by users, and other architecture-dependent
63# data. ${archlibdir} is usually below this. This is set with the
424b6d2b
RS
64# --libexecdir option to `../configure'.
65libexecdir=@libexecdir@
c71beb75 66
712eaee0
AS
67# Directory for local state files for all programs.
68localstatedir=@localstatedir@
69
eb4252f7
RS
70# Where to find the source code. This is set by the configure
71# script's `--srcdir' option. However, the value of ${srcdir} in
72# this makefile is not identical to what was specified with --srcdir,
73# since the variable here has `/lib-src' added at the end.
5126d3b7
RS
74
75# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
b93f2493
BF
76srcdir=@srcdir@
77VPATH=@srcdir@
c71beb75 78
2d521ee6
DM
79# The top-level source directory, also set by configure.
80top_srcdir=@top_srcdir@
81
eb4252f7 82# ==================== Emacs-specific directories ====================
c71beb75 83
eb4252f7
RS
84# These variables hold the values Emacs will actually use. They are
85# based on the values of the standard Make variables above.
c71beb75 86
eb4252f7
RS
87# Where to put executables to be run by Emacs rather than the user.
88# This path usually includes the Emacs version and configuration name,
89# so that multiple configurations for multiple versions of Emacs may
90# be installed at once. This can be set with the --archlibdir option
91# to `../configure'.
b93f2493 92archlibdir=@archlibdir@
41f86d5a 93
1ba1fb11
CW
94gamedir=@gamedir@
95gameuser=@gameuser@
96
eb4252f7 97# ==================== Utility Programs for the Build =================
c71beb75 98
eb4252f7 99# ../configure figures out the correct values for these.
b93f2493 100INSTALL = @INSTALL@
b93f2493
BF
101INSTALL_PROGRAM = @INSTALL_PROGRAM@
102INSTALL_DATA = @INSTALL_DATA@
01c7d383 103INSTALL_SCRIPT = @INSTALL_SCRIPT@
ae6ed0ac
RS
104# By default, we uphold the dignity of our programs.
105INSTALL_STRIP =
c71beb75 106
eb4252f7 107# ========================== Lists of Files ===========================
f7dbcf3c 108
eb4252f7
RS
109# Things that a user might actually run,
110# which should be installed in bindir.
48fad8e8 111INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT} @LIB_SRC_EXTRA_INSTALLABLES@
e511d7f4 112INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog
f7dbcf3c 113
eb4252f7
RS
114# Things that Emacs runs internally, or during the build process,
115# which should not be installed in bindir.
a8a8ec61
GM
116UTILITIES= profile${EXEEXT} digest-doc${EXEEXT} sorted-doc${EXEEXT} \
117 movemail${EXEEXT} fakemail${EXEEXT} \
8c09ed82 118 hexl${EXEEXT} update-game-score${EXEEXT}
f7dbcf3c 119
108c7c97 120DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT}
5aae6601 121
eb4252f7
RS
122# Like UTILITIES, but they're not system-dependent, and should not be
123# deleted by the distclean target.
b7cceaf1
JB
124SCRIPTS= rcs2log vcdiff
125
0d73e8e3 126EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
f7dbcf3c 127
aded53ff
GM
128# Specify additional -D flags for movemail. Options:
129# -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking).
130# See the comments about locking in movemail.c. Normally the values
131# in ../src/[ms]/*.h should be correct and you should not need to do anything.
132# If neither flag is set, blessmail is used.
81f94052
RS
133MOVE_FLAGS=
134
5e58e3a4
GM
135## -lkrb if HAVE_LIBKRB or -lkrb4 if HAVE_LIBKRB4
136KRB4LIB=@KRB4LIB@
137## -ldes if HAVE_LIBDES or -ldes425 if HAVE_LIBDES425
138DESLIB=@DESLIB@
139## -lkrb5 if HAVE_LIBKRB5
140KRB5LIB=@KRB5LIB@
141## -lk5crypto if HAVE_LIBK5CRYPTO or -lcrypto if HAVE_LIBCRYPTO
142CRYPTOLIB=@CRYPTOLIB@
143## -lcom_err if HAVE_LIBCOM_ERR
144COM_ERRLIB=@COM_ERRLIB@
145## -lhesiod if HAVE_LIBHESIOD
146LIBHESIOD=@LIBHESIOD@
147## -lresolv if HAVE_LIBRESOLV
148LIBRESOLV=@LIBRESOLV@
149## -llockfile if HAVE_LIBLOCKFILE or -lmail if HAVE_LIBMAIL
150LIBS_MAIL=@LIBS_MAIL@
151
152## Extra libraries to use when linking movemail.
153LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(LIBHESIOD) $(LIBRESOLV)
154
4794a582
DN
155# Those files shared with other GNU utilities need HAVE_CONFIG_H
156# defined before they know they can take advantage of the information
157# in ../src/config.h.
158ALL_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
159LINK_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
160CPP_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
5e58e3a4 161
eb4252f7
RS
162# ========================== start of cpp stuff =======================
163/* From here on, comments must be done in C syntax. */
164
fcd4533c 165#define THIS_IS_MAKEFILE
eb4252f7
RS
166#define NOT_C_CODE
167#include "../src/config.h"
168
f11c1c14 169/* Some s/SYSTEM.h files define this to request special libraries. */
eb4252f7
RS
170#ifndef LIBS_SYSTEM
171#define LIBS_SYSTEM
172#endif
173
f11c1c14 174/* Some m/MACHINE.h files define this to request special libraries. */
eb4252f7
RS
175#ifndef LIBS_MACHINE
176#define LIBS_MACHINE
177#endif
178
eb4252f7
RS
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
32cc3925 192LOADLIBES=LIBS_SYSTEM LIBS_MACHINE
eb4252f7 193
29ed0542 194\f
edfda783
AR
195.SUFFIXES: .m
196
29ed0542
RS
197/* This is the default compilation command.
198 But we should never rely on it, because some make version
199 failed to find it for getopt.o.
200 Using an explicit command made it work. */
c38a040d 201.c.o:
5293b432 202 ${CC} -c ${CPP_CFLAGS} $<
122e9f8f 203
edfda783 204.m.o:
edfda783 205 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
c71beb75 206
ee978ec9
RS
207all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
208
c5c92751 209/* These targets copy the scripts into the build directory
ca4ea90f
EZ
210so that they can be run from there in an uninstalled Emacs.
211The "-" is prepended because some versions of cp barf when
212srcdir is the current directory, and thus the file will be
213copied into itself. */
ee978ec9 214rcs2log: $(srcdir)/rcs2log
ca4ea90f 215 -cp -p $(srcdir)/rcs2log rcs2log
ee978ec9
RS
216
217rcs-checkin: $(srcdir)/rcs-checkin
ca4ea90f 218 -cp -p $(srcdir)/rcs-checkin rcs-checkin
ee978ec9
RS
219
220grep-changelog: $(srcdir)/grep-changelog
ca4ea90f 221 -cp -p $(srcdir)/grep-changelog grep-changelog
ee978ec9
RS
222
223vcdiff: $(srcdir)/vcdiff
ca4ea90f 224 -cp -p $(srcdir)/vcdiff vcdiff
c71beb75 225
c6207d0d 226#ifdef MOVEMAIL_NEEDS_BLESSING
f675ecb5 227blessmail:
70e48c86 228 $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el
c6207d0d
KH
229 chmod +x blessmail
230#endif
231
d19f95fe
RS
232maybe-blessmail: BLESSMAIL
233#ifdef MOVEMAIL_NEEDS_BLESSING
67bb79b7 234/* Don\'t charge ahead and do it! Let the installer decide.
81af9060 235 ./blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT} */
d19f95fe
RS
236 @if [ `wc -l <blessmail` != 2 ] ; then \
237 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
238 echo Assuming $$dir is really the mail spool directory, you should; \
81af9060 239 echo run lib-src/blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT}; \
108c7c97 240 echo as root, to give movemail${EXEEXT} appropriate permissions.; \
eb4252f7 241 echo Do that after running make install.; \
d19f95fe
RS
242 fi
243#endif
244
29ed0542
RS
245/* Install the internal utilities. Until they are installed, we can
246 just run them directly from lib-src. */
81af9060 247$(DESTDIR)${archlibdir}: all
c71beb75
JB
248 @echo
249 @echo "Installing utilities run internally by Emacs."
c5a139ca 250 umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${archlibdir}
81af9060 251 if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
544d556f 252 for file in ${UTILITIES}; do \
81af9060 253 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \
544d556f 254 done ; \
ad600343 255 fi
c5a139ca
GM
256 umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir}; \
257 touch $(DESTDIR)${gamedir}/snake-scores; \
81af9060 258 touch $(DESTDIR)${gamedir}/tetris-scores
7451222f
CW
259/* If the following commands fail, that is not a big deal.
260 update-game-score will detect at runtime that it is not setuid,
261 and handle things accordingly. */
81af9060
EZ
262 -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \
263 chown ${gameuser} $(DESTDIR)${gamedir}; \
264 chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \
7451222f 265 fi
81af9060 266 if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` \
ad600343 267 != `(cd ${srcdir} && /bin/pwd)` ]; then \
544d556f 268 for file in ${SCRIPTS}; do \
01c7d383 269 $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \
c71beb75 270 done ; \
0268f19b 271 fi
f7dbcf3c 272
81af9060 273install: $(DESTDIR)${archlibdir}
c71beb75
JB
274 @echo
275 @echo "Installing utilities for users to run."
b70cff71 276 for file in ${INSTALLABLES} ; do \
81af9060
EZ
277 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
278 chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
0268f19b 279 done
b70cff71 280 for file in ${INSTALLABLE_SCRIPTS} ; do \
01c7d383 281 $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
81af9060 282 chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
0268f19b 283 done
f7dbcf3c 284
39b649dd 285uninstall:
81af9060 286 (cd $(DESTDIR)${bindir}; \
a4663fed 287 for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \
81af9060 288 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
a4663fed 289 done)
f8388570
TO
290 if [ -d $(DESTDIR)${archlibdir} ]; then \
291 (cd $(DESTDIR)${archlibdir} && \
292 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) \
293 fi
39b649dd 294
a17d2c25 295mostlyclean:
9eff9fe3 296 -rm -f core *.o getopt.h getopt.h-t
a17d2c25
RS
297
298clean: mostlyclean
5aae6601 299 -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
1405e9d0 300 -rm -f fns*.el *.tab.c *.tab.h
f7dbcf3c 301
39b649dd 302distclean: clean
5c579a75 303 -rm -f TAGS
b2959c9d 304 -rm -f Makefile Makefile.c blessmail
f7dbcf3c 305
26873b72 306maintainer-clean: distclean
39b649dd 307 true
c71beb75 308
a01c76d7 309extraclean: maintainer-clean
c71beb75 310 -rm -f *~ \#*
f7dbcf3c 311
29ed0542 312/* Test the contents of the directory. */
f7dbcf3c
JB
313check:
314 @echo "We don't have any tests for GNU Emacs yet."
315
93548af1 316tags: TAGS
108c7c97 317TAGS: etags${EXEEXT}
f7dbcf3c
JB
318 etags *.[ch]
319
67bb79b7 320/* This verifies that the non-ASCII characters in the file \`testfile\'
29ed0542
RS
321 have not been clobbered by whatever means were used to copy and
322 distribute Emacs. If they were clobbered, all the .elc files were
323 clobbered too. */
108c7c97 324test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
c88a7f88 325 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
0d73e8e3 326 ./test-distrib ${srcdir}/testfile
f7dbcf3c 327
9eff9fe3 328/* We need the following in order to create a <getopt.h> when the system
deeaffe1 329 does not have one that works with the given compiler. */
9eff9fe3
PE
330GETOPT_H = @GETOPT_H@
331getopt.h: getopt_.h
332 cp $(srcdir)/getopt_.h $@-t
333 mv $@-t $@
334
335GETOPTOBJS = @GETOPTOBJS@
336GETOPTDEPS = $(GETOPTOBJS) $(GETOPT_H)
337getopt.o: ${srcdir}/getopt.c $(GETOPT_H) ${srcdir}/gettext.h
0268f19b 338 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
9eff9fe3 339getopt1.o: ${srcdir}/getopt1.c $(GETOPT_H)
0268f19b 340 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
f7dbcf3c 341
66ab94d9 342REGEXPOBJ = regex.o
5126d3b7 343REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
e63ceebf 344
5126d3b7 345regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
aded53ff 346 ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
66ab94d9 347
108c7c97 348etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
63b9b605 349 $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags
f7dbcf3c 350
108c7c97 351ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h
adb0a8d3
GM
352 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse
353
67bb79b7 354/* We depend on etags to assure that parallel makes don\'t write two
29ed0542 355 etags.o files on top of each other. */
108c7c97 356ctags${EXEEXT}: etags${EXEEXT}
63b9b605 357 $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags
f7dbcf3c 358
108c7c97 359profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h
379fb9c8
RS
360 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
361
108c7c97 362make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h
3e883207 363 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
f7dbcf3c 364
108c7c97 365digest-doc${EXEEXT}: ${srcdir}/digest-doc.c
c60ee5e7 366 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
f7dbcf3c 367
ac06b30b
DL
368sorted-doc${EXEEXT}: ${srcdir}/sorted-doc.c
369 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c $(LOADLIBES) -o sorted-doc
f7dbcf3c 370
108c7c97 371b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
1817145f 372 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \
c60ee5e7 373 $(GETOPTOBJS) $(LOADLIBES) -o b2m
f7dbcf3c 374
108c7c97 375movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS)
5e58e3a4 376 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MOVE) -o movemail
81f94052 377
aded53ff 378/* We need to define emacs to get the right version of something (what?). */
9eff9fe3 379movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H)
f5f20f6c 380 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c
81f94052 381
93c8d183 382pop.o: ${srcdir}/pop.c ../src/config.h
81f94052 383 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
f7dbcf3c 384
108c7c97 385fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h
3e883207 386 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
f7dbcf3c 387
108c7c97 388emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS)
deec6f99 389 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \
c2bcfb19 390 -DVERSION="\"${version}\"" \
deec6f99 391 $(LOADLIBES) -o emacsclient
f7dbcf3c 392
108c7c97 393hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h
3e883207 394 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
f7dbcf3c 395
f85d3f3f
RS
396update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS)
397 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} update-game-score.o $(GETOPTOBJS) $(LOADLIBES) -o update-game-score
398
399update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H)
400 $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \
30cfcf7f 401 -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\""