1*c037b570Smiod# $OpenBSD: Makefile,v 1.21 2024/02/08 20:30:54 miod Exp $ 2df930be7Sderaadt 3df930be7SderaadtPROG= phantasia 4df930be7SderaadtSRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c 5f8908df1SdownsjCFLAGS+=-DTERMIOS 6c4b20be9SpjanzenDPADD= ${LIBM} ${LIBCURSES} 7c4b20be9SpjanzenLDADD= -lm -lcurses 8df930be7SderaadtMAN= phantasia.6 9*c037b570SmiodCLEANFILES+=map setup setup.d setup.o phantglobs.o.d phantglobs.o.bld 10df930be7Sderaadt 11df930be7Sderaadtall: setup phantasia 12df930be7Sderaadt 13da34e3c3Sniklassetup.o: setup.c 14aa50f5dfSniklas ${HOSTCC} -c ${CFLAGS} -o ${.TARGET} ${.CURDIR}/setup.c 15da34e3c3Sniklas 16da34e3c3Sniklasphantglobs.o.bld: phantglobs.c 17aa50f5dfSniklas ${HOSTCC} -c ${CFLAGS} -o ${.TARGET} ${.CURDIR}/phantglobs.c 18da34e3c3Sniklas 195ddb4045Smickeysetup: phantglobs.o.bld setup.o monsters.asc ${DPADD} 20aa50f5dfSniklas ${HOSTCC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} \ 21aa50f5dfSniklas phantglobs.o.bld setup.o ${LDADD} 22df930be7Sderaadt 23df930be7Sderaadtbeforeinstall: 24df930be7Sderaadt ./setup -m ${.CURDIR}/monsters.asc 252f7ca374Smillert chown root:games ${DESTDIR}/var/games/phantasia/* 26df930be7Sderaadt 27df930be7Sderaadt# Make Phantasia map. Change the map commands reflect your installation. 28df930be7Sderaadt# PLOTDEVICE is used for plotting the map. Change as appropriate. 29df930be7Sderaadt 30df930be7Sderaadtmap: map.c 31da34e3c3Sniklas ${HOSTCC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 32df930be7Sderaadt ./map | plot > /dev/tty 33df930be7Sderaadt 34df930be7Sderaadt.include <bsd.prog.mk> 35