2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for advent
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
PROG= advent
|
|
|
|
SRCS= advent.c database.c english.c initial.c itverb.c score.c \
|
|
|
|
travel.c turn.c utility.c verb.c vocab.c
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
# Where to put the adventure text files
|
|
|
|
# Need the trailing "/" on TEXTDIR
|
|
|
|
TEXTDIR= /usr/lib/advent/
|
|
|
|
FILESDIR= ${TEXTDIR}
|
|
|
|
DATFILES= advent1.dat advent2.dat advent3.dat advent4.dat
|
|
|
|
FILES= ${DATFILES}
|
|
|
|
MAN=
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
database.o: advtext.h
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
setup: setup.c advent.h
|
2010-06-22 23:56:38 +02:00
|
|
|
${CC} ${CPPFLAGS} ${LDFLAGS} -o $@ ${.CURDIR}/setup.c
|
2010-05-12 18:28:54 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
advtext.h advent1.dat advent2.dat advent3.dat advent4.dat: \
|
|
|
|
setup advent1.txt advent2.txt advent3.txt advent4.txt
|
2010-06-22 23:56:38 +02:00
|
|
|
./setup ${.CURDIR}
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-08-29 19:50:51 +02:00
|
|
|
database.d: touch-genfiles
|
|
|
|
|
|
|
|
touch-genfiles:
|
|
|
|
[ -e advtext.h ] || touch -t 197001010000.00 advtext.h
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
CPPFLAGS.advent.c= -DTEXTDIR='"${TEXTDIR}"'
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
CLEANFILES+= ${DATFILES} advtext.h setup
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|
2010-08-29 19:50:51 +02:00
|
|
|
|