]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - monop/Makefile
Sanity fixes for input buffer handling. From OpenBSD
[bsdgames-darwin.git] / monop / Makefile
index 67d9eed7d39846a5b38a8891b265558984fb574e..da9eb50a07a024038ce444bdf8404dd395f2a530 100644 (file)
@@ -1,25 +1,31 @@
-#      from: @(#)Makefile      5.8 (Berkeley) 9/2/92
-#      $Id: Makefile,v 1.11 1994/12/22 09:34:57 cgd Exp $
+#      $NetBSD: Makefile,v 1.28 2007/11/17 00:10:55 dogcow 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
+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
 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
+.if (${MACHINE} != "sun2")
+SRCS+= malloc.c
+.endif
 
-cards.pck: initdeck
-       ${.OBJDIR}/initdeck ${.CURDIR}/cards.inp
+realall: ${FILES}
 
-initdeck: initdeck.c
-       ${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/initdeck.c ${LDADD}
+initdeck: initdeck.lo
+       ${_MKTARGET_LINK}
+       ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
 
-beforeinstall:
-       install -c -o ${BINOWN} -g ${BINGRP} -m 444 cards.pck \
-           ${DESTDIR}/usr/share/games
+cards.pck: initdeck
+       ${_MKTARGET_CREATE}
+       ./initdeck ${.CURDIR}/cards.inp
 
 .include <bsd.prog.mk>