39 lines
864 B
Makefile
39 lines
864 B
Makefile
|
|
ROOTCFLAGS := $(shell root-config --cflags)
|
|
ROOTLIBS := $(shell root-config --libs)
|
|
ROOTGLIBS := $(shell root-config --glibs)
|
|
|
|
GSLCFLAGS := $(shell gsl-config --cflags)
|
|
GSLLIBS := $(shell gsl-config --libs)
|
|
GSLGLIBS := $(shell gsl-config --glibs)
|
|
|
|
|
|
LDFLAGS = -O
|
|
LIBS += $(ROOTLIBS) $(GSLLIBS) -L/cvmfs/lhcb.cern.ch/lib/lcg/releases/tbb/2018_U1-d3621/x86_64-slc6-gcc7-opt/lib
|
|
CFLAGS += $(ROOTCFLAGS) $(GSLCFLAGS) -I/cvmfs/lhcb.cern.ch/lib/lcg/releases/tbb/2018_U1-d3621/x86_64-slc6-gcc7-opt/include
|
|
|
|
# Not sure why Minuit isn't being included -- put in by hand
|
|
#
|
|
LIBS += -lMinuit -ltbb
|
|
|
|
|
|
all: eventdatroot
|
|
|
|
|
|
|
|
eventdatroot: eventdatroot.o
|
|
g++ -o eventdatroot eventdatroot.o $(LDFLAGS) $(LIBS)
|
|
|
|
%.o: %.c
|
|
g++ ${CFLAGS} -c -g $<
|
|
|
|
|
|
test:
|
|
@echo $(ROOTCFLAGS)
|
|
@echo $(LDFLAGS)
|
|
@echo $(LIBS)
|
|
|
|
clean:
|
|
-rm -f *.o
|
|
|