Makefile revision 1.18
11.18Ssimonb# $NetBSD: Makefile,v 1.18 1999/08/21 06:30:11 simonb Exp $ 21.1Sjtc# @(#)Makefile 8.1 (Berkeley) 5/31/93 31.1Sjtc 41.18Ssimonb.include <bsd.own.mk> # for UNPRIVILEGED 51.18Ssimonb 61.1SjtcPROG= phantasia 71.12SlukemSRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c 81.12Slukem 91.16SjtcDPADD= ${LIBM} ${LIBCURSES} 101.16SjtcLDADD= -lm -lcurses 111.1SjtcHIDEGAME=hidegame 121.13SmrgSETGIDGAME=yes 131.10SphilUSETBL= 141.2ScgdMAN= phantasia.6 151.6SthorpejCLEANFILES+=map setup setup.o host_phantglobs.o 161.1Sjtc 171.2Scgdall: setup phantasia 181.1Sjtc 191.6Sthorpejsetup: host_phantglobs.o setup.o monsters.asc ${LIBM} 201.6Sthorpej ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm 211.6Sthorpej 221.6Sthorpejhost_phantglobs.o: ${.CURDIR}/phantglobs.c 231.6Sthorpej ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c 241.6Sthorpej 251.6Sthorpejsetup.o: ${.CURDIR}/setup.c 261.6Sthorpej ${HOST_COMPILE.c} ${.CURDIR}/setup.c 271.1Sjtc 281.17Sdbjafterinstall: 291.17Sdbj DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc 301.18Ssimonb.if !defined(UNPRIVILEGED) 311.14Smrg chown games:games ${DESTDIR}/var/games/phantasia/* 321.18Ssimonb.endif 331.1Sjtc 341.1Sjtc# Make Phantasia map. Change the map commands reflect your installation. 351.1Sjtc# PLOTDEVICE is used for plotting the map. Change as appropriate. 361.1Sjtc 371.1Sjtcmap: map.c 381.1Sjtc ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 391.1Sjtc ./map | plot > /dev/tty 401.1Sjtc 411.1Sjtc.include <bsd.prog.mk> 42