
#CPP=KCC +K3

#CPP=KCC -g -w --one_instantiation_per_object
 CPP=g++ -ggdb -ansi -Wno-deprecated

# g++: -Wfloat-equal
# KCC:
# -Werror           Make all warnings into errors :)
# --thread_safe --exceptions --one_instantiation_per_object


ROOTCFLAGS=$(shell root-config --cflags)
ROOTGLIBS=$(shell root-config --libs)

response=Response_draw


$(response)_x : $(response).o mytools.o mydrawtools.o 
	$(CPP) $(ROOTCFLAGS) $(ROOTGLIBS) $(response).o mytools.o mydrawtools.o -o $(response)_x
$(response).o : $(response).cpp standardsetup.C fitResponse.cpp
	$(CPP) $(ROOTCFLAGS) $(ROOTGLIBS) -c $(response).cpp
mydrawtools.o : mydrawtools.hpp mydrawtools.cpp
	$(CPP) $(ROOTCFLAGS) $(ROOTGLIBS) -c mydrawtools.cpp
mytools.o : mytools.h mytools.cpp
	$(CPP) $(ROOTCFLAGS) $(ROOTGLIBS) -c mytools.cpp 

# histosR.o     : histosR.cpp histosR.hpp mytools.h mytools.cpp
#	$(CPP) $(ROOTCFLAGS) $(ROOTGLIBS) -c histosR.cpp


#----------------------------------------------------------------------------

clean :
	rm -f *.o *.\~
