## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = foreign

EXTRA_DIST = \
		ALGORITHM	\
		BUGS		\
		aux		\
		de.bag		\
		de.layout	\
		en.bag		\
		en.layout

bin_PROGRAMS = crossword trie rotations

trie_SOURCES = \
		WordListTrie.cc	\
		WordListTrie.hh	\
		trie.cc

rotations_SOURCES = rotations.c

crossword_SOURCES = \
		Bag.hh		\
		Board.cc	\
		Board.hh	\
		Bot.cc		\
		Bot.hh		\
		Dir.hh		\
		HumanPlayer.cc	\
		HumanPlayer.hh	\
		Move.hh		\
		Player.cc	\
		Player.hh	\
		Pos.hh		\
		Rack.hh		\
		Rules.cc	\
		Rules.hh	\
		Tile.hh		\
		Trie.cc		\
		Trie.hh		\
		TrieNode.hh	\
		main.cc

%.dict: %.dict.sq
	./unsq.pl < $< > $@

%.trie: %.dict trie rotations
	./rotations < $< | sort -u | ./trie > $@
