-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
126 lines (88 loc) · 4.32 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
# One make to rule them all
# For trishul
include Makefile.inc
VPATH=./:./Dedispersion:./Plotting:./Formats:./Application:./Learnings:./ob
INCLUDES+= -I$(BOOST_INC) -L$(BOOST_LIB)
./ob/%.o : %.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
./ob/BSON.o : BSON.cpp
$(CXX) $(CFLAGS) $(INCLUDES) $(JSONINC) -c $< -o $@
./ob/CandidateProfilePlot.o : CandidateProfilePlot.cpp
$(CXX) $(CFLAGS) $(INCLUDES) \
-c $< -o $@
./ob/CandidatePlot.o : CandidatePlot.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -I$(DEDISP_INC) -I$(PGPLOT_INC) -L$(PGPLOT_LIB) \
-L$(PGFORTRAN_LIB) -c $< -o $@
./ob/BowtiePlot.o : BowtiePlot.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -I$(DEDISP_INC) -I$(PGPLOT_INC) -L$(PGPLOT_LIB) \
-L$(PGFORTRAN_LIB) -c $< -o $@
./ob/TestCandidatePlot.o : TestCandidatePlot.cpp
$(CXX) $(CFLAGS) $(INCLUDES) $(JSONINC) -c $< -o $@
./ob/TestCPlot.o : TestCPlot.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -I$(DEDISP_INC) $(JSONINC) -c $< -o $@
./ob/Dedisp.o : Dedisp.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -I$(DEDISP_INC) -c $< -o $@
./ob/TestDedisp.o : TestDedisp.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -I$(DEDISP_INC) -c $< -o $@
./ob/TestFilterbankDedisp.o : TestFilterbankDedisp.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -I$(DEDISP_INC) -c $< -o $@
testfcp : $(addprefix ./ob/, TestCPlot.o CandidatePlot.o TrishulPlotting.o \
Header.o BSON.o TrishulFormats.o \
PackUnpack.o Incoherent.o Timer.o Globals.o\
TrishulDedisperser.o Dedisp.o)
$(LINK) $+ -L$(BOOST_LIB) -L$(DEDISP_LIB) -Wl,-rpath=$(BOOST_LIB) $(LD_FLAGS) $(DEDISP_LD) $(BOOST_LD) -o $@
testcp : $(addprefix ./ob/, TestCandidatePlot.o CandidateProfilePlot.o TrishulPlotting.o \
Header.o BSON.o TrishulFormats.o \
PackUnpack.o \
Incoherent.o TrishulDedisperser.o )
$(LINK) $+ $(LD_FLAGS) -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(PGPLOT_LD) $(BOOST_LD) -o $@
testdd : $(addprefix ./ob/, TestDedisp.o \
Header.o BSON.o TrishulFormats.o \
PackUnpack.o \
Dedisp.o TrishulDedisperser.o )
$(LINK) $+ -L$(DEDISP_LIB) -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(DEDISP_LD) $(BOOST_LD) -o $@
testfb : $(addprefix ./ob/, TestFilterbank.o Filterbank.o TrishulFormats.o \
Header.o \
PackUnpack.o )
$(LINK) $+ -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(BOOST_LD) -o $@
testfbt : $(addprefix ./ob/, TestFBT.o FilterbankBowtiePlot.o TrishulPlotting.o \
Header.o Filterbank.o TrishulFormats.o \
PackUnpack.o \
Incoherent.o TrishulDedisperser.o )
$(LINK) $+ -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(PGPLOT_LD) $(BOOST_LD) -o $@
testfbd : $(addprefix ./ob/, TestFilterbankDedisp.o FilterbankBowtiePlot.o TrishulPlotting.o \
Header.o Filterbank.o TrishulFormats.o \
PackUnpack.o \
Dedisp.o TrishulDedisperser.o )
$(LINK) $+ -L$(DEDISP_LIB) -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(DEDISP_LD) $(BOOST_LD) $(LD_FLAGS) -o $@
testmglfb : $(addprefix ./ob/, TestMGL_FB.o \
Header.o Filterbank.o TrishulFormats.o \
PackUnpack.o \
Incoherent.o TrishulDedisperser.o )
$(LINK) $+ -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(PGPLOT_LD) $(BOOST_LD) -o $@
testlearn : $(addprefix ./ob/, TestLearnings.o Moments.o\
Learnings.o )
$(LINK) $+ -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(BOOST_LD) -o $@
clean:
rm -f ./ob/*.o
all : tscandplot
tscandplot : $(addprefix ./ob/, tscandplot.o CandidatePlot.o TrishulPlotting.o \
Header.o BSON.o TrishulFormats.o \
PackUnpack.o Incoherent.o Timer.o Globals.o\
TrishulDedisperser.o Dedisp.o)
$(LINK) $+ -L$(BOOST_LIB) -L$(DEDISP_LIB) -Wl,-rpath=$(BOOST_LIB) $(LD_FLAGS) $(DEDISP_LD) $(BOOST_LD) -o $@
tsbtplot : $(addprefix ./ob/, tsbtplot.o \
Header.o BSON.o TrishulFormats.o \
PackUnpack.o Timer.o Globals.o\
TrishulDedisperser.o FDMT_CPU.o Incoherent.o)
$(LINK) $+ -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(LD_FLAGS) $(BOOST_LD) -o $@
tsquery : $(addprefix ./ob/, tsquery.o \
Header.o BSON.o TrishulFormats.o )
$(LINK) $+ -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(LD_FLAGS) $(BOOST_LD) -o $@
tsfeature_lyon: $(addprefix ./ob/, tsfeature_lyon.o Moments.o\
Header.o BSON.o TrishulFormats.o \
PackUnpack.o Timer.o TrishulDedisperser.o FDMT_CPU.o \
Learnings.o )
$(LINK) $+ -L$(BOOST_LIB) -Wl,-rpath=$(BOOST_LIB) $(BOOST_LD) -o $@
.PHONY:
clean