# Generated automatically from Makefile.in by configure.
#
# Useful ./configure options with respect to this Makefile:
# --prefix
# --datadir
# --mandir

VER = 1.1

prefix = /usr/local

CC      = gcc
CFLAGS  = -Wall -W -O2 '-DVERSION="$(VER)"'	\
	  '-DDICTFILEPATH="boggle.dict"'

OBJLIST	= genutil.o wordlist.o dict.o words.o cube.o score.o timer.o	\
	  input.o output.o play.o batch.o dbuild.o boggle.o


boggle: $(OBJLIST)
	$(CC)  -o boggle $(OBJLIST) -lncurses 

genutil.o  : genutil.c genutil.h
wordlist.o : wordlist.c wordlist.h genutil.h
dict.o     : dict.c dict.h boggle.h genutil.h
words.o    : words.c words.h boggle.h genutil.h cube.h wordlist.h dict.h
cube.o     : cube.c cube.h boggle.h genutil.h words.h
score.o    : score.c score.h boggle.h genutil.h words.h output.h
timer.o    : timer.c timer.h boggle.h genutil.h output.h
input.o    : input.c input.h boggle.h genutil.h output.h timer.h cube.h
output.o   : output.c output.h boggle.h genutil.h cube.h
play.o     : play.c play.h boggle.h genutil.h words.h cube.h timer.h	\
	     score.h input.h output.h
batch.o    : batch.c batch.h genutil.h cube.h words.h
dbuild.o   : dbuild.c dbuild.h genutil.h dict.h
boggle.o   : boggle.c boggle.h genutil.h dbuild.h batch.h play.h

install: boggle
	/usr/bin/install -c ./boggle $(prefix)/games/boggle
	/usr/bin/install -c ./boggle.6 ${prefix}/man/man6/boggle.6

dcat: dcat.c
	$(CC) $(CFLAGS) -o dcat dcat.c

clean:
	rm -f $(OBJLIST) boggle dcat config.log

dist:
	mkdir boggle-$(VER)
	chmod g-w boggle-$(VER)
	mv COPYING README Changelog Makefile.in batch.[ch] boggle.[ch6]	\
           configure configure.in cube.[ch] dict.[ch] dict.doc		\
           dbuild.[ch] genutil.[ch] input.[ch] install-sh output.[ch]	\
           play.[ch] score.[ch] timer.[ch] wordlist.[ch] words.[ch]	\
           boggle-$(VER)/.
	tar -czvf boggle-$(VER).tar.gz boggle-$(VER)
	mv boggle-$(VER)/* .
	rmdir boggle-$(VER)
