add vdioctl
[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#
df53cbf3 6# @(#)Makefile 5.3 (Berkeley) %G%
0250f5d0
SL
7#
8DESTDIR=
9CC = /bin/cc
10CFLAGS = -O
11
12all: boggle bogdict
13
14bogdict: 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; \
18 sed -f sfile $$dict | uniq | comp >bogdict
0250f5d0
SL
19
20install:
df53cbf3 21 install -s boggle ${DESTDIR}/usr/games/boggle
0250f5d0
SL
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