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