1.1 --- a/src/work/jacint/makefile Mon Apr 05 18:24:37 2004 +0000
1.2 +++ b/src/work/jacint/makefile Tue Apr 06 12:00:34 2004 +0000
1.3 @@ -1,23 +1,29 @@
1.4 CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
1.5 CXX2 = g++-2.95
1.6 -CXXFLAGS = -W -Wall -ansi -pedantic -O3 -I. -I.. -I../marci -I../alpar -I../../include
1.7 +CXX=$(CXX3)
1.8 +CC=$(CXX)
1.9 +INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos}
1.10 +CXXFLAGS = -W -Wall -ansi -pedantic -O3 $(INCLUDEDIRS)
1.11 LEDAROOT ?= /ledasrc/LEDA-4.1
1.12
1.13 -BINARIES = dijkstra prim preflow
1.14 +BINARIES = preflow #dijkstra prim
1.15
1.16 all: $(BINARIES)
1.17
1.18 +.depend dep depend:
1.19 + -$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null
1.20 +
1.21 makefile: .depend
1.22 sinclude .depend
1.23
1.24 -preflow:
1.25 - $(CXX3) $(CXXFLAGS) -o preflow preflow.cc
1.26 -
1.27 -dijkstra:
1.28 - $(CXX3) $(CXXFLAGS) -o dijkstra dijkstra.cc
1.29 -
1.30 -prim:
1.31 - $(CXX3) $(CXXFLAGS) -o prim prim.cc
1.32 +#preflow:
1.33 +# $(CXX3) $(CXXFLAGS) -o preflow preflow.cc
1.34 +#
1.35 +#dijkstra:
1.36 +# $(CXX3) $(CXXFLAGS) -o dijkstra dijkstra.cc
1.37 +#
1.38 +#prim:
1.39 +# $(CXX3) $(CXXFLAGS) -o prim prim.cc
1.40
1.41 clean:
1.42 $(RM) *.o $(BINARIES) .depend