]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - monop/Makefile
NetBSD: Dead on Target
[bsdgames-darwin.git] / monop / Makefile
index 7b2ea903541afa2f6b3dbb28bc279cea366556c5..01d6dbaba2376182448c0b5d24d34be877fb4865 100644 (file)
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.23 2003/04/21 01:23:07 christos Exp $
+#      $NetBSD: Makefile,v 1.27 2003/11/16 14:14:18 lukem Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 .include <bsd.own.mk>
@@ -8,7 +8,7 @@ SRCS=   monop.c cards.c execute.c getinp.c houses.c jail.c malloc.c misc.c \
        morg.c print.c prop.c rent.c roll.c spec.c trade.c
 MAN=   monop.6
 HIDEGAME=hidegame
-CLEANFILES+=initdeck cards.pck
+CLEANFILES+=initdeck initdeck.lo cards.pck
 .if ${MKSHARE} != "no"
 FILES=cards.pck
 FILESDIR=/usr/share/games
@@ -16,10 +16,12 @@ FILESDIR=/usr/share/games
 
 realall: ${FILES}
 
-initdeck: initdeck.c
-       ${HOST_LINK.c} -o initdeck ${.CURDIR}/initdeck.c
+initdeck: initdeck.lo
+       ${_MKTARGET_LINK}
+       ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
 
 cards.pck: initdeck
+       ${_MKTARGET_CREATE}
        ./initdeck ${.CURDIR}/cards.inp
 
 .include <bsd.prog.mk>