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,athos,akos,klao} #-I$(BOOSTROOT) #LEDAINCLUDE ?= -I$(LEDAROOT)/incl CXXFLAGS = -g -O -W -Wall $(INCLUDEDIRS) -ansi -pedantic #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