Sources := $(wildcard *.cpp)
Objects := $(patsubst %.cpp,%.o,$(Sources))
Targets := testfinder testpfinder testcount

CXX := g++
CC := g++
CXXFLAGS := -std=gnu++11 -Ofast -fopenmp
LDFLAGS := -std=gnu++11 -Ofast -fopenmp
LDLIBS := -lm

.PHONY:		all clean depend
all:		$(Targets)
clean:		; rm -f $(Objects) $(Targets)
depend:		$(Sources)
		gcc-makedepend $(CPPFLAGS) $(Sources)

testfinder:	testfinder.o
testpfinder:	testpfinder.o
testcount:	testcount.o
# DO NOT DELETE
testcount.o: testcount.cpp rootcnt.hpp romberg.hpp
testfinder.o: testfinder.cpp rootfinder.hpp rootcnt.hpp romberg.hpp
testit.o: testit.cpp romberg.hpp
testpfinder.o: testpfinder.cpp prootfinder.hpp rootcnt.hpp romberg.hpp
