|
@@ -10,26 +10,26 @@ STRIP ?= strip --strip-unneeded -R .comment
|
|
|
|
|
|
# root-dependant stuff
|
|
|
ROOTCFLAGS ?= $(shell root-config --cflags)
|
|
|
-CXXFLAGS += -Wall -pipe -D_FILE_OFFSET_BITS=64 $(ROOTCFLAGS) -fvisibility-inlines-hidden
|
|
|
-ROOTLIBS = $(shell root-config --libs) -lEG -lpythia6 -lEGPythia6
|
|
|
+CXXFLAGS += -std=c++11 -Wall -pipe -D_FILE_OFFSET_BITS=64 $(ROOTCFLAGS) -fvisibility-inlines-hidden
|
|
|
+ROOTLIBS = $(shell root-config --libs)
|
|
|
DEPFLAGS = -isystem $(shell root-config --incdir)
|
|
|
|
|
|
-SRCS = pylam.cpp
|
|
|
+SRCS = htree.cpp tof.cpp
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
DEPS = $(SRCS:.cpp=.d)
|
|
|
|
|
|
##### RULES #####
|
|
|
.PHONY: all clean deps distclean tags
|
|
|
|
|
|
-all: pylam
|
|
|
+all: htree
|
|
|
|
|
|
deps: $(DEPS)
|
|
|
|
|
|
%.d: %.cpp
|
|
|
- $(CXX) $(DEPFLAGS) -MM -MG $< > $@
|
|
|
+ $(CXX) $(DEPFLAGS) $(CXXFLAGS) -MM -MG $< > $@
|
|
|
|
|
|
### Binaries rules
|
|
|
-pylam: $(DEPS) $(OBJS) Makefile
|
|
|
+htree: $(DEPS) $(OBJS) Makefile
|
|
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(ROOTLIBS) -o $@
|
|
|
ifndef DEBUG
|
|
|
$(STRIP) $@
|