src/work/athos/makefile
changeset 313 30c5179f296b
parent 201 b9158a014fe8
child 314 eabbe162e32e
equal deleted inserted replaced
1:f42f37adc31d 2:c5a8f22f03b2
     1 CXXFLAGS = -Wall -ansi -g
     1 CXX2 = g++-2.95
     2 CXX = g++-3.0
     2 CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
       
     3 CXX=$(CXX3)
       
     4 CC=$(CXX)
       
     5 #LEDAROOT ?= /ledasrc/LEDA-4.1
       
     6 #BOOSTROOT ?= /home/marci/boost
       
     7 INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos} #-I$(BOOSTROOT)
       
     8 #LEDAINCLUDE ?= -I$(LEDAROOT)/incl
       
     9 CXXFLAGS = -g -O -W -Wall $(INCLUDEDIRS) -ansi -pedantic
     3 
    10 
     4 pf_demo: pf_demo.cc ../marci_graph_traits.hh ../list_graph.hh ../marci_property_vector.hh preflow_push.hh reverse_bfs.hh
    11 #LEDABINARIES = lg_vs_sg leda_graph_demo leda_bfs_dfs max_bipartite_matching_demo
     5 	$(CXX) $(CXXFLAGS) -I. -I.. pf_demo.cc -o pf_demo 
    12 BINARIES = suurballe
       
    13 #gw_vs_not preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda
       
    14 
       
    15 all: $(BINARIES)
       
    16 
       
    17 .depend dep depend:
       
    18 	-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null
       
    19 #	-g++ $(INCLUDEDIRS) $(LEDAINCLUDE) -M $(LEDABINARIES:=.cc) >> .depend #2>/dev/null
     6 
    20 
     7 
    21 
       
    22 
       
    23 makefile: .depend
       
    24 sinclude .depend
       
    25 
       
    26 clean:
       
    27 	$(RM) *.o $(BINARIES) .depend
       
    28 
       
    29 .PHONY: all clean dep depend