]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - monop/Makefile
Add (unsigned char) cast to ctype functions
[bsdgames-darwin.git] / monop / Makefile
index 741e99c4f80ad1f6dc3e13f4be94e71e016f7d96..01d6dbaba2376182448c0b5d24d34be877fb4865 100644 (file)
@@ -1,25 +1,27 @@
-#      from: @(#)Makefile      5.8 (Berkeley) 9/2/92
-#      $Id: Makefile,v 1.8 1993/08/10 02:46:49 mycroft 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>
 
 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
-MAN6=  monop.0
-DPADD+=        ${LIBCOMPAT}
-LDADD+=        -lcompat
+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
+.endif
+
+realall: ${FILES}
 
-monop: cards.pck
+initdeck: initdeck.lo
+       ${_MKTARGET_LINK}
+       ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
 
 cards.pck: initdeck
+       ${_MKTARGET_CREATE}
        ./initdeck ${.CURDIR}/cards.inp
 
-initdeck: initdeck.c
-       ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.CURDIR}/initdeck.c ${LDADD}
-
-beforeinstall:
-       install -c -o ${BINOWN} -g ${BINGRP} -m 444 cards.pck \
-           ${DESTDIR}/usr/share/games
-
 .include <bsd.prog.mk>