-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 1.12 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
LIBDIR = lib
SRCDIR = src
INTDIR = include
CINTDIR = cint
include $(ROOTSYS)/etc/Makefile.arch
CXXFLAGS += -I../.. -I.
ifeq ($(PLATFORM),macosx)
CXXFLAGS += -std=c++11
endif
OBJS = $(LIBDIR)/Plotter.o $(LIBDIR)/StyleInfo.o $(LIBDIR)/PlotTools.o $(LIBDIR)/Drawable.o $(LIBDIR)/Drawing.o HistoPlottingDict.o
INTS = $(INTDIR)/Plotter.h $(INTDIR)/PlotTools.h $(INTDIR)/Drawable.h $(INTDIR)/Drawing.h $(INTDIR)/StyleInfo.h
libHistoPlotting.so: $(OBJS)
ifeq ($(PLATFORM),macosx)
$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
else
$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
endif
HistoPlottingDict.cc: $(INTS) $(SRCDIR)/HistoPlotting_LinkDef.h
@echo "Generating dictionary $@..."
rootcling -v -l -f $@ -c -I../.. $^
$(LIBDIR)/HistoPlottingDict.o: HistoPlottingDict.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
$(LIBDIR)/%.o: $(SRCDIR)/%.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
all: libHistoPlotting.so
# ===============================
clean:
rm -f $(LIBDIR)/* $(CINTDIR)/* HistoPlottingDict* libHistoPlotting.so
# =============================== # DO NOT DELETE
# DO NOT DELETE