Commit | Line | Data |
---|---|---|
6cca9b39 | 1 | # |
810969fd | 2 | # Copyright (c) 1987 Regents of the University of California. |
6cca9b39 KM |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
a21c59cb | 6 | # @(#)Makefile 5.8 (Berkeley) %G% |
0250f5d0 | 7 | # |
810969fd KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
10 | SRCS= comp.c boggle.c | |
0250f5d0 | 11 | |
810969fd | 12 | all: boggle bogdict |
0250f5d0 SL |
13 | |
14 | bogdict: comp sfile | |
ff24121c | 15 | -if [ -f /usr/local/lib/w2a ]; \ |
dd7e451a KM |
16 | then dict=/usr/local/lib/w2a; \ |
17 | else dict=/usr/dict/words; fi; \ | |
4d62cd0b | 18 | sed -f sfile $$dict | uniq | ./comp >bogdict |
0250f5d0 | 19 | |
a21c59cb KB |
20 | boggle: ${LIBC} |
21 | ${CC} -o $@ ${CFLAGS} $@.c | |
0250f5d0 | 22 | |
a21c59cb KB |
23 | comp: ${LIBC} |
24 | ${CC} -o $@ ${CFLAGS} $@.c | |
0250f5d0 | 25 | |
810969fd KB |
26 | clean: FRC |
27 | rm -f ${OBJS} core comp boggle bogdict | |
0250f5d0 | 28 | |
810969fd | 29 | depend: FRC |
a21c59cb | 30 | mkdep -p ${CFLAGS} ${SRCS} |
bf982f23 | 31 | |
810969fd | 32 | install: FRC |
8b51accb KB |
33 | install -s -o games -g bin -m 4700 boggle ${DESTDIR}/usr/games/hide/boggle |
34 | install -o games -g bin -m 400 bogdict ${DESTDIR}/usr/games/lib/bogdict | |
35 | (cd ${DESTDIR}/usr/games; rm -f boggle; ln -s dm boggle; chown games.bin boggle) | |
810969fd KB |
36 | |
37 | lint: FRC | |
a21c59cb KB |
38 | lint ${CFLAGS} comp.c |
39 | lint ${CFLAGS} boggle.c | |
810969fd KB |
40 | |
41 | tags: FRC | |
42 | ctags ${SRCS} | |
43 | ||
44 | FRC: | |
45 | ||
46 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
47 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
48 | ||
a21c59cb KB |
49 | comp: comp.c /usr/include/stdio.h |
50 | boggle: boggle.c /usr/include/ctype.h /usr/include/errno.h | |
51 | boggle: /usr/include/setjmp.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
52 | boggle: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
53 | boggle: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/stdio.h | |
810969fd KB |
54 | |
55 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |