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