|
|
BSD 4.2
#
# mille bourne game makefile
#
# @(#)Makefile 1.7 (Berkeley) 8/14/83
#
DESTDIR=
HEADERS=mille.h
CFILES= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \
roll.c save.c types.c varpush.c
OBJS= comp.o end.o extern.o init.o mille.o misc.o move.o print.o \
roll.o save.o types.o varpush.o
POBJS= comp.po end.po extern.po init.po mille.po misc.po move.po \
roll.po print.po save.po types.po varpush.po
CRL=
L= -lcurses -ltermlib
LIBS= ${CRL} ${L}
DEFS=
CFLAGS= -O ${DEFS}
BINDIR= ${DESTDIR}/usr/games
.SUFFIXES: .po .i
.c.po:
rm -f x.c ; ln $*.c x.c
${CC} ${CFLAGS} -p -c x.c
mv x.o $*.po
.c.i:
${CC} ${CFLAGS} -P $*.c
a.out: ${OBJS} ${CRL}
${CC} ${CFLAGS} ${OBJS} ${LIBS}
mille: ${OBJS} ${CRL}
${CC} ${CFLAGS} -o mille ${OBJS} ${LIBS}
install: mille
install -c -s mille ${BINDIR}
pmb: ${POBJS} ../pcrlib
${CC} ${CFLAGS} -p -o pmb ${POBJS} ../pcrlib -ltermlib
mille.po: mille.c
rm -f x.c ; ln mille.c x.c
${CC} ${CFLAGS} -DPROF -p -c x.c
mv x.o mille.po
table: table.o extern.o
${CC} ${CFLAGS} -i -o table table.o extern.o
readdump: readdump.o extern.o varpush.o
${CC} ${CFLAGS} -i -o readdump readdump.o extern.o varpush.o
ctags:
ctags ${HEADERS} ${CFILES}
ed - tags < :ctfix
sort tags -o tags
lint:
lint -hxb ${DEFS} ${CFILES} ${L} > lint.out
mille.ar:
ar ruv mille.ar Makefile tags ${HEADERS} ${CFILES}
tar:
tar rvf /dev/rmt0 Makefile tags :ctfix ${HEADERS} ${CFILES}
lpr:
pr Makefile ${HEADERS} ${CFILES} tags | lpr ; lpq
clean:
rm -f ${OBJS} ${POBJS} core ? a.out mille
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.