minix/commands/advent/Makefile

29 lines
701 B
Makefile
Raw Normal View History

2005-04-21 16:53:53 +02:00
# Makefile for advent
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
# 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
database.o: advtext.h
2005-04-21 16:53:53 +02:00
setup: setup.c advent.h
${CC} ${CPPFLAGS} ${LDFLAGS} -o $@ ${.CURDIR}/setup.c
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
./setup ${.CURDIR}
2005-04-21 16:53:53 +02:00
CPPFLAGS.advent.c= -DTEXTDIR='"${TEXTDIR}"'
2005-04-21 16:53:53 +02:00
CLEANFILES+= ${DATFILES} advtext.h setup
2005-04-21 16:53:53 +02:00
.include <bsd.prog.mk>