diff options
author | thorpej <thorpej@NetBSD.org> | 1997-04-19 07:20:13 +0000 |
---|---|---|
committer | thorpej <thorpej@NetBSD.org> | 1997-04-19 07:20:13 +0000 |
commit | 6e65822ba7aed8ade399abc0aeef3a41843ef361 (patch) | |
tree | d19f261a01e0ca37909b546a8d7df4e1e2101d36 /phantasia | |
parent | f9c0e6f6a4f10f8524acdbd7659a74ed7952723f (diff) | |
download | bsdgames-darwin-6e65822ba7aed8ade399abc0aeef3a41843ef361.tar.gz bsdgames-darwin-6e65822ba7aed8ade399abc0aeef3a41843ef361.tar.zst bsdgames-darwin-6e65822ba7aed8ade399abc0aeef3a41843ef361.zip |
Allow this to be cross-compiled.
Diffstat (limited to 'phantasia')
-rw-r--r-- | phantasia/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/phantasia/Makefile b/phantasia/Makefile index 0889db27..6f4bb07e 100644 --- a/phantasia/Makefile +++ b/phantasia/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 1996/06/01 19:47:19 jtk Exp $ +# $NetBSD: Makefile,v 1.6 1997/04/19 07:29:31 thorpej Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= phantasia @@ -7,12 +7,18 @@ DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT} LDADD= -lm -lcurses -ltermlib -lcompat HIDEGAME=hidegame MAN= phantasia.6 -CLEANFILES+=map setup setup.o +CLEANFILES+=map setup setup.o host_phantglobs.o all: setup phantasia -setup: phantglobs.o setup.o monsters.asc ${LIBM} - ${CC} phantglobs.o setup.o -o ${.TARGET} -lm +setup: host_phantglobs.o setup.o monsters.asc ${LIBM} + ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm + +host_phantglobs.o: ${.CURDIR}/phantglobs.c + ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c + +setup.o: ${.CURDIR}/setup.c + ${HOST_COMPILE.c} ${.CURDIR}/setup.c beforeinstall: ./setup -m ${.CURDIR}/monsters.asc |