-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (20 loc) · 798 Bytes
/
Makefile
File metadata and controls
23 lines (20 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CXX = `root-config --cxx`
CXXFLAGS = `root-config --cflags` -fPIC -g -Wall
ROOTLIBS = `root-config --glibs`
SHARED = -shared
SRCS = DecLibTestDict.cxx DecLibTest.cpp
HDRS = DecLibTestLinkDef.hh DecLibTest.hh
PROGRAM = DecLibTest.so
all: $(PROGRAM)
DecLibTestDict.cxx: $(HDRS) DecLibTestLinkDef.hh
@echo "Generating dictionary ..."
#@rootcint -f $@ -c -p $^
@rootcling -f DecLibTestDict.cxx -rml DecLibTest.so -rmf DecLibTestDict.rootmap DecLibTest.hh DecLibTestLinkDef.hh
$(PROGRAM): $(SRCS)
@echo "Building $(PROGRAM) ..."
@rm -f $(PROGRAM)
@$(CXX) $(CXXFLAGS) $(SHARED) -o $@ $^ $(ROOTLIBS)
@echo "done"
#options:
install:; @echo 'export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:'`pwd`>>~/.bashrc; echo 'export CPATH=$$CPATH:'`pwd`>>~/.bashrc
clean:; @rm -rf core *.so *.rootmap *.cxx *.pcm