diff -r 37117ebbabe2 -r 272a5677bd6d src/work/makefile --- a/src/work/makefile Thu Dec 11 07:24:53 2003 +0000 +++ b/src/work/makefile Sat Dec 13 15:44:50 2003 +0000 @@ -1,3 +1,20 @@ -graphdemo: graphdemo.cc ../include/graph.h ../include/bfs.h \ +CXXFLAGS=-g -Wall -I../include + +none: + @echo 'Please use one of these forms:' + @echo ' make all' + @echo ' make clean' + @echo ' make graphdemo' + @echo ' make bfsdemo' + +all: graphdemo bfsdemo + +clean: + rm graphdemo bfsdemo +graphdemo: graphdemo.cc ../include/graph.h \ ../include/oldgraph.h makefile - g++ -g -I../include -o graphdemo graphdemo.cc + g++ $(CXXFLAGS) -o graphdemo graphdemo.cc + +bfsdemo: bfsdemo.cc ../include/graph.h ../include/bfs.h \ + ../include/oldgraph.h makefile + g++ $(CXXFLAGS) -o bfsdemo bfsdemo.cc