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 | # | |
6 | # @(#)Makefile 5.1 (Berkeley) %G% | |
0250f5d0 SL |
7 | # |
8 | DESTDIR= | |
9 | CC = /bin/cc | |
10 | CFLAGS = -O | |
11 | ||
12 | all: boggle bogdict | |
13 | ||
14 | bogdict: comp sfile | |
dd7e451a KM |
15 | if [ -f /usr/local/lib/w2a ]; \ |
16 | then dict=/usr/local/lib/w2a; \ | |
17 | else dict=/usr/dict/words; fi; \ | |
18 | sed -f sfile $$dict | uniq | comp >bogdict | |
0250f5d0 SL |
19 | |
20 | install: | |
21 | install boggle ${DESTDIR}/usr/games/boggle | |
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 |