CC=g++

SRC= graph.cpp node.cpp edge.cpp directed_graph.cpp dinode.cpp diedge.cpp template.cpp
GRAPH_OBJ= graph.o node.o edge.o
DIGRAPH_OBJ= directed_graph.o dinode.o diedge.o
UGRAPH_OBJ= undirected_graph.o unode.o uedge.o

all: test_digraph test_ugraph

test_digraph: ${GRAPH_OBJ} ${DIGRAPH_OBJ} test_digraph.cpp

	g++ -o test_digraph test_digraph.cpp ${GRAPH_OBJ} ${DIGRAPH_OBJ}

test_ugraph: ${GRAPH_OBJ} ${UGRAPH_OBJ} test_ugraph.cpp

	g++ -o test_ugraph test_ugraph.cpp ${GRAPH_OBJ} ${UGRAPH_OBJ}

clean:
	rm -rf *.o
