forked from mastbaum/geniev3-validation-plots
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (36 loc) · 1.36 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
40
41
42
43
44
CPPFLAGS=-I $(BOOST_INC) \
-I $(CANVAS_INC) \
-I $(CANVAS_ROOT_IO_INC) \
-I $(CETLIB_INC) \
-I $(CETLIB_EXCEPT_INC) \
-I $(FHICLCPP_INC) \
-I $(GALLERY_INC) \
-I $(LARCOREOBJ_INC) \
-I $(LARDATAOBJ_INC) \
-I $(NUSIMDATA_INC) \
-I $(ROOT_INC) \
-I $(LARSIM_INC) \
-I $(GENIE_INC) \
-I $(HEP_CONCURRENCY_INC) \
-D__LARSOFT__
CXX=g++
CXXFLAGS=-std=c++17 -Wall -Werror -pedantic -g -I.
LDFLAGS=$(shell root-config --libs) \
-lEG \
-L $(CANVAS_LIB) -l canvas \
-L $(CETLIB_LIB) -l cetlib \
-L $(CETLIB_EXCEPT_LIB) -l cetlib_except \
-L $(GALLERY_LIB) -l gallery \
-L $(NUSIMDATA_LIB) -l nusimdata_SimulationBase \
-L $(LARCOREOBJ_LIB) -l larcoreobj_SummaryData \
-L $(LARDATAOBJ_LIB) -l lardataobj_RecoBase \
-L $(LARSIM_LIB) -l larsim_EventWeight_Base_dict -l larsim_EventWeight_Base
CXXROOTONLY=$(shell root-config --cxx)
CXXFLAGSROOTONLY=$(shell root-config --cflags)
LDFLAGSROOTONLY=$(shell root-config --libs)
plot_kinematics: plot_kinematics.cpp filter.cpp distributions.cpp
@echo Building $@
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
plot_kinematics_nuistr: plot_kinematics_nuistr.cpp NuisTree.cpp filter.cpp distributions.cpp
@echo Building $@
$(CXXROOTONLY) $(CXXFLAGSROOTONLY) $(LDFLAGSROOTONLY) -o $@ $^