-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·135 lines (105 loc) · 2.6 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
CXX = $(shell root-config --cxx)
LD = $(shell root-config --ld)
INC = $(shell pwd)
ROOTINC = ~/Downloads/root
CPPFLAGS := $(shell root-config --cflags) -I$(INC)/include -I$(ROOTINC)/math/mathmore/inc
LDFLAGS := $(shell root-config --glibs) $(STDLIBDIR) -lMathMore
# Debugging Flag
CPPFLAGS += -g
# Raw pulse analysis application
TARGET1 = analyze_t1065
SRC1 = analyze_t1065.cc
OBJ1 = $(SRC1:.cc=.o)
# Pixel analysis application
TARGET2 = pixel_analysis
SRC2 = pixel_analysis.cc
OBJ2 = $(SRC2:.cc=.o)
# Format conversion
TARGET3 = pulse_convert
SRC3 = pulse_convert.cc
OBJ3 = $(SRC3:.cc=.o)
# Find propoerties of a run by processing pixel data
TARGET4 = get_properties
SRC4 = get_properties.cc
OBJ4 = $(SRC4:.cc=.o)
# Draw amplitude/integral vs time stamp
TARGET5 = distribution
SRC5 = distribution.cc
OBJ5 = $(SRC5:.cc=.o)
# correction
TARGET6 = correction
SRC6 = correction.cc
OBJ6 = $(SRC6:.cc=.o)
# calibration
TARGET7 = calibration
SRC7 = calibration.cc
OBJ7 = $(SRC7:.cc=.o)
# make plot for time resolution
TARGET8 = makePlot
SRC8 = scripts/makePlot.cc
OBJ8 = $(SRC8:.cc=.o)
# weighting analysis
TARGET9 = weighting
SRC9 = weighting.cc
OBJ9 = $(SRC9:.cc=.o)
# make plot for calibrated resolution
TARGET10 = makePlot2
SRC10 = scripts/makePlot2.cc
OBJ10 = $(SRC10:.cc=.o)
all : $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) $(TARGET6) $(TARGET7) $(TARGET8) $(TARGET9) $(TARGET10)
$(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 $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) $(TARGET6) $(TARGET7) $(TARGET8) $(TARGET9) $(TARGET10) *~