Home | History | Annotate | Line # | Download | only in phantasia
Makefile revision 1.4
      1  1.4  cgd #	$NetBSD: Makefile,v 1.4 1995/03/24 03:58:22 cgd 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.1  jtc CLEANFILES+=map setup setup.o
     11  1.1  jtc 
     12  1.2  cgd all: setup phantasia
     13  1.1  jtc 
     14  1.1  jtc setup: phantglobs.o setup.o monsters.asc ${LIBM} 
     15  1.1  jtc 	${CC} phantglobs.o setup.o -o ${.TARGET} -lm
     16  1.1  jtc 
     17  1.1  jtc beforeinstall: 
     18  1.1  jtc 	./setup -m ${.CURDIR}/monsters.asc
     19  1.3   pk 	chown games.bin ${DESTDIR}/var/games/phantasia/*
     20  1.1  jtc 
     21  1.1  jtc # Make Phantasia map.  Change the map commands reflect your installation.
     22  1.1  jtc # PLOTDEVICE is used for plotting the map.  Change as appropriate.
     23  1.1  jtc 
     24  1.1  jtc map: map.c
     25  1.1  jtc 	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
     26  1.1  jtc 	./map | plot > /dev/tty
     27  1.1  jtc 
     28  1.2  cgd # XXX this rule shouldn't be here.
     29  1.2  cgd phantasia.cat6: phantasia.6
     30  1.1  jtc 	tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET}
     31  1.1  jtc 
     32  1.1  jtc .include <bsd.prog.mk>
     33