src/test/makefile
author klao
Thu, 29 Apr 2004 22:39:17 +0000
changeset 489 afbdf8a3a633
parent 483 ce29ae5b2e1b
child 490 ceb56ff9d07f
permissions -rw-r--r--
Basic error handling facilities
(and possibly a g++-3.4.0 bug)
     1 INCLUDEDIRS ?= -I../include
     2 CXXFLAGS += -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) 
     3 #LEDAROOT ?= /ledasrc/LEDA-4.1
     4 
     5 BINARIES = dijkstra_heap_test unionfind_test error_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 
    13 CC=$(CXX)
    14 
    15 all: $(BINARIES)
    16 
    17 .depend dep depend:
    18 	$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend
    19 
    20 makefile: .depend
    21 sinclude .depend
    22 
    23 clean:
    24 	$(RM) *.o $(BINARIES) .depend
    25 
    26 .PHONY: all clean dep depend