beckerjc@483: INCLUDEDIRS ?= -I../include klao@490: CXXFLAGS += -W -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) beckerjc@483: #LEDAROOT ?= /ledasrc/LEDA-4.1 beckerjc@483: klao@489: BINARIES = dijkstra_heap_test unionfind_test error_test beckerjc@483: beckerjc@483: ifdef GCCVER beckerjc@483: CXX := g++-$(GCCVER) beckerjc@483: else beckerjc@483: 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: endif beckerjc@483: jacint@384: CC=$(CXX) jacint@384: jacint@384: all: $(BINARIES) jacint@384: jacint@384: .depend dep depend: beckerjc@483: $(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend jacint@384: jacint@384: makefile: .depend jacint@384: sinclude .depend jacint@384: jacint@384: clean: jacint@384: $(RM) *.o $(BINARIES) .depend jacint@384: jacint@384: .PHONY: all clean dep depend