INCLUDEDIRS ?= -I../include
CXXFLAGS += -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) 
#LEDAROOT ?= /ledasrc/LEDA-4.1

BINARIES = dijkstra_heap_test unionfind_test

ifdef GCCVER
CXX := g++-$(GCCVER)
else
CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
endif

CC=$(CXX)

all: $(BINARIES)

.depend dep depend:
	$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend

makefile: .depend
sinclude .depend

clean:
	$(RM) *.o $(BINARIES) .depend

.PHONY: all clean dep depend
