author | alpar |
Wed, 14 Apr 2004 16:16:40 +0000 | |
changeset 324 | c8b0ad782bda |
parent 220 | 7deda4d6a07a |
child 372 | e6a156fc186d |
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} |
marci@311 | 6 |
CXXFLAGS = -W -Wall -ansi -pedantic -O3 $(INCLUDEDIRS) |
jacint@211 | 7 |
LEDAROOT ?= /ledasrc/LEDA-4.1 |
jacint@72 | 8 |
|
marci@311 | 9 |
BINARIES = preflow #dijkstra 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 |