src/test/makefile
author beckerjc
Thu, 29 Apr 2004 17:00:44 +0000
changeset 483 ce29ae5b2e1b
parent 460 e4d291344277
child 489 afbdf8a3a633
permissions -rw-r--r--
UnionFind moved to include. Test compiles and runs cleanly.

* test/makefile:
minor cleanups
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
beckerjc@483
     5
BINARIES = dijkstra_heap_test unionfind_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