X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/94b5353c71e7246077d468afe68d51ce85fc213d..7087c81c94933d8c832b4350178fdddb7c167080:/monop/Makefile diff --git a/monop/Makefile b/monop/Makefile index 0b692e3d..01d6dbab 100644 --- a/monop/Makefile +++ b/monop/Makefile @@ -1,25 +1,27 @@ -# $NetBSD: Makefile,v 1.12 1995/03/23 08:34:32 cgd Exp $ +# $NetBSD: Makefile,v 1.27 2003/11/16 14:14:18 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 +.include + 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 - -monop: cards.pck +CLEANFILES+=initdeck initdeck.lo cards.pck +.if ${MKSHARE} != "no" +FILES=cards.pck +FILESDIR=/usr/share/games +.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