1.1 --- a/src/work/makefile Thu Dec 11 07:24:53 2003 +0000
1.2 +++ b/src/work/makefile Sat Dec 13 15:44:50 2003 +0000
1.3 @@ -1,3 +1,20 @@
1.4 -graphdemo: graphdemo.cc ../include/graph.h ../include/bfs.h \
1.5 +CXXFLAGS=-g -Wall -I../include
1.6 +
1.7 +none:
1.8 + @echo 'Please use one of these forms:'
1.9 + @echo ' make all'
1.10 + @echo ' make clean'
1.11 + @echo ' make graphdemo'
1.12 + @echo ' make bfsdemo'
1.13 +
1.14 +all: graphdemo bfsdemo
1.15 +
1.16 +clean:
1.17 + rm graphdemo bfsdemo
1.18 +graphdemo: graphdemo.cc ../include/graph.h \
1.19 ../include/oldgraph.h makefile
1.20 - g++ -g -I../include -o graphdemo graphdemo.cc
1.21 + g++ $(CXXFLAGS) -o graphdemo graphdemo.cc
1.22 +
1.23 +bfsdemo: bfsdemo.cc ../include/graph.h ../include/bfs.h \
1.24 + ../include/oldgraph.h makefile
1.25 + g++ $(CXXFLAGS) -o bfsdemo bfsdemo.cc