
CCFLAGS=-g -Wno-deprecated -I . -I .. -I ./Test -I ./Include -I ../Include

HEADERS=../Digraph.h ../Graph.h ../Include/Array.h ../Include/AssocList.h ../Include/Hash.h test_utilities.h
SOURCE=../Digraph.cc ../Graph.cc ../Include/Array.cc ../Include/AssocList.cc ../Include/Hash.cc ${HEADERS}
TEST=test_digraph test_graph
OLDTEST=test_array test_assoc test_hash

test: ${TEST}

oldtest: ${OLDTEST}

test_graph: test_graph.cc ${SOURCE}
	g++ ${CCFLAGS} -o test_graph test_graph.cc
	- ./test_graph

test_digraph: test_digraph.cc ${SOURCE}
	g++ ${CCFLAGS} -o test_digraph test_digraph.cc
	- ./test_digraph

test_array: test_array.cc ../Array.cc ../Array.h
	g++ ${CCFLAGS} -o test_array test_array.cc
	- ./test_array

test_assoc: test_assoc.cc ../Array.cc ../Array.h ../AssocList.cc ../AssocList.h
	g++ ${CCFLAGS} -o test_assoc test_assoc.cc
	- ./test_assoc

test_hash: test_hash.cc ../Array.cc ../Array.h ../AssocList.cc ../AssocList.h ../Hash.cc ../Hash.h
	g++ ${CCFLAGS} -o test_hash test_hash.cc
	- ./test_hash

clean:
	rm -f *.o *~ ${TEST} ${OLDTEST}
