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

test: test_array test_assoc test_hash

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

download:
	wget http://www.cs.ucr.edu/~neal/cs141/Library/prog1/Test/00README
	wget http://www.cs.ucr.edu/~neal/cs141/Library/prog1/Test/Makefile
	wget http://www.cs.ucr.edu/~neal/cs141/Library/prog1/Test/test_utilities.h
	wget http://www.cs.ucr.edu/~neal/cs141/Library/prog1/Test/Comparisons.h
	wget http://www.cs.ucr.edu/~neal/cs141/Library/prog1/Test/test_assoc.cc
	wget http://www.cs.ucr.edu/~neal/cs141/Library/prog1/Test/test_array.cc
	wget http://www.cs.ucr.edu/~neal/cs141/Library/prog1/Test/test_hash.cc

clean:
	rm -f *.o *~ test_array test_assoc test_hash
