Makefile revision 1.5
11.5Sjtk# $NetBSD: Makefile,v 1.5 1996/06/01 19:47:19 jtk Exp $ 21.1Sjtc# @(#)Makefile 8.1 (Berkeley) 5/31/93 31.1Sjtc 41.1SjtcPROG= phantasia 51.1SjtcSRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c 61.1SjtcDPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT} 71.1SjtcLDADD= -lm -lcurses -ltermlib -lcompat 81.1SjtcHIDEGAME=hidegame 91.2ScgdMAN= phantasia.6 101.1SjtcCLEANFILES+=map setup setup.o 111.1Sjtc 121.2Scgdall: setup phantasia 131.1Sjtc 141.1Sjtcsetup: phantglobs.o setup.o monsters.asc ${LIBM} 151.1Sjtc ${CC} phantglobs.o setup.o -o ${.TARGET} -lm 161.1Sjtc 171.1Sjtcbeforeinstall: 181.1Sjtc ./setup -m ${.CURDIR}/monsters.asc 191.5Sjtk chown games:bin ${DESTDIR}/var/games/phantasia/* 201.1Sjtc 211.1Sjtc# Make Phantasia map. Change the map commands reflect your installation. 221.1Sjtc# PLOTDEVICE is used for plotting the map. Change as appropriate. 231.1Sjtc 241.1Sjtcmap: map.c 251.1Sjtc ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 261.1Sjtc ./map | plot > /dev/tty 271.1Sjtc 281.2Scgd# XXX this rule shouldn't be here. 291.2Scgdphantasia.cat6: phantasia.6 301.1Sjtc tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET} 311.1Sjtc 321.1Sjtc.include <bsd.prog.mk> 33