src/work/jacint/makefile
changeset 311 6635b11938fe
parent 220 7deda4d6a07a
child 372 e6a156fc186d
equal deleted inserted replaced
11:5b1ebd32e6c7 12:d45afa772576
     1 CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
     1 CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
     2 CXX2 = g++-2.95
     2 CXX2 = g++-2.95
     3 CXXFLAGS = -W -Wall -ansi -pedantic -O3 -I. -I.. -I../marci -I../alpar -I../../include  
     3 CXX=$(CXX3)
       
     4 CC=$(CXX)
       
     5 INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos} 
       
     6 CXXFLAGS = -W -Wall -ansi -pedantic -O3 $(INCLUDEDIRS) 
     4 LEDAROOT ?= /ledasrc/LEDA-4.1
     7 LEDAROOT ?= /ledasrc/LEDA-4.1
     5 
     8 
     6 BINARIES = dijkstra prim preflow
     9 BINARIES = preflow #dijkstra prim
     7 
    10 
     8 all: $(BINARIES)
    11 all: $(BINARIES)
       
    12 
       
    13 .depend dep depend:
       
    14 	-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null
     9 
    15 
    10 makefile: .depend
    16 makefile: .depend
    11 sinclude .depend
    17 sinclude .depend
    12 
    18 
    13 preflow: 
    19 #preflow: 
    14 	$(CXX3) $(CXXFLAGS)  -o preflow preflow.cc 
    20 #	$(CXX3) $(CXXFLAGS)  -o preflow preflow.cc 
    15 
    21 #
    16 dijkstra: 
    22 #dijkstra: 
    17 	$(CXX3) $(CXXFLAGS)  -o dijkstra dijkstra.cc
    23 #	$(CXX3) $(CXXFLAGS)  -o dijkstra dijkstra.cc
    18 
    24 #
    19 prim: 
    25 #prim: 
    20 	$(CXX3) $(CXXFLAGS)  -o prim prim.cc
    26 #	$(CXX3) $(CXXFLAGS)  -o prim prim.cc
    21 
    27 
    22 clean:
    28 clean:
    23 	$(RM) *.o $(BINARIES) .depend
    29 	$(RM) *.o $(BINARIES) .depend
    24 
    30 
    25 .PHONY: all clean dep depend
    31 .PHONY: all clean dep depend