marci makes makefile
authormarci
Wed, 07 Apr 2004 11:02:00 +0000
changeset 31330c5179f296b
parent 312 54e07057eb47
child 314 eabbe162e32e
marci makes makefile
src/work/athos/makefile
     1.1 --- a/src/work/athos/makefile	Wed Apr 07 10:57:58 2004 +0000
     1.2 +++ b/src/work/athos/makefile	Wed Apr 07 11:02:00 2004 +0000
     1.3 @@ -1,7 +1,29 @@
     1.4 -CXXFLAGS = -Wall -ansi -g
     1.5 -CXX = g++-3.0
     1.6 +CXX2 = g++-2.95
     1.7 +CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
     1.8 +CXX=$(CXX3)
     1.9 +CC=$(CXX)
    1.10 +#LEDAROOT ?= /ledasrc/LEDA-4.1
    1.11 +#BOOSTROOT ?= /home/marci/boost
    1.12 +INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos} #-I$(BOOSTROOT)
    1.13 +#LEDAINCLUDE ?= -I$(LEDAROOT)/incl
    1.14 +CXXFLAGS = -g -O -W -Wall $(INCLUDEDIRS) -ansi -pedantic
    1.15  
    1.16 -pf_demo: pf_demo.cc ../marci_graph_traits.hh ../list_graph.hh ../marci_property_vector.hh preflow_push.hh reverse_bfs.hh
    1.17 -	$(CXX) $(CXXFLAGS) -I. -I.. pf_demo.cc -o pf_demo 
    1.18 +#LEDABINARIES = lg_vs_sg leda_graph_demo leda_bfs_dfs max_bipartite_matching_demo
    1.19 +BINARIES = suurballe
    1.20 +#gw_vs_not preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda
    1.21  
    1.22 +all: $(BINARIES)
    1.23  
    1.24 +.depend dep depend:
    1.25 +	-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null
    1.26 +#	-g++ $(INCLUDEDIRS) $(LEDAINCLUDE) -M $(LEDABINARIES:=.cc) >> .depend #2>/dev/null
    1.27 +
    1.28 +
    1.29 +
    1.30 +makefile: .depend
    1.31 +sinclude .depend
    1.32 +
    1.33 +clean:
    1.34 +	$(RM) *.o $(BINARIES) .depend
    1.35 +
    1.36 +.PHONY: all clean dep depend