src/work/makefile
changeset 28 e2e97c3aa219
parent 3 272a5677bd6d
child 34 2b607665c9e2
equal deleted inserted replaced
2:0e9d42206336 3:79834a0f5f73
     4 	@echo 'Please use one of these forms:'
     4 	@echo 'Please use one of these forms:'
     5 	@echo '   make all'
     5 	@echo '   make all'
     6 	@echo '   make clean'
     6 	@echo '   make clean'
     7 	@echo '   make graphdemo'
     7 	@echo '   make graphdemo'
     8 	@echo '   make bfsdemo'
     8 	@echo '   make bfsdemo'
       
     9 	@echo '   make bfsdemo2'
     9 
    10 
    10 all: graphdemo bfsdemo
    11 all: graphdemo bfsdemo bfsdemo2
    11 
    12 
    12 clean:
    13 clean:
    13 	rm graphdemo bfsdemo
    14 	rm graphdemo bfsdemo bfsdemo2
       
    15 
    14 graphdemo: graphdemo.cc ../include/graph.h \
    16 graphdemo: graphdemo.cc ../include/graph.h \
    15 	../include/oldgraph.h makefile
    17 	../include/oldgraph.h makefile
    16 	g++ $(CXXFLAGS) -o graphdemo graphdemo.cc
    18 	g++ $(CXXFLAGS) -o graphdemo graphdemo.cc
    17 
    19 
    18 bfsdemo: bfsdemo.cc ../include/graph.h ../include/bfs.h \
    20 bfsdemo: bfsdemo.cc ../include/graph.h ../include/bfs.h \
    19 	../include/oldgraph.h makefile
    21 	../include/oldgraph.h makefile
    20 	g++ $(CXXFLAGS) -o bfsdemo bfsdemo.cc
    22 	g++ $(CXXFLAGS) -o bfsdemo bfsdemo.cc
       
    23 
       
    24 bfsdemo2: bfsdemo2.cc ../include/graph.h ../include/bfs.h \
       
    25 	../include/oldgraph.h makefile
       
    26 	g++ $(CXXFLAGS) -o bfsdemo2 bfsdemo2.cc