src/test/makefile
author marci
Fri, 30 Apr 2004 14:02:10 +0000
changeset 496 7c463a7635d4
parent 489 afbdf8a3a633
permissions -rw-r--r--
gw
beckerjc@483
     1
INCLUDEDIRS ?= -I../include
klao@490
     2
CXXFLAGS += -W -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