CCFLAGS=-g -Wno-deprecated -I ../Include CLASSES=Digraph Graph Array AssocList Hash SOURCE=$(wildcard ../Include/*) MAZES= maze_3.txt maze_10.txt maze_80.txt SOLNS=$(patsubst maze,soln,$(MAZES)) all: $(MAZES) $(SOLNS) maze_%.txt: gen_full_maze prune_maze ./gen_full_maze $* $* | prune_maze > maze_$*.txt soln_%.txt: find_and_mark_path maze_%.txt ./find_and_mark_path < maze_%.txt > soln_$*.txt gen_full_maze: gen_full_maze.cc g++ ${CCFLAGS} -o gen_full_maze gen_full_maze.cc prune_maze: ${SOURCE} prune_maze.cc g++ ${CCFLAGS} -o prune_maze prune_maze.cc clean: rm -f *~ *.o maze_*.txt prune_maze gen_full_maze