src/test/makefile
changeset 485 7f461ab4af1a
parent 460 e4d291344277
child 489 afbdf8a3a633
equal deleted inserted replaced
2:60045f87dcd5 3:9431ec924ca9
     1 #CXX3 := $(shell type -p g++-3.4 || shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
     1 INCLUDEDIRS ?= -I../include
     2 CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
     2 CXXFLAGS += -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) 
     3 CXX2 = g++-2.95
     3 #LEDAROOT ?= /ledasrc/LEDA-4.1
     4 CXX=$(CXX3)
     4 
       
     5 BINARIES = dijkstra_heap_test unionfind_test
       
     6 
       
     7 ifdef GCCVER
       
     8 CXX := g++-$(GCCVER)
       
     9 else
       
    10 CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
       
    11 endif
       
    12 
     5 CC=$(CXX)
    13 CC=$(CXX)
     6 INCLUDEDIRS ?= -I../include -I.. -I../work/{marci,jacint,alpar,klao,akos,athos} 
       
     7 CXXFLAGS = -W -Wall -ansi -pedantic -O3 $(INCLUDEDIRS) 
       
     8 LEDAROOT ?= /ledasrc/LEDA-4.1
       
     9 
       
    10 BINARIES = dijkstra_heap_test
       
    11 
    14 
    12 all: $(BINARIES)
    15 all: $(BINARIES)
    13 
    16 
    14 .depend dep depend:
    17 .depend dep depend:
    15 	-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null
    18 	$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend
    16 
    19 
    17 makefile: .depend
    20 makefile: .depend
    18 sinclude .depend
    21 sinclude .depend
    19 
    22 
    20 clean:
    23 clean: