Makefile revision 1.21
11.21Smatt# $NetBSD: Makefile,v 1.21 2000/06/20 16:07:04 matt 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.21SmattCLEANFILES+=map setup setup.lo host_phantglobs.lo 161.1Sjtc 171.19Smycroftrealall: setup phantasia 181.1Sjtc 191.21Smattsetup: host_phantglobs.lo setup.lo monsters.asc ${LIBM} 201.21Smatt ${HOST_LINK.c} host_phantglobs.lo setup.lo -o ${.TARGET} -lm 211.6Sthorpej 221.21Smatthost_phantglobs.lo: ${.CURDIR}/phantglobs.c 231.21Smatt ${HOST_COMPILE.c} -o host_phantglobs.lo ${.CURDIR}/phantglobs.c 241.6Sthorpej 251.21Smattsetup.lo: ${.CURDIR}/setup.c 261.21Smatt ${HOST_COMPILE.c} -o setup.lo ${.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