
# The C++ compiler. You should use g++ on most machines, but on
# machines that use GCC 3 as the default, and it does not work,
# you can try to use g++2
# instead... unless it dies of a memory leak or something
CPP=g++
# CPP=g++2

# Compiler options
# COPT = -O3 -g # -Wno-deprecated   -w
COPT = -O0 -g # -Wall

INC= -I ../../include

LINKOPT2 = -lm


all: timethem locality

%.o : %.cpp
	$(CPP) $(COPT)  -c  $(INC)  $<   


timethem: timethem.o mytime.o
	$(CPP) $(COPT) -o $@ $(INC) $^ $(LIBS)

locality: locality.o mytime.o
	$(CPP) $(COPT) -o $@ $(INC) $^ $(LIBS)

clean:
	rm *.o timethem locality
