Home | History | Annotate | Line # | Download | only in phantasia
Makefile revision 1.10
      1 #	$NetBSD: Makefile,v 1.10 1997/06/30 19:33:34 phil 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 USETBL=
     10 MAN=	phantasia.6
     11 CLEANFILES+=map setup setup.o host_phantglobs.o
     12 
     13 all: setup phantasia
     14 
     15 setup: host_phantglobs.o setup.o monsters.asc ${LIBM} 
     16 	${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
     17 
     18 host_phantglobs.o: ${.CURDIR}/phantglobs.c
     19 	${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
     20 
     21 setup.o: ${.CURDIR}/setup.c
     22 	${HOST_COMPILE.c} ${.CURDIR}/setup.c
     23 
     24 afterinstall: 
     25 	./setup -m ${.CURDIR}/monsters.asc
     26 	chown games:bin ${DESTDIR}/var/games/phantasia/*
     27 
     28 # Make Phantasia map.  Change the map commands reflect your installation.
     29 # PLOTDEVICE is used for plotting the map.  Change as appropriate.
     30 
     31 map: map.c
     32 	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
     33 	./map | plot > /dev/tty
     34 
     35 .include <bsd.prog.mk>
     36