-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
94 lines (68 loc) · 3.59 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
ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs)
#ROOTCFLAGS = $(shell /usr/bin/root-config --cflags)
#ROOTLIBS = $(shell /usr/bin/root-config --libs)
#ROOTGLIBS = $(shell /usr/bin/root-config --glibs)
CXX = g++
CXXFLAGS = -g -Wall -fPIC -Wno-deprecated
NGLIBS = $(ROOTGLIBS)
NGLIBS += -lMinuit
CXXFLAGS += $(ROOTCFLAGS)
CXX += -I./
LIBS = $(ROOTLIBS)
GLIBS = $(filter-out -lNew, $(NGLIBS))
CXX += -I./obj/
OUTLIB = ./obj/
.SUFFIXES: .C
.PREFIXES: ./obj/
#----------------------------------------------------#
all: convertUSBWC2root8Channels convertUSBWC2root8ChannelsBin convertUSBWCMeas2root8Channels convertUSBWCMeas2root8ChannelsBin convertUSBWCRates2root8Channels convertUSBWCRates2root8ChannelsBin runL1 runL1Bin runL2 runMeasures
runL1: runL1.cpp obj/wfSim.o obj/waveformSimple.o obj/anaL1.o
g++ -o runL1 runL1.cpp $(OUTLIB)*.o `root-config --cflags --glibs`
runL1Bin: runL1Bin.cpp obj/wfSim.o obj/waveformSimple.o obj/anaL1Bin.o
g++ -o runL1Bin runL1Bin.cpp $(OUTLIB)*.o `root-config --cflags --glibs`
runL2: runL2.cpp obj/wfSim.o obj/anaL2.o
g++ -o runL2 runL2.cpp $(OUTLIB)*.o `root-config --cflags --glibs`
runMeasures: runMeasures.cpp obj/wfSim.o obj/anaMeasures.o
g++ -o runMeasures runMeasures.cpp $(OUTLIB)*.o `root-config --cflags --glibs`
obj/anaL1.o: src/anaL1.cpp src/anaL1.hh
$(CXX) $(CXXFLAGS) -c -I. -o $(OUTLIB)anaL1.o $<
obj/anaL1Bin.o: src/anaL1Bin.cpp src/anaL1Bin.hh
$(CXX) $(CXXFLAGS) -c -I. -o $(OUTLIB)anaL1Bin.o $<
obj/anaL2.o: src/anaL2.cpp src/anaL2.hh
$(CXX) $(CXXFLAGS) -c -I. -o $(OUTLIB)anaL2.o $<
obj/anaMeasures.o: src/anaMeasures.cpp src/anaMeasures.hh
$(CXX) $(CXXFLAGS) -c -I. -o $(OUTLIB)anaMeasures.o $<
obj/wfSim.o: wfSimulation/src/wfSim.cpp wfSimulation/src/wfSim.hh
$(CXX) $(CXXFLAGS) -c -I. -o $(OUTLIB)wfSim.o $<
obj/waveformSimple.o: wfSimulation/src/waveformSimple.cpp wfSimulation/src/waveformSimple.hh
$(CXX) $(CXXFLAGS) -c -I. -o $(OUTLIB)waveformSimple.o $<
obj/waveform.o: wfSimulation/src/waveform.cpp wfSimulation/src/waveform.hh
$(CXX) $(CXXFLAGS) -c -I. -o $(OUTLIB)waveform.o $<
convertUSBWC2root8Channels: convertUSBWC2root8Channels.cc
g++ -o convertUSBWC2root8Channels convertUSBWC2root8Channels.cc `root-config --cflags --glibs`
convertUSBWC2root8ChannelsBin: convertUSBWC2root8ChannelsBin.cc
g++ -o convertUSBWC2root8ChannelsBin convertUSBWC2root8ChannelsBin.cc `root-config --cflags --glibs`
convertUSBWCMeas2root8Channels: convertUSBWCMeas2root8Channels.cc
g++ -o convertUSBWCMeas2root8Channels convertUSBWCMeas2root8Channels.cc `root-config --cflags --glibs`
convertUSBWCMeas2root8ChannelsBin: convertUSBWCMeas2root8ChannelsBin.cc
g++ -o convertUSBWCMeas2root8ChannelsBin convertUSBWCMeas2root8ChannelsBin.cc `root-config --cflags --glibs`
convertUSBWCRates2root8Channels: convertUSBWCRates2root8Channels.cc
g++ -o convertUSBWCRates2root8Channels convertUSBWCRates2root8Channels.cc `root-config --cflags --glibs`
convertUSBWCRates2root8ChannelsBin: convertUSBWCRates2root8ChannelsBin.cc
g++ -o convertUSBWCRates2root8ChannelsBin convertUSBWCRates2root8ChannelsBin.cc `root-config --cflags --glibs`
clean:
rm -f runL1
rm -f runL1Bin
rm -f runL2
rm -f runMeasures
rm -f convertUSBWC2root8Channels
rm -f convertUSBWC2root8ChannelsBin
rm -f convertUSBWCMeas2root8Channels
rm -f convertUSBWCMeas2root8ChannelsBin
rm -f convertUSBWCRates2root8Channels
rm -f convertUSBWCRates2root8ChannelsBin
rm -f *~
rm -f src/*~
rm -f $(OUTLIB)*.o