install with -s
[unix-history] / usr / src / old / boggle / Makefile
CommitLineData
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#
8DESTDIR=
9CC = /bin/cc
10CFLAGS = -O
11
12all: boggle bogdict
13
14bogdict: 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
20install:
21 install boggle ${DESTDIR}/usr/games/boggle
22 install bogdict ${DESTDIR}/usr/games/bogdict
23
24boggle: boggle.c
25 cc -o boggle ${CFLAGS} boggle.c
26
27comp: comp.c
28 cc -o comp ${CFLAGS} comp.c
29
30clean:
31 rm -f bogdict boggle comp