CCFLAGS=-g -Wno-deprecated -I ../Include CLASSES=Digraph Graph Array AssocList Hash SOURCE=$(wildcard ../Include/*) SIZES=003_003 003_010 005_005 100_100 MAZES=$(patsubst %,maze_%.txt,$(SIZES)) all: $(MAZES) $(SOLNS) maze_%.txt: gen_full_maze prune_maze ./gen_full_maze `echo $*| tr '_' ' '` | prune_maze > maze_$*.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