src/work/makefile
author marci
Thu, 22 Jan 2004 17:04:38 +0000
changeset 31 d93bef0c4ed3
parent 3 272a5677bd6d
child 34 2b607665c9e2
permissions -rw-r--r--
c++
alpar@3
     1
CXXFLAGS=-g -Wall -I../include
alpar@3
     2
alpar@3
     3
none:
alpar@3
     4
	@echo 'Please use one of these forms:'
alpar@3
     5
	@echo '   make all'
alpar@3
     6
	@echo '   make clean'
alpar@3
     7
	@echo '   make graphdemo'
alpar@3
     8
	@echo '   make bfsdemo'
alpar@7
     9
	@echo '   make bfsdemo2'
alpar@3
    10
alpar@7
    11
all: graphdemo bfsdemo bfsdemo2
alpar@3
    12
alpar@3
    13
clean:
alpar@7
    14
	rm graphdemo bfsdemo bfsdemo2
alpar@7
    15
alpar@3
    16
graphdemo: graphdemo.cc ../include/graph.h \
alpar@1
    17
	../include/oldgraph.h makefile
alpar@3
    18
	g++ $(CXXFLAGS) -o graphdemo graphdemo.cc
alpar@3
    19
alpar@3
    20
bfsdemo: bfsdemo.cc ../include/graph.h ../include/bfs.h \
alpar@3
    21
	../include/oldgraph.h makefile
alpar@3
    22
	g++ $(CXXFLAGS) -o bfsdemo bfsdemo.cc
alpar@7
    23
alpar@7
    24
bfsdemo2: bfsdemo2.cc ../include/graph.h ../include/bfs.h \
alpar@7
    25
	../include/oldgraph.h makefile
alpar@7
    26
	g++ $(CXXFLAGS) -o bfsdemo2 bfsdemo2.cc