CXX = g++ #CC = g++ ROOTCFLAGS = $(shell root-config --cflags) ROOTLIBS = $(shell root-config --libs) ROOTINC = $(shell root-config --incdir) LIBRARIES = $(shell root-config --libdir) OTHERLIBS = -lRooFit -lRooStats -lMathCore -lMinuit -lMLP -lTreePlayer -lRIO SRCDIR = src HDRDIR = ../inc OBJDIR = ../obj LIBDIR = ../lib BINDIR = ../bin #SRCFILES = $(wildcard $(SRCDIR)/*.$(SrcSuf)) #HDRFILES = $(wildcard $(HDRDIR)/*.$(HdrSuf)) #LinkDef = $(wildcard $(HDRDIR)/*_LinkDef.h) $(wildcard $(SRCDIR)/*_LinkDef.h) #DOXYDOCDIR = doxyhtml #DOXYDIR = doxygen #DOXYFILE = Doxyfile FLAGS = -fPIC all: combined_fit Dict.cc: combined_fit.cc LinkDef.h rootcint -f $@ -c LinkDef.h _DEPS = combined_fit.h \ NormSystematics.h \ ShapeSystematics.h \ HistogramPlotter.h \ SystematicsHelper.h \ MathTools.h DEPS = $(patsubst %,$(HDRDIR)/%,$(_DEPS)) _OBJ = combined_fit.o \ NormSystematics.o \ ShapeSystematics.o \ HistogramPlotter.o \ SystematicsHelper.o \ MathTools.o OBJ = $(patsubst %,$(HDRDIR)/%,$(_OBJ)) $(OBJDIR)/%.o: %.cc $(DEPS) $(CXX) -c -o $@ $< $(CFLAGS) combined_fit: combined_fit.cc Dict.cc NormSystematics.cc ShapeSystematics.cc HistogramPlotter.cc SystematicsHelper.cc MathTools.cc $(CXX) ${CXXFLAGS} $(ROOTCFLAGS) NormSystematics.cc ShapeSystematics.cc Dict.cc HistogramPlotter.cc SystematicsHelper.cc MathTools.cc combined_fit.cc -I$(ROOTINC) -L$(LIBRARIES) -I$(HDRDIR) -L./ $(ROOTLIBS) $(OTHERLIBS) -o combined_fit .PHONY: clean clean: rm -f Dict* $(OBJDIR)/*.o *~ core $(INCDIR)/*~