src/work/jacint/makefile
changeset 246 dc95ca4ebc7b
parent 211 9222a9b8b323
child 311 6635b11938fe
equal deleted inserted replaced
10:4c9eb41a70ed 11:5b1ebd32e6c7
     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 -O3 -I. -I.. -I../marci -I../alpar -I../../include  
     4 LEDAROOT ?= /ledasrc/LEDA-4.1
     4 LEDAROOT ?= /ledasrc/LEDA-4.1
     5 
     5 
     6 BINARIES = dijkstra prim preflow
     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 -I../alpar -o preflow preflow.cc 
    14 	$(CXX3) $(CXXFLAGS)  -o preflow preflow.cc 
    15 
    15 
    16 dijkstra: 
    16 dijkstra: 
    17 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -I../alpar  -o dijkstra dijkstra.cc
    17 	$(CXX3) $(CXXFLAGS)  -o dijkstra dijkstra.cc
    18 
    18 
    19 prim: 
    19 prim: 
    20 	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../marci -I../alpar -o prim prim.cc
    20 	$(CXX3) $(CXXFLAGS)  -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