|
|
1.1 root 1: # @(#)Makefile 4.1 (Berkeley) 11/28/82
2: #
3: DESTDIR=
4: CFLAGS= -O
5:
6: zork: zork.c
7: cc ${CFLAGS} -o zork zork.c
8:
9: install:
10: install zork ${DESTDIR}/usr/games/zork
11: cp zorklib/dtext.dat ${DESTDIR}/usr/games/lib
12: cp zorklib/dindex.dat ${DESTDIR}/usr/games/lib
13: cp zorklib/doverlay ${DESTDIR}/usr/games/lib
14: cp zorklib/dungeon ${DESTDIR}/usr/games/lib
15:
16: clean:
17: rm -f a.out core *.s *.o zork
18:
19: depend:
20: cat </dev/null >x.c
21: for i in zork; do \
22: (echo $$i: $$i.c >>makedep; \
23: /bin/grep '^#[ ]*include' x.c $$i.c | sed \
24: -e 's,<\(.*\)>,"/usr/include/\1",' \
25: -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
26: -e 's/\.c//' >>makedep); done
27: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
28: echo '$$r makedep' >>eddep
29: echo 'w' >>eddep
30: cp Makefile Makefile.bak
31: ed - Makefile < eddep
32: rm eddep makedep x.c
33: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
34: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
35: echo '# see make depend above' >> Makefile
36:
37: # DO NOT DELETE THIS LINE -- make depend uses it
38:
39: zork: zork.c
40: zork: /usr/include/stdio.h
41: # DEPENDENCIES MUST END AT END OF FILE
42: # IF YOU PUT STUFF HERE IT WILL GO AWAY
43: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.