-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
59 lines (47 loc) · 1.98 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
45
46
47
48
49
50
51
52
53
54
55
56
57
SRCS=MCSUnfolding.cpp Collection.cpp MCSAnalysis.cpp
OBJS=$(SRCS:.cpp=.o)
CC = g++
DEBUG = -g -w
CFLAGS = -Wall $(DEBUG) -std=c++11
#-O3
IFLAGS=-I${MAUS_ROOT_DIR}/ \
-I${MAUS_ROOT_DIR}/src/common_cpp \
-I${MAUS_ROOT_DIR}/src/legacy \
-I${MAUS_THIRD_PARTY}/third_party/install/include \
-I${MAUS_THIRD_PARTY}/third_party/install/include/libxml2 \
-I${MAUS_THIRD_PARTY}/third_party/install/include/python2.7 \
-I${ROOTSYS}/include \
-I/home/ppe/j/jnugent/workarea/Unfolding/RooUnfold-1.1.1/src
LFLAGS=-L${MAUS_THIRD_PARTY}/third_party/build/root/lib -lPyROOT \
-ljson \
-L${MAUS_THIRD_PARTY}/third_party/build/root/lib -lSpectrum \
-L${MAUS_THIRD_PARTY}/third_party/build/gcc-4.9.3/obj/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -lstdc++ \
-L${MAUS_THIRD_PARTY}/third_party/install/lib \
-L${MAUS_THIRD_PARTY}/build \
-L/home/ppe/j/jnugent/workarea/Unfolding/RooUnfold-1.1.1 \
-lRooUnfold \
`root-config --ldflags` \
`${ROOTSYS}/bin/root-config --glibs` \
-lMausCpp \
-L${MAUS_ROOT_DIR}/third_party/lib -lxml2\
-L/usr/lib64 \
-L/usr/lib64/root \
-Wl,--no-as-needed
EXECUTABLE=MCSUnfolding reduce_tof2_trigger reduce_tof1_trigger spreduce_tof1_trigger mod_reduce_tof1_trigger trkr_effi
all : $(SRCS) $(EXECUTABLE)
.cpp.o:
$(CC) -c $(CFLAGS) -o $@ $< $(IFLAGS) $(LFLAGS)
MCSUnfolding: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(IFLAGS) $(OBJS) $(LFLAGS)
reduce_tof2_trigger: reduce_tof2_trigger.cc
$(CC) $(CFLAGS) reduce_tof2_trigger.cc -o $@ $(IFLAGS) $(LFLAGS)
reduce_tof1_trigger: reduce_tof1_trigger.cc
$(CC) $(CFLAGS) reduce_tof1_trigger.cc -o $@ $(IFLAGS) $(LFLAGS)
trkr_effi: trkr_effi.cc
$(CC) $(CFLAGS) trkr_effi.cc -o $@ $(IFLAGS) $(LFLAGS)
spreduce_tof1_trigger: spreduce_tof1_trigger.cc
$(CC) $(CFLAGS) spreduce_tof1_trigger.cc -o $@ $(IFLAGS) $(LFLAGS)
mod_reduce_tof1_trigger: mod_reduce_tof1_trigger.cc
$(CC) $(CFLAGS) mod_reduce_tof1_trigger.cc -o $@ $(IFLAGS) $(LFLAGS)
clean:
\rm *.o $(EXECUTABLE)