-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 1.2 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
#makefile for gallery c++ programs.
#Note, being all-incllusive here: you can cut out libraries/includes you do not need
#you can also change the flags if you want too (Werror, pedantic, etc.)
CPPFLAGS=-I $(BOOST_INC) \
-I $(CANVAS_INC) \
-I $(CETLIB_INC) \
-I $(FHICLCPP_INC) \
-I $(GALLERY_INC) \
-I $(LARCOREOBJ_INC) \
-I $(LARDATAOBJ_INC) \
-I $(NUSIMDATA_INC) \
-I $(ROOT_INC)
CXXFLAGS=-std=c++14 #-Wall #-pedantic #-Werror
CXX=g++
LDFLAGS=$$(root-config --libs) \
-L $(CANVAS_LIB) -l canvas_Utilities -l canvas_Persistency_Common -l canvas_Persistency_Provenance \
-L $(CETLIB_LIB) -l cetlib \
-L $(GALLERY_LIB) -l gallery \
-L $(NUSIMDATA_LIB) -l nusimdata_SimulationBase \
-L $(LARCOREOBJ_LIB) -l larcoreobj_SummaryData \
-L $(LARDATAOBJ_LIB) -l lardataobj_Simulation -l lardataobj_RecoBase -l lardataobj_MCBase -l lardataobj_RawData -l lardataobj_OpticalDetectorData -l lardataobj_AnalysisBase
GeoCuts_Radius: GeoCuts_Radius.cc
@$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
all: GeoCuts_Test GeoCuts_Radius
GeoCuts_Test: GeoCuts_Test.cc
@$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
clean:
rm *.o GeoCuts_Test GeoCuts_Radius