Home | History | Annotate | Line # | Download | only in phantasia
Makefile revision 1.9
      1  1.9      cjs #	$NetBSD: Makefile,v 1.9 1997/05/31 21:21:17 cjs Exp $
      2  1.1      jtc #	@(#)Makefile	8.1 (Berkeley) 5/31/93
      3  1.1      jtc 
      4  1.1      jtc PROG=	phantasia
      5  1.1      jtc SRCS=	main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
      6  1.1      jtc DPADD=	${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
      7  1.1      jtc LDADD=	-lm -lcurses -ltermlib -lcompat
      8  1.1      jtc HIDEGAME=hidegame
      9  1.2      cgd MAN=	phantasia.6
     10  1.6  thorpej CLEANFILES+=map setup setup.o host_phantglobs.o
     11  1.1      jtc 
     12  1.2      cgd all: setup phantasia
     13  1.1      jtc 
     14  1.6  thorpej setup: host_phantglobs.o setup.o monsters.asc ${LIBM} 
     15  1.6  thorpej 	${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
     16  1.6  thorpej 
     17  1.6  thorpej host_phantglobs.o: ${.CURDIR}/phantglobs.c
     18  1.6  thorpej 	${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
     19  1.6  thorpej 
     20  1.6  thorpej setup.o: ${.CURDIR}/setup.c
     21  1.6  thorpej 	${HOST_COMPILE.c} ${.CURDIR}/setup.c
     22  1.1      jtc 
     23  1.9      cjs afterinstall: 
     24  1.9      cjs 	./setup -m ${.CURDIR}/monsters.asc
     25  1.5      jtk 	chown games:bin ${DESTDIR}/var/games/phantasia/*
     26  1.1      jtc 
     27  1.1      jtc # Make Phantasia map.  Change the map commands reflect your installation.
     28  1.1      jtc # PLOTDEVICE is used for plotting the map.  Change as appropriate.
     29  1.1      jtc 
     30  1.1      jtc map: map.c
     31  1.1      jtc 	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
     32  1.1      jtc 	./map | plot > /dev/tty
     33  1.1      jtc 
     34  1.2      cgd # XXX this rule shouldn't be here.
     35  1.2      cgd phantasia.cat6: phantasia.6
     36  1.1      jtc 	tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET}
     37  1.1      jtc 
     38  1.1      jtc .include <bsd.prog.mk>
     39