author | jacint |
Thu, 22 Apr 2004 15:56:05 +0000 | |
changeset 374 | 0fc9cd9b854a |
parent 311 | 6635b11938fe |
child 388 | 8aca0af3f30b |
permissions | -rw-r--r-- |
marci@200 | 1 |
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 | 2 |
CXX2 = g++-2.95 |
marci@311 | 3 |
CXX=$(CXX3) |
marci@311 | 4 |
CC=$(CXX) |
marci@311 | 5 |
INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos} |
jacint@372 | 6 |
CXXFLAGS = -W -Wall -ansi -pedantic -O3 $(INCLUDEDIRS) |
jacint@211 | 7 |
LEDAROOT ?= /ledasrc/LEDA-4.1 |
jacint@72 | 8 |
|
jacint@372 | 9 |
BINARIES = preflow #dijkstra_bin_fib_test #preflow # prim |
jacint@72 | 10 |
|
jacint@111 | 11 |
all: $(BINARIES) |
jacint@111 | 12 |
|
marci@311 | 13 |
.depend dep depend: |
marci@311 | 14 |
-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null |
marci@311 | 15 |
|
jacint@111 | 16 |
makefile: .depend |
jacint@111 | 17 |
sinclude .depend |
jacint@111 | 18 |
|
marci@311 | 19 |
#preflow: |
marci@311 | 20 |
# $(CXX3) $(CXXFLAGS) -o preflow preflow.cc |
marci@311 | 21 |
# |
marci@311 | 22 |
#dijkstra: |
marci@311 | 23 |
# $(CXX3) $(CXXFLAGS) -o dijkstra dijkstra.cc |
marci@311 | 24 |
# |
marci@311 | 25 |
#prim: |
marci@311 | 26 |
# $(CXX3) $(CXXFLAGS) -o prim prim.cc |
jacint@170 | 27 |
|
jacint@111 | 28 |
clean: |
jacint@111 | 29 |
$(RM) *.o $(BINARIES) .depend |
jacint@111 | 30 |
|
jacint@111 | 31 |
.PHONY: all clean dep depend |