Makefile revision 1.6
11.6Sthorpej# $NetBSD: Makefile,v 1.6 1997/04/19 07:29:31 thorpej 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.6SthorpejCLEANFILES+=map setup setup.o host_phantglobs.o 111.1Sjtc 121.2Scgdall: setup phantasia 131.1Sjtc 141.6Sthorpejsetup: host_phantglobs.o setup.o monsters.asc ${LIBM} 151.6Sthorpej ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm 161.6Sthorpej 171.6Sthorpejhost_phantglobs.o: ${.CURDIR}/phantglobs.c 181.6Sthorpej ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c 191.6Sthorpej 201.6Sthorpejsetup.o: ${.CURDIR}/setup.c 211.6Sthorpej ${HOST_COMPILE.c} ${.CURDIR}/setup.c 221.1Sjtc 231.1Sjtcbeforeinstall: 241.1Sjtc ./setup -m ${.CURDIR}/monsters.asc 251.5Sjtk chown games:bin ${DESTDIR}/var/games/phantasia/* 261.1Sjtc 271.1Sjtc# Make Phantasia map. Change the map commands reflect your installation. 281.1Sjtc# PLOTDEVICE is used for plotting the map. Change as appropriate. 291.1Sjtc 301.1Sjtcmap: map.c 311.1Sjtc ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 321.1Sjtc ./map | plot > /dev/tty 331.1Sjtc 341.2Scgd# XXX this rule shouldn't be here. 351.2Scgdphantasia.cat6: phantasia.6 361.1Sjtc tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET} 371.1Sjtc 381.1Sjtc.include <bsd.prog.mk> 39