-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
24 lines (20 loc) · 920 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CXX = `root-config --cxx`
CXXFLAGS = `root-config --cflags` -fPIC -g -Wall
ROOTLIBS = `root-config --glibs` -lMathMore
SHARED = -shared
SRCS = TalysLibDict.cxx TalysLib.cc
HDRS = TalysLinkDef.h TalysLib.hh TXlsxwriter.hh
PROGRAM = TalysLib.so
all: $(PROGRAM)
TalysLibDict.cxx: $(HDRS) TalysLinkDef.h
@echo "Generating dictionary ..."
#@rootcint -f $@ -c -p $^
@rootcling -f TalysLibDict.cxx -rml TalysLib.so -rmf TalysLib.rootmap TalysLib.hh TXlsxwriter.hh TalysLinkDef.h
$(PROGRAM): $(SRCS)
@echo "Building $(PROGRAM) ..."
@rm -f $(PROGRAM)
@$(CXX) $(CXXFLAGS) $(SHARED) -o $@ $^ $(ROOTLIBS) /usr/lib/x86_64-linux-gnu/libzip.so /usr/lib/x86_64-linux-gnu/libsqlite3.so
@echo "done"
#options:
clean:; @rm -rf core *.so *.rootmap *.cxx *.pcm
install:; @echo 'export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:'`pwd`>>~/.bashrc; echo 'export CPATH=$$CPATH:'`pwd`>>~/.bashrc; echo 'export TALYSLIBDIR='`pwd` >> ~/.bashrc