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