Home | History | Annotate | Line # | Download | only in phantasia
Makefile revision 1.21
      1  1.21     matt #	$NetBSD: Makefile,v 1.21 2000/06/20 16:07:04 matt Exp $
      2   1.1      jtc #	@(#)Makefile	8.1 (Berkeley) 5/31/93
      3   1.1      jtc 
      4  1.18   simonb .include <bsd.own.mk>		# for UNPRIVILEGED
      5  1.18   simonb 
      6   1.1      jtc PROG=	phantasia
      7  1.12    lukem SRCS=	fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
      8  1.12    lukem 
      9  1.16      jtc DPADD=	${LIBM} ${LIBCURSES}
     10  1.16      jtc LDADD=	-lm -lcurses
     11   1.1      jtc HIDEGAME=hidegame
     12  1.13      mrg SETGIDGAME=yes
     13  1.10     phil USETBL=
     14   1.2      cgd MAN=	phantasia.6
     15  1.21     matt CLEANFILES+=map setup setup.lo host_phantglobs.lo
     16   1.1      jtc 
     17  1.19  mycroft realall: setup phantasia
     18   1.1      jtc 
     19  1.21     matt setup: host_phantglobs.lo setup.lo monsters.asc ${LIBM} 
     20  1.21     matt 	${HOST_LINK.c} host_phantglobs.lo setup.lo -o ${.TARGET} -lm
     21   1.6  thorpej 
     22  1.21     matt host_phantglobs.lo: ${.CURDIR}/phantglobs.c
     23  1.21     matt 	${HOST_COMPILE.c} -o host_phantglobs.lo ${.CURDIR}/phantglobs.c
     24   1.6  thorpej 
     25  1.21     matt setup.lo: ${.CURDIR}/setup.c
     26  1.21     matt 	${HOST_COMPILE.c} -o setup.lo ${.CURDIR}/setup.c
     27   1.1      jtc 
     28  1.17      dbj afterinstall:
     29  1.17      dbj 	DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
     30  1.18   simonb .if !defined(UNPRIVILEGED)
     31  1.14      mrg 	chown games:games ${DESTDIR}/var/games/phantasia/*
     32  1.18   simonb .endif
     33   1.1      jtc 
     34   1.1      jtc # Make Phantasia map.  Change the map commands reflect your installation.
     35   1.1      jtc # PLOTDEVICE is used for plotting the map.  Change as appropriate.
     36   1.1      jtc 
     37   1.1      jtc map: map.c
     38   1.1      jtc 	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
     39   1.1      jtc 	./map | plot > /dev/tty
     40   1.1      jtc 
     41   1.1      jtc .include <bsd.prog.mk>
     42