xref: /original-bsd/games/adventure/Makefile (revision f0fd5f8a)
1#	Makefile	4.2	82/10/24
2
3DESTDIR=
4CFILES=	done.c init.c io.c main.c save.c subr.c vocab.c wizard.c
5OBJS=	done.o init.o io.o main.o save.o subr.o vocab.o wizard.o
6HFILES = hdr.h
7SRCS = $(CFILES) $(HFILES) glorkz
8CFLAGS=	-O
9LDFLAGS=-n	# should be -i on small machines, -n on a vax
10
11advent:	a.out
12	rm -f advent
13	echo y | ./a.out
14
15a.out: ${OBJS}
16	${CC} ${LDFLAGS} ${CFLAGS} ${OBJS}
17
18save.o:	save.c	# vax C optimizer bug - infinite loop
19	cc -c save.c
20
21# always recomple okplay
22okplay.o: /tmp
23
24install: advent
25	install advent ${DESTDIR}/usr/games/adventure
26#	cp okplay /usr/games/adventure
27#	cp advsaver /usr/games/lib
28#	dd if=/usr/games/lib/adventure of=/usr/games/lib/advheader bs=1 count=16
29#	chmod 711 /usr/games/lib
30#	chmod 700 /usr/games/lib/adventure
31#	chmod 755 /usr/games/lib/advheader
32#	chmod 755 /usr/games/lib/advsaver
33#	chmod 4711 /usr/games/adventure
34#	chown games /usr/games/adventure /usr/games/lib/adventure /usr/games/lib/advheader /usr/games/lib/advsaver
35#	rm advent a.out okplay
36
37okplay: okplay.c
38	${CC} ${CFLAGS} -o okplay okplay.c
39
40advsaver: advsaver.s
41	${AS} -o advsaver advsaver.s
42
43lint:
44	lint $(CFILES) >& lint.out
45
46clean:
47	rm -f ${OBJS} a.out advent core errs
48
49sources: $(SRCS)
50
51$(SRCS):
52	sccs get $@
53