marci@313: CXX2 = g++-2.95 marci@313: CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) marci@313: CXX=$(CXX3) marci@313: CC=$(CXX) marci@313: #LEDAROOT ?= /ledasrc/LEDA-4.1 marci@313: #BOOSTROOT ?= /home/marci/boost athos@314: INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,athos,akos,klao} #-I$(BOOSTROOT) marci@313: #LEDAINCLUDE ?= -I$(LEDAROOT)/incl athos@322: CXXFLAGS = -g -W -Wall $(INCLUDEDIRS) -ansi -pedantic athos@36: marci@313: #LEDABINARIES = lg_vs_sg leda_graph_demo leda_bfs_dfs max_bipartite_matching_demo marci@313: BINARIES = suurballe marci@313: #gw_vs_not preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda athos@36: marci@313: all: $(BINARIES) athos@36: marci@313: .depend dep depend: marci@313: -$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null marci@313: # -g++ $(INCLUDEDIRS) $(LEDAINCLUDE) -M $(LEDABINARIES:=.cc) >> .depend #2>/dev/null marci@313: marci@313: marci@313: marci@313: makefile: .depend marci@313: sinclude .depend marci@313: marci@313: clean: marci@313: $(RM) *.o $(BINARIES) .depend marci@313: marci@313: .PHONY: all clean dep depend