-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (19 loc) · 907 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
25
26
27
28
LIBRARIES := librootutil-tree.so librootutil-plot.so
CXXFLAGS := `root-config --cflags` -fPIC
LDFLAGS := `root-config --ldflags --libs --glibs` -lTreePlayer
all: $(LIBRARIES)
%.o: %.C
$(CC) $(INCLUDE) $(CXXFLAGS) -MMD -MP -o $@ -c $<
%.o: %.cxx
$(CXX) $(INCLUDE) $(CXXFLAGS) -MMD -MP -o $@ -c $<
librootutil-tree.so: tree/TreeWrapper.o tree/ChainWrapper.o tree/TreeDict.o
$(CXX) -shared -o $@ $^ $(LDFLAGS)
librootutil-plot.so: plot/drawWithCutAxis.o plot/GridCanvas.o plot/PlotDict.o
$(CXX) -shared -o $@ $^ $(LDFLAGS)
tree/TreeDict.cxx: tree/TreeWrapper.h tree/ChainWrapper.h tree/LinkDef.h
rootcling -f $@ -c $(CXXFLAGS) -rml librootutil-tree.so -s librootutil-tree.so $^
plot/PlotDict.cxx: plot/GridCanvas.h plot/LinkDef.h
rootcling -f $@ -c $(CXXFLAGS) -rml librootutil-plot.so -s librootutil-tree.so $^
clean:
rm -f tree/*.o *.so tree/TreeDict* plot/*.o plot/PlotDict*
.PHONY: clean