]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - monop/Makefile
Check large factor for being prime before applying Pollard's
[bsdgames-darwin.git] / monop / Makefile
index c374447d3e1884576417db9fd412fdf8b2233c6d..01d6dbaba2376182448c0b5d24d34be877fb4865 100644 (file)
@@ -1,24 +1,27 @@
-#      $NetBSD: Makefile,v 1.16 1997/10/12 14:21:48 lukem Exp $
+#      $NetBSD: Makefile,v 1.27 2003/11/16 14:14:18 lukem Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
-WARNS= 0
+.include <bsd.own.mk>
+
 PROG=  monop
-SRCS=  monop.c cards.c execute.c getinp.c houses.c jail.c misc.c morg.c \
-       print.c prop.c rent.c roll.c spec.c trade.c
+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
-DPADD+=        ${LIBCOMPAT}
-LDADD+=        -lcompat
 HIDEGAME=hidegame
-CLEANFILES+=initdeck cards.pck
+CLEANFILES+=initdeck initdeck.lo cards.pck
+.if ${MKSHARE} != "no"
 FILES=cards.pck
 FILESDIR=/usr/share/games
+.endif
 
-monop: cards.pck
+realall: ${FILES}
 
-cards.pck: initdeck
-       ${.OBJDIR}/initdeck ${.CURDIR}/cards.inp
+initdeck: initdeck.lo
+       ${_MKTARGET_LINK}
+       ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
 
-initdeck: initdeck.c
-       ${HOST_CC} ${HOST_CFLAGS} ${HOST_LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/initdeck.c
+cards.pck: initdeck
+       ${_MKTARGET_CREATE}
+       ./initdeck ${.CURDIR}/cards.inp
 
 .include <bsd.prog.mk>