summaryrefslogtreecommitdiffstats
path: root/games/phantasia/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-09-02 15:22:11 +0000
committerbde <bde@FreeBSD.org>1998-09-02 15:22:11 +0000
commit9e5e52d9b8c442dccb743056be0c02a169d8e54c (patch)
treed9f87975c5fadc0d18745582f6bfd1ebc24d6d95 /games/phantasia/Makefile
parent1228ff1417718eb1e522753d7b372d60845cbdee (diff)
downloadFreeBSD-src-9e5e52d9b8c442dccb743056be0c02a169d8e54c.zip
FreeBSD-src-9e5e52d9b8c442dccb743056be0c02a169d8e54c.tar.gz
Keep build-tools objects separate from `all' objects so that my
cross-builds work.
Diffstat (limited to 'games/phantasia/Makefile')
-rw-r--r--games/phantasia/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index 6174a46..db32133 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -7,18 +7,21 @@ LDADD= -lm -lcurses -ltermcap -lcompat
DATAFILES=characs gold lastdead mess monsters motd scoreboard void
HIDEGAME=hidegame
MAN6= phantasia.6
-CLEANFILES=${DATAFILES} map setup setup.o stamp.setuprun
+CLEANFILES=${DATAFILES} cross-phantglobs.o map setup setup.o stamp.setuprun
all: stamp.setuprun
build-tools: setup
+cross-phantglobs.o: phantglobs.c
+ ${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}
+
stamp.setuprun: monsters.asc setup
./setup -m ${.CURDIR}/monsters.asc
touch ${.TARGET}
-setup: phantglobs.o setup.o ${LIBM}
- ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} phantglobs.o setup.o -lm
+setup: cross-phantglobs.o setup.o ${LIBM}
+ ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC:M*.o} -lm
beforeinstall:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
OpenPOWER on IntegriCloud