diff -r 54e07057eb47 -r 30c5179f296b src/work/athos/makefile --- a/src/work/athos/makefile Wed Apr 07 10:57:58 2004 +0000 +++ b/src/work/athos/makefile Wed Apr 07 11:02:00 2004 +0000 @@ -1,7 +1,29 @@ -CXXFLAGS = -Wall -ansi -g -CXX = g++-3.0 +CXX2 = g++-2.95 +CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) +CXX=$(CXX3) +CC=$(CXX) +#LEDAROOT ?= /ledasrc/LEDA-4.1 +#BOOSTROOT ?= /home/marci/boost +INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos} #-I$(BOOSTROOT) +#LEDAINCLUDE ?= -I$(LEDAROOT)/incl +CXXFLAGS = -g -O -W -Wall $(INCLUDEDIRS) -ansi -pedantic -pf_demo: pf_demo.cc ../marci_graph_traits.hh ../list_graph.hh ../marci_property_vector.hh preflow_push.hh reverse_bfs.hh - $(CXX) $(CXXFLAGS) -I. -I.. pf_demo.cc -o pf_demo +#LEDABINARIES = lg_vs_sg leda_graph_demo leda_bfs_dfs max_bipartite_matching_demo +BINARIES = suurballe +#gw_vs_not preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda +all: $(BINARIES) +.depend dep depend: + -$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null +# -g++ $(INCLUDEDIRS) $(LEDAINCLUDE) -M $(LEDABINARIES:=.cc) >> .depend #2>/dev/null + + + +makefile: .depend +sinclude .depend + +clean: + $(RM) *.o $(BINARIES) .depend + +.PHONY: all clean dep depend