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