1 2# See bog.h for configuration 3 4OBJS=bog.o help.o mach.o prtable.o timer.o word.o 5 6CC=gcc 7CFLAGS=-O 8LIBS=-lcurses -ltermlib 9 10# DICT is the dictionary that will be used to construct the word list used 11# by bog 12DICT=/usr/dict/words 13 14bog: $(OBJS) 15 $(CC) $(CFLAGS) -s -o bog $(OBJS) $(LIBS) 16 17all: bog mkdict mkindex dict 18 19mkdict: mkdict.c 20 $(CC) -s -O -o mkdict mkdict.c 21 22mkindex: mkindex.c 23 $(CC) -s -O -o mkindex mkindex.c 24 25showdict: showdict.o word.o 26 $(CC) -s -O -o showdict showdict.o word.o 27 rm -f showdict.o 28 29dict: mkdict mkindex 30 ./mkdict < $(DICT) > dict 31 ./mkindex < dict > dict.ind 32 33$(OBJS): bog.h 34 35install: all 36 @echo "Move dict, dict.ind, and the helpfile to where you specified in bog.h" 37 @echo "Move bog.man to where you want the manual page to go" 38 39clean: 40 rm -f *.o bog 41 42lint: 43 lint -abchx bog.c help.c mach.c prtable.c timer.c word.c 44 45