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)
beckerjc@483
     1
INCLUDEDIRS ?= -I../include
beckerjc@483
     2
CXXFLAGS += -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) 
beckerjc@483
     3
#LEDAROOT ?= /ledasrc/LEDA-4.1
beckerjc@483
     4
klao@489
     5
BINARIES = dijkstra_heap_test unionfind_test error_test
beckerjc@483
     6
beckerjc@483
     7
ifdef GCCVER
beckerjc@483
     8
CXX := g++-$(GCCVER)
beckerjc@483
     9
else
beckerjc@483
    10
CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
beckerjc@483
    11
endif
beckerjc@483
    12
jacint@384
    13
CC=$(CXX)
jacint@384
    14
jacint@384
    15
all: $(BINARIES)
jacint@384
    16
jacint@384
    17
.depend dep depend:
beckerjc@483
    18
	$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend
jacint@384
    19
jacint@384
    20
makefile: .depend
jacint@384
    21
sinclude .depend
jacint@384
    22
jacint@384
    23
clean:
jacint@384
    24
	$(RM) *.o $(BINARIES) .depend
jacint@384
    25
jacint@384
    26
.PHONY: all clean dep depend