src/work/jacint/makefile
changeset 218 5964f1c64ca1
parent 200 f40bb16b0405
child 220 7deda4d6a07a
equal deleted inserted replaced
9:d173d4d3aca7 10:4c9eb41a70ed
     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
     3 CXXFLAGS = -W -Wall -ansi -pedantic
     4 LEDAROOT = /ledasrc/LEDA-4.1
     4 LEDAROOT ?= /ledasrc/LEDA-4.1
     5 
     5 
     6 BINARIES = preflow dijkstra prim
     6 BINARIES = dijkstra prim preflow
     7 
     7 
     8 all: $(BINARIES)
     8 all: $(BINARIES)
     9 
     9 
    10 makefile: .depend
    10 makefile: .depend
    11 sinclude .depend
    11 sinclude .depend
    12 
    12 
    13 preflow: 
    13 preflow: 
    14 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -o preflow preflow.cc
    14 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -I../alpar -o preflow preflow.cc 
    15 
    15 
    16 dijkstra: 
    16 dijkstra: 
    17 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -o dijkstra dijkstra.cc
    17 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -I../alpar  -o dijkstra dijkstra.cc
    18 
    18 
    19 prim: 
    19 prim: 
    20 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -o prim prim.cc
    20 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -I../alpar -o prim prim.cc
    21 
    21 
    22 clean:
    22 clean:
    23 	$(RM) *.o $(BINARIES) .depend
    23 	$(RM) *.o $(BINARIES) .depend
    24 
    24 
    25 .PHONY: all clean dep depend
    25 .PHONY: all clean dep depend