]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - phantasia/Makefile
These updates to the build allow building against include files
[bsdgames-darwin.git] / phantasia / Makefile
index 0889db27b31a786e15e6b4217931d1dbe017536d..5735b34e5dd247bddb9ffee6c26200e8ccaa11ce 100644 (file)
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 1996/06/01 19:47:19 jtk Exp $
+#      $NetBSD: Makefile,v 1.8 1997/05/26 03:55:49 cjs Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 PROG=  phantasia
@@ -7,15 +7,21 @@ 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
+       DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
        chown games:bin ${DESTDIR}/var/games/phantasia/*
 
 # Make Phantasia map.  Change the map commands reflect your installation.