-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
222 lines (149 loc) · 7.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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
ifeq ($(ROOTSYS),)
$(error ROOTSYS is not define, do ssetup root)
endif
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
#INCDIRS := -I/opt/scarlet-3.x/include -I/opt/ktool-2.0/include -I/home/scaldwell/code/include
CXX = g++
CXXFLAGS = -c -g -O2 $(ROOTCFLAGS) -I/opt/scarlet-3.x/include -I/opt/ktool-2.0/include -I/home/scaldwell/code/include #$(INCDIRS)
LIBS = -Wl,-rpath,/opt/scarlet-3.x/lib:/opt/ktool-2.0/lib \
-L/opt/scarlet-3.x/lib -lscarlet -L/opt/ktool-2.0/lib -lktool
%.o: %.cxx
$(CXX) $(CXXFLAGS) $< -o $@
#%.d: %.cxx
# $(CXX) -MM $(INCDIRS) $< -o $@
cxxsrcs = $(wildcard *.cxx)
.PHONY: all clean
targets = tof_cuts gate_on_low_tof_noise tof_from_E cooling no_spikes_sb135 draw_no_spikes_loop write_metadata no_spikes_diagnostic betas_vs_cycle_time betas_vs_cycle_time_i137 tof_official beta_gamma mcp_cal mcp_cal_i137 rf_phase gammas_vs_cycle_time beta_gamma_0 beta_gamma_1 bdn_sort_20130903 bdn_sort_20130923 bdn_sort_20130924 bdn_sort_20130925 bdn_sort_Ge_only bdn_sort_20131029 bdn_sort_empty bdn_sort_20131112 bdn_sort_ADC1_only bdn_sort_ADC1_TDC1_only bdn_sort_20131119 bdn_sort_20131120 bdn_sort_20131120_noLiveTime bdn_sort_20131125 bdn_sort_20131203 bdn_Sort_09272012_for_2013_run_grtrthan_1681 bdn_Sort_09272012_for_2013_run_lessthan_1682 bdn_sort_20131210 bdn_sort_20140104 bdn_Sort_09272012 bdn_Sort_09272012_for_137i02_run00002 BFit Metadata bdn_sort_20140308 mcp_cal_pedSubtract bdn_sort_20140417 DeadtimeCorrection bdn_sort_20140515 ExampleProgram bdn_sort_20140527 bdn_sort_20140613 bdn_sort_20140805 bdn_sort_20140909 varTest BFitModelTest bdn_sort_20141027 bdnSort BFit2 PrintCaseInfo covTest
all: $(targets)
tof_cuts: tof_cuts.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
gate_on_low_tof_noise: gate_on_low_tof_noise.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
tof_from_E: tof_from_E.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
cooling: cooling.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
no_spikes_sb135: no_spikes_sb135.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
draw_no_spikes_loop: draw_no_spikes_loop.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
write_metadata: write_metadata.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
no_spikes_diagnostic: no_spikes_diagnostic.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
betas_vs_cycle_time: betas_vs_cycle_time.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
betas_vs_cycle_time_i137: betas_vs_cycle_time_i137.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
tof_official: tof_official.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
beta_gamma: beta_gamma.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
mcp_cal: mcp_cal.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
mcp_cal_i137: mcp_cal_i137.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
rf_phase: rf_phase.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
gammas_vs_cycle_time: gammas_vs_cycle_time.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
beta_gamma_0: beta_gamma_0.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
beta_gamma_1: beta_gamma_1.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20130903: bdn_sort_20130903.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20130923: bdn_sort_20130923.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20130924: bdn_sort_20130924.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20130925: bdn_sort_20130925.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_Ge_only: bdn_sort_Ge_only.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131029: bdn_sort_20131029.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_empty: bdn_sort_empty.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131112: bdn_sort_20131112.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_ADC1_only: bdn_sort_ADC1_only.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_ADC1_TDC1_only: bdn_sort_ADC1_TDC1_only.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131119: bdn_sort_20131119.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131120: bdn_sort_20131120.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131120_noLiveTime: bdn_sort_20131120_noLiveTime.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131125: bdn_sort_20131125.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131203: bdn_sort_20131203.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_Sort_09272012_for_2013_run_grtrthan_1681: bdn_Sort_09272012_for_2013_run_grtrthan_1681.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_Sort_09272012_for_2013_run_lessthan_1682: bdn_Sort_09272012_for_2013_run_lessthan_1682.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20131210: bdn_sort_20131210.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
#bdn_sort_20131211: bdn_sort_20131211.o
# $(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
#En: En.o
# $(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140104: bdn_sort_20140104.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_Sort_09272012: bdn_Sort_09272012.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_Sort_09272012_for_137i02_run00002: bdn_Sort_09272012_for_137i02_run00002.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
#B_fit: B_fit.o bdn_cases.o B_fit_cases.o
# $(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
BFit: BFit.o CSVtoStruct.o BFitModel.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
#BFit: BFit.o CSVtoStruct.o BFitModel.o CSVtoStruct.h
# $(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
#CSVtoStruct.o: CSVtoStruct.cxx CSVtoStruct.h
# $(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
#BFitModel.o: BFitModel.cxx BFitModel.h CSVtoStruct.h
# $(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
Metadata: Metadata.o CSVtoStruct.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140308: bdn_sort_20140308.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
mcp_cal_pedSubtract: mcp_cal_pedSubtract.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140417: bdn_sort_20140417.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
DeadtimeCorrection: DeadtimeCorrection.o CSVtoStruct.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140515: bdn_sort_20140515.o bdn_histograms.o bdn_trees.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
ExampleProgram: ExampleProgram.o CSVtoStruct.o mcpGridCorrection.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140527: bdn_sort_20140527.o bdn_histograms.o bdn_trees.o CSVtoStruct.o mcpGridCorrection.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140613: bdn_sort_20140613.o bdn_histograms.o bdn_trees_20140613.o CSVtoStruct.o mcpGridCorrection.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140805: bdn_sort_20140805.o bdn_histograms.o bdn_trees_20140613.o CSVtoStruct.o mcpGridCorrection.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20140909: bdn_sort_20140909.o bdn_histograms.o bdn_trees_20140613.o CSVtoStruct.o mcpGridCorrection.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
varTest: varTest.o varTestFunc.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
BFitModelTest: BFitModelTest.o BFitModel.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdn_sort_20141027: bdn_sort_20141027.o bdn_histograms.o bdn_trees_20140613.o CSVtoStruct.o mcpGridCorrection.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
bdnSort: bdnSort.o bdnHistograms.o bdnTrees.o CSVtoStruct.o mcpGridCorrection.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
BFit2: BFit2.o CSVtoStruct.o BFit2Model.o BFit2Populations.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
PrintCaseInfo: PrintCaseInfo.o CSVtoStruct.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
covTest: covTest.o
$(CXX) $^ -o $@ $(LIBS) $(ROOTLIBS)
-include $(cxxsrcs:.cxx=.d)
clean:
rm -f $(targets) *.o