changeset 65537:a11113bfd76c

(update-game-score.o): New target. Compile and link this progranm separately. (update-game-score${EXEEXT}): Use GETOPTDEPTS.
author Richard M. Stallman <rms@gnu.org>
date Thu, 15 Sep 2005 13:08:01 +0000
parents a731162a612f
children 84cee1f8c06a
files lib-src/Makefile.in
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/Makefile.in	Thu Sep 15 12:51:15 2005 +0000
+++ b/lib-src/Makefile.in	Thu Sep 15 13:08:01 2005 +0000
@@ -460,10 +460,12 @@
 hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h
 	$(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
 
-update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h
-	$(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \
+update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS)
+	$(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} update-game-score.o $(GETOPTOBJS) $(LOADLIBES) -o update-game-score
+
+update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H)
+	$(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \
 	  -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
-	  $(LOADLIBES) -o update-game-score
 
 /* These are NOT included in INSTALLABLES or UTILITIES.
    See ../src/Makefile.in.  */