Commit | Line | Data |
---|---|---|
01eb5674 | 1 | # Makefile 4.1 82/05/11 |
4d5314cc RH |
2 | |
3 | CFILES= done.c init.c io.c main.c save.c subr.c vocab.c wizard.c | |
4 | OBJS= done.o init.o io.o main.o save.o subr.o vocab.o wizard.o | |
5 | CFLAGS= -O | |
6 | LDFLAGS=-n # should be -i on small machines, -n on a vax | |
7 | ||
8 | advent: a.out | |
9 | rm -f advent | |
10 | echo y | ./a.out | |
11 | ||
12 | a.out: ${OBJS} | |
13 | ${CC} ${LDFLAGS} ${CFLAGS} ${OBJS} | |
14 | ||
15 | save.o: save.c # vax C optimizer bug - infinite loop | |
16 | cc -c save.c | |
17 | ||
18 | # always recomple okplay | |
19 | okplay.o: /tmp | |
20 | ||
21 | install: advent | |
22 | cp advent /usr/games/adventure | |
23 | # cp okplay /usr/games/adventure | |
24 | # cp advsaver /usr/games/lib | |
25 | # dd if=/usr/games/lib/adventure of=/usr/games/lib/advheader bs=1 count=16 | |
26 | # chmod 711 /usr/games/lib | |
27 | # chmod 700 /usr/games/lib/adventure | |
28 | # chmod 755 /usr/games/lib/advheader | |
29 | # chmod 755 /usr/games/lib/advsaver | |
30 | # chmod 4711 /usr/games/adventure | |
31 | # chown games /usr/games/adventure /usr/games/lib/adventure /usr/games/lib/advheader /usr/games/lib/advsaver | |
32 | # rm advent a.out okplay | |
33 | ||
34 | okplay: okplay.c | |
35 | ${CC} ${CFLAGS} -o okplay okplay.c | |
36 | ||
37 | advsaver: advsaver.s | |
38 | ${AS} -o advsaver advsaver.s | |
39 | ||
40 | lint: | |
41 | lint $(CFILES) >& lint.out | |
42 | ||
43 | clean: | |
44 | rm -f ${OBJS} a.out advent core errs |