CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) CXX2 = g++-2.95 CXX=$(CXX3) CC=$(CXX) INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos} CXXFLAGS = -W -Wall -ansi -pedantic -O3 $(INCLUDEDIRS) LEDAROOT ?= /ledasrc/LEDA-4.1 BINARIES = preflow #dijkstra prim all: $(BINARIES) .depend dep depend: -$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null makefile: .depend sinclude .depend #preflow: # $(CXX3) $(CXXFLAGS) -o preflow preflow.cc # #dijkstra: # $(CXX3) $(CXXFLAGS) -o dijkstra dijkstra.cc # #prim: # $(CXX3) $(CXXFLAGS) -o prim prim.cc clean: $(RM) *.o $(BINARIES) .depend .PHONY: all clean dep depend