Commit | Line | Data |
---|---|---|
6cca9b39 KM |
1 | # |
2 | # Copyright (c) 1980 Regents of the University of California. | |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
bf982f23 | 6 | # @(#)Makefile 5.5 (Berkeley) %G% |
0250f5d0 SL |
7 | # |
8 | DESTDIR= | |
9 | CC = /bin/cc | |
10 | CFLAGS = -O | |
11 | ||
12 | all: boggle bogdict | |
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 SL |
19 | |
20 | install: | |
df53cbf3 | 21 | install -s boggle ${DESTDIR}/usr/games/boggle |
0250f5d0 SL |
22 | install bogdict ${DESTDIR}/usr/games/bogdict |
23 | ||
24 | boggle: boggle.c | |
25 | cc -o boggle ${CFLAGS} boggle.c | |
26 | ||
27 | comp: comp.c | |
28 | cc -o comp ${CFLAGS} comp.c | |
29 | ||
30 | clean: | |
31 | rm -f bogdict boggle comp | |
bf982f23 KB |
32 | |
33 | depend: |