-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
122 lines (103 loc) · 3.69 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
CXX = $(shell root-config --cxx)
LD = $(shell root-config --ld)
INC = $(shell pwd)
CPPFLAGS := $(shell root-config --cflags) -I$(INC)/include
LDFLAGS := $(LDFLAGS) $(shell root-config --glibs) -lMathMore
CPPFLAGS += -g -Wall -Wextra -Wno-sign-compare
TARGET = diHiggs
TARGET1 = NormalizeNtuple
TARGET2 = diHiggsPlots
TARGET3 = SkimNtuple
TARGET4 = RunJetNtupler
TARGET5 = RunDileptonNtupler
TARGET6 = RunHHTo4BNtupler
TARGET7 = RunJetHTTriggerNtupler
TARGET8 = RunMakeMCPileupDistribution
TARGET9 = RunHHHTo6BNtupler
TARGET10 = RunHHTo2B2GNtupler
SRC = app/diHiggs.cc src/Events.cc src/CommandLineInput.cc
SRC1 = app/NormalizeNtuple.cc src/CommandLineInput.cc src/SimpleTable.cc
SRC2 = app/diHiggsPlots.cc src/hh_tree.cc src/CommandLineInput.cc
SRC3 = app/SkimNtuple.cc
SRC4 = app/RunJetNtupler.cc src/JetNtupler.cc src/EventAnalyzer.cc include/Events.hh
SRC5 = app/RunDileptonNtupler.cc src/DileptonNtupler.cc src/EventAnalyzer.cc include/Events.hh
SRC6 = app/RunHHTo4BNtupler.cc src/HHTo4BNtupler.cc src/JetCorrectionUncertainty.cc src/JetCorrectorParameters.cc src/SimpleJetCorrectionUncertainty.cc src/EventAnalyzer.cc include/Events.hh
SRC7 = app/RunJetHTTriggerNtupler.cc src/JetHTTriggerNtupler.cc src/EventAnalyzer.cc include/Events.hh
SRC8 = app/RunMakeMCPileupDistribution.cc src/MakeMCPileupDistribution.cc src/EventAnalyzer.cc include/Events.hh
SRC9 = app/RunHHHTo6BNtupler.cc src/HHHTo6BNtupler.cc src/JetCorrectionUncertainty.cc src/JetCorrectorParameters.cc src/SimpleJetCorrectionUncertainty.cc src/EventAnalyzer.cc include/Events.hh
SRC10 = app/RunHHTo2B2GNtupler.cc src/HHTo2B2GNtupler.cc src/JetCorrectionUncertainty.cc src/JetCorrectorParameters.cc src/SimpleJetCorrectionUncertainty.cc src/EventAnalyzer.cc include/Events.hh
OBJ = $(SRC:.cc=.o)
OBJ1 = $(SRC1:.cc=.o)
OBJ2 = $(SRC2:.cc=.o)
OBJ3 = $(SRC3:.cc=.o)
OBJ4 = $(SRC4:.cc=.o) src/Events.o
OBJ5 = $(SRC5:.cc=.o) src/Events.o
OBJ6 = $(SRC6:.cc=.o) src/Events.o
OBJ7 = $(SRC7:.cc=.o) src/Events.o
OBJ8 = $(SRC8:.cc=.o) src/Events.o
OBJ9 = $(SRC9:.cc=.o) src/Events.o
OBJ10 = $(SRC10:.cc=.o) src/Events.o
all : $(TARGET) $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) $(TARGET6) $(TARGET7) $(TARGET8) $(TARGET9) $(TARGET10)
$src/RazorEvents.o: $(SRCDIR)/RazorEvents.C $(INCLUDEDIR)/RazorEvents.h
$(CXX) $(SRCDIR)/RazorEvents.C $(CXXFLAGS) -I$(INCLUDEDIR) -c $(LDFLAGS) $(LIBS) -o $@ $(CXX14FLAGS)
$(TARGET) : $(OBJ)
$(LD) $(CPPFLAGS) -o $(TARGET) $(OBJ) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET1) : $(OBJ1)
$(LD) $(CPPFLAGS) -o $(TARGET1) $(OBJ1) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET2) : $(OBJ2)
$(LD) $(CPPFLAGS) -o $(TARGET2) $(OBJ2) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET3) : $(OBJ3)
$(LD) $(CPPFLAGS) -o $(TARGET3) $(OBJ3) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET4) : $(OBJ4)
$(LD) $(CPPFLAGS) -o $(TARGET4) $(OBJ4) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET5) : $(OBJ5)
$(LD) $(CPPFLAGS) -o $(TARGET5) $(OBJ5) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET6) : $(OBJ6)
$(LD) $(CPPFLAGS) -o $(TARGET6) $(OBJ6) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET7) : $(OBJ7)
$(LD) $(CPPFLAGS) -o $(TARGET7) $(OBJ7) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET8) : $(OBJ8)
$(LD) $(CPPFLAGS) -o $(TARGET8) $(OBJ8) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET9) : $(OBJ9)
$(LD) $(CPPFLAGS) -o $(TARGET9) $(OBJ9) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET10) : $(OBJ10)
$(LD) $(CPPFLAGS) -o $(TARGET10) $(OBJ10) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
%.o : %.cc
$(CXX) $(CPPFLAGS) -o $@ -c $<
@echo $@
@echo $<
clean :
rm -f *.o src/*.o $(TARGET) $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) $(TARGET6) $(TARGET7) $(TARGET8) $(TARGET9) $(TARGET10) app/*.o include/*.o *~