-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·240 lines (166 loc) · 12.2 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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
#------------------------------------------------------------------------------#
# This makefile was generated by 'cbp2make' tool rev.147 #
#------------------------------------------------------------------------------#
WORKDIR = `pwd`
CC = gcc
CXX = g++
AR = ar
LD = g++
WINDRES = windres
INC =
CFLAGS = -Wall -fexceptions -DHAS_SOCKET_H=1
RESINC =
LIBDIR =
LIB =
LDFLAGS =
INC_DEBUG = $(INC) -Iinclude
CFLAGS_DEBUG = $(CFLAGS) -g -DDEBUG=1 -DUSE_CURL=1 -DUSE_FORK=1
RESINC_DEBUG = $(RESINC)
RCFLAGS_DEBUG = $(RCFLAGS)
LIBDIR_DEBUG = $(LIBDIR)
LIB_DEBUG = $(LIB)-lcurl
LDFLAGS_DEBUG = $(LDFLAGS) -static-libstdc++
OBJDIR_DEBUG = obj/Debug
DEP_DEBUG =
OUT_DEBUG = bin/Debug/fpf
INC_RELEASE = $(INC) -Iinclude
CFLAGS_RELEASE = $(CFLAGS) -O3 -DUSE_CURL=1 -DUSE_FORK=1
RESINC_RELEASE = $(RESINC)
RCFLAGS_RELEASE = $(RCFLAGS)
LIBDIR_RELEASE = $(LIBDIR)
LIB_RELEASE = $(LIB)-lcurl
LDFLAGS_RELEASE = $(LDFLAGS) -static-libstdc++
OBJDIR_RELEASE = obj/Release
DEP_RELEASE =
OUT_RELEASE = bin/Release/fpf
OBJ_DEBUG = $(OBJDIR_DEBUG)/src/CNode_Resize.o $(OBJDIR_DEBUG)/src/CNode_RSSPipe.o $(OBJDIR_DEBUG)/src/CFrameSource_PDS.o $(OBJDIR_DEBUG)/src/CFrameSource_Simulator.o $(OBJDIR_DEBUG)/src/CInputStream_File.o $(OBJDIR_DEBUG)/src/CInputStream_Socket.o $(OBJDIR_DEBUG)/src/CNode_CADUdump.o $(OBJDIR_DEBUG)/src/CNode_Counter.o $(OBJDIR_DEBUG)/src/CNode_Descrambler.o $(OBJDIR_DEBUG)/src/CNode_EOSPdump.o $(OBJDIR_DEBUG)/src/CNode_EOSinv.o $(OBJDIR_DEBUG)/src/CNode_FileWriter.o $(OBJDIR_DEBUG)/src/CNode_PacketExtractor.o $(OBJDIR_DEBUG)/src/CNode_RS.o $(OBJDIR_DEBUG)/src/CFrameSource_CADU.o $(OBJDIR_DEBUG)/src/CNode_SCTrigger.o $(OBJDIR_DEBUG)/src/CNode_Splitter.o $(OBJDIR_DEBUG)/src/CNode_TFstat.o $(OBJDIR_DEBUG)/src/CNode_ZTS.o $(OBJDIR_DEBUG)/src/CNode_template.o $(OBJDIR_DEBUG)/src/ccsds.o $(OBJDIR_DEBUG)/src/class_factory.o $(OBJDIR_DEBUG)/src/decode_rs.o $(OBJDIR_DEBUG)/src/fpf.o $(OBJDIR_DEBUG)/src/fpf_main.o $(OBJDIR_DEBUG)/src/ini.o
OBJ_RELEASE = $(OBJDIR_RELEASE)/src/CNode_Resize.o $(OBJDIR_RELEASE)/src/CNode_RSSPipe.o $(OBJDIR_RELEASE)/src/CFrameSource_PDS.o $(OBJDIR_RELEASE)/src/CFrameSource_Simulator.o $(OBJDIR_RELEASE)/src/CInputStream_File.o $(OBJDIR_RELEASE)/src/CInputStream_Socket.o $(OBJDIR_RELEASE)/src/CNode_CADUdump.o $(OBJDIR_RELEASE)/src/CNode_Counter.o $(OBJDIR_RELEASE)/src/CNode_Descrambler.o $(OBJDIR_RELEASE)/src/CNode_EOSPdump.o $(OBJDIR_RELEASE)/src/CNode_EOSinv.o $(OBJDIR_RELEASE)/src/CNode_FileWriter.o $(OBJDIR_RELEASE)/src/CNode_PacketExtractor.o $(OBJDIR_RELEASE)/src/CNode_RS.o $(OBJDIR_RELEASE)/src/CFrameSource_CADU.o $(OBJDIR_RELEASE)/src/CNode_SCTrigger.o $(OBJDIR_RELEASE)/src/CNode_Splitter.o $(OBJDIR_RELEASE)/src/CNode_TFstat.o $(OBJDIR_RELEASE)/src/CNode_ZTS.o $(OBJDIR_RELEASE)/src/CNode_template.o $(OBJDIR_RELEASE)/src/ccsds.o $(OBJDIR_RELEASE)/src/class_factory.o $(OBJDIR_RELEASE)/src/decode_rs.o $(OBJDIR_RELEASE)/src/fpf.o $(OBJDIR_RELEASE)/src/fpf_main.o $(OBJDIR_RELEASE)/src/ini.o
all: debug release
clean: clean_debug clean_release
before_debug:
test -d bin/Debug || mkdir -p bin/Debug
test -d $(OBJDIR_DEBUG)/src || mkdir -p $(OBJDIR_DEBUG)/src
after_debug:
debug: before_debug out_debug after_debug
out_debug: before_debug $(OBJ_DEBUG) $(DEP_DEBUG)
$(LD) $(LIBDIR_DEBUG) -o $(OUT_DEBUG) $(OBJ_DEBUG) $(LDFLAGS_DEBUG) $(LIB_DEBUG)
$(OBJDIR_DEBUG)/src/CNode_RSSPipe.o: src/CNode_RSSPipe.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_RSSPipe.cpp -o $(OBJDIR_DEBUG)/src/CNode_RSSPipe.o
$(OBJDIR_DEBUG)/src/CFrameSource_PDS.o: src/CFrameSource_PDS.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CFrameSource_PDS.cpp -o $(OBJDIR_DEBUG)/src/CFrameSource_PDS.o
$(OBJDIR_DEBUG)/src/CFrameSource_Simulator.o: src/CFrameSource_Simulator.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CFrameSource_Simulator.cpp -o $(OBJDIR_DEBUG)/src/CFrameSource_Simulator.o
$(OBJDIR_DEBUG)/src/CInputStream_File.o: src/CInputStream_File.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CInputStream_File.cpp -o $(OBJDIR_DEBUG)/src/CInputStream_File.o
$(OBJDIR_DEBUG)/src/CInputStream_Socket.o: src/CInputStream_Socket.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CInputStream_Socket.cpp -o $(OBJDIR_DEBUG)/src/CInputStream_Socket.o
$(OBJDIR_DEBUG)/src/CNode_CADUdump.o: src/CNode_CADUdump.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_CADUdump.cpp -o $(OBJDIR_DEBUG)/src/CNode_CADUdump.o
$(OBJDIR_DEBUG)/src/CNode_Counter.o: src/CNode_Counter.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_Counter.cpp -o $(OBJDIR_DEBUG)/src/CNode_Counter.o
$(OBJDIR_DEBUG)/src/CNode_Descrambler.o: src/CNode_Descrambler.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_Descrambler.cpp -o $(OBJDIR_DEBUG)/src/CNode_Descrambler.o
$(OBJDIR_DEBUG)/src/CNode_EOSPdump.o: src/CNode_EOSPdump.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_EOSPdump.cpp -o $(OBJDIR_DEBUG)/src/CNode_EOSPdump.o
$(OBJDIR_DEBUG)/src/CNode_EOSinv.o: src/CNode_EOSinv.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_EOSinv.cpp -o $(OBJDIR_DEBUG)/src/CNode_EOSinv.o
$(OBJDIR_DEBUG)/src/CNode_FileWriter.o: src/CNode_FileWriter.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_FileWriter.cpp -o $(OBJDIR_DEBUG)/src/CNode_FileWriter.o
$(OBJDIR_DEBUG)/src/CNode_PacketExtractor.o: src/CNode_PacketExtractor.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_PacketExtractor.cpp -o $(OBJDIR_DEBUG)/src/CNode_PacketExtractor.o
$(OBJDIR_DEBUG)/src/CNode_RS.o: src/CNode_RS.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_RS.cpp -o $(OBJDIR_DEBUG)/src/CNode_RS.o
$(OBJDIR_DEBUG)/src/CFrameSource_CADU.o: src/CFrameSource_CADU.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CFrameSource_CADU.cpp -o $(OBJDIR_DEBUG)/src/CFrameSource_CADU.o
$(OBJDIR_DEBUG)/src/CNode_SCTrigger.o: src/CNode_SCTrigger.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_SCTrigger.cpp -o $(OBJDIR_DEBUG)/src/CNode_SCTrigger.o
$(OBJDIR_DEBUG)/src/CNode_Splitter.o: src/CNode_Splitter.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_Splitter.cpp -o $(OBJDIR_DEBUG)/src/CNode_Splitter.o
$(OBJDIR_DEBUG)/src/CNode_TFstat.o: src/CNode_TFstat.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_TFstat.cpp -o $(OBJDIR_DEBUG)/src/CNode_TFstat.o
$(OBJDIR_DEBUG)/src/CNode_ZTS.o: src/CNode_ZTS.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_ZTS.cpp -o $(OBJDIR_DEBUG)/src/CNode_ZTS.o
$(OBJDIR_DEBUG)/src/CNode_Resize.o: src/CNode_Resize.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_Resize.cpp -o $(OBJDIR_DEBUG)/src/CNode_Resize.o
$(OBJDIR_DEBUG)/src/CNode_template.o: src/CNode_template.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_template.cpp -o $(OBJDIR_DEBUG)/src/CNode_template.o
$(OBJDIR_DEBUG)/src/ccsds.o: src/ccsds.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/ccsds.cpp -o $(OBJDIR_DEBUG)/src/ccsds.o
$(OBJDIR_DEBUG)/src/class_factory.o: src/class_factory.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/class_factory.cpp -o $(OBJDIR_DEBUG)/src/class_factory.o
$(OBJDIR_DEBUG)/src/decode_rs.o: src/decode_rs.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/decode_rs.cpp -o $(OBJDIR_DEBUG)/src/decode_rs.o
$(OBJDIR_DEBUG)/src/fpf.o: src/fpf.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/fpf.cpp -o $(OBJDIR_DEBUG)/src/fpf.o
$(OBJDIR_DEBUG)/src/fpf_main.o: src/fpf_main.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/fpf_main.cpp -o $(OBJDIR_DEBUG)/src/fpf_main.o
$(OBJDIR_DEBUG)/src/ini.o: src/ini.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/ini.cpp -o $(OBJDIR_DEBUG)/src/ini.o
clean_debug:
rm -f $(OBJ_DEBUG) $(OUT_DEBUG)
rm -rf bin/Debug
rm -rf $(OBJDIR_DEBUG)/src
before_release:
test -d bin/Release || mkdir -p bin/Release
test -d $(OBJDIR_RELEASE)/src || mkdir -p $(OBJDIR_RELEASE)/src
after_release:
release: before_release out_release after_release
out_release: before_release $(OBJ_RELEASE) $(DEP_RELEASE)
$(LD) $(LIBDIR_RELEASE) -o $(OUT_RELEASE) $(OBJ_RELEASE) $(LDFLAGS_RELEASE) $(LIB_RELEASE)
$(OBJDIR_RELEASE)/src/CNode_RSSPipe.o: src/CNode_RSSPipe.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_RSSPipe.cpp -o $(OBJDIR_RELEASE)/src/CNode_RSSPipe.o
$(OBJDIR_RELEASE)/src/CFrameSource_PDS.o: src/CFrameSource_PDS.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CFrameSource_PDS.cpp -o $(OBJDIR_RELEASE)/src/CFrameSource_PDS.o
$(OBJDIR_RELEASE)/src/CFrameSource_Simulator.o: src/CFrameSource_Simulator.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CFrameSource_Simulator.cpp -o $(OBJDIR_RELEASE)/src/CFrameSource_Simulator.o
$(OBJDIR_RELEASE)/src/CInputStream_File.o: src/CInputStream_File.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CInputStream_File.cpp -o $(OBJDIR_RELEASE)/src/CInputStream_File.o
$(OBJDIR_RELEASE)/src/CInputStream_Socket.o: src/CInputStream_Socket.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CInputStream_Socket.cpp -o $(OBJDIR_RELEASE)/src/CInputStream_Socket.o
$(OBJDIR_RELEASE)/src/CNode_CADUdump.o: src/CNode_CADUdump.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_CADUdump.cpp -o $(OBJDIR_RELEASE)/src/CNode_CADUdump.o
$(OBJDIR_RELEASE)/src/CNode_Counter.o: src/CNode_Counter.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_Counter.cpp -o $(OBJDIR_RELEASE)/src/CNode_Counter.o
$(OBJDIR_RELEASE)/src/CNode_Descrambler.o: src/CNode_Descrambler.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_Descrambler.cpp -o $(OBJDIR_RELEASE)/src/CNode_Descrambler.o
$(OBJDIR_RELEASE)/src/CNode_EOSPdump.o: src/CNode_EOSPdump.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_EOSPdump.cpp -o $(OBJDIR_RELEASE)/src/CNode_EOSPdump.o
$(OBJDIR_RELEASE)/src/CNode_EOSinv.o: src/CNode_EOSinv.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_EOSinv.cpp -o $(OBJDIR_RELEASE)/src/CNode_EOSinv.o
$(OBJDIR_RELEASE)/src/CNode_Resize.o: src/CNode_Resize.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c src/CNode_Resize.cpp -o $(OBJDIR_DEBUG)/src/CNode_Resize.o
$(OBJDIR_RELEASE)/src/CNode_FileWriter.o: src/CNode_FileWriter.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_FileWriter.cpp -o $(OBJDIR_RELEASE)/src/CNode_FileWriter.o
$(OBJDIR_RELEASE)/src/CNode_PacketExtractor.o: src/CNode_PacketExtractor.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_PacketExtractor.cpp -o $(OBJDIR_RELEASE)/src/CNode_PacketExtractor.o
$(OBJDIR_RELEASE)/src/CNode_RS.o: src/CNode_RS.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_RS.cpp -o $(OBJDIR_RELEASE)/src/CNode_RS.o
$(OBJDIR_RELEASE)/src/CFrameSource_CADU.o: src/CFrameSource_CADU.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CFrameSource_CADU.cpp -o $(OBJDIR_RELEASE)/src/CFrameSource_CADU.o
$(OBJDIR_RELEASE)/src/CNode_SCTrigger.o: src/CNode_SCTrigger.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_SCTrigger.cpp -o $(OBJDIR_RELEASE)/src/CNode_SCTrigger.o
$(OBJDIR_RELEASE)/src/CNode_Splitter.o: src/CNode_Splitter.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_Splitter.cpp -o $(OBJDIR_RELEASE)/src/CNode_Splitter.o
$(OBJDIR_RELEASE)/src/CNode_TFstat.o: src/CNode_TFstat.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_TFstat.cpp -o $(OBJDIR_RELEASE)/src/CNode_TFstat.o
$(OBJDIR_RELEASE)/src/CNode_ZTS.o: src/CNode_ZTS.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_ZTS.cpp -o $(OBJDIR_RELEASE)/src/CNode_ZTS.o
$(OBJDIR_RELEASE)/src/CNode_template.o: src/CNode_template.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/CNode_template.cpp -o $(OBJDIR_RELEASE)/src/CNode_template.o
$(OBJDIR_RELEASE)/src/ccsds.o: src/ccsds.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/ccsds.cpp -o $(OBJDIR_RELEASE)/src/ccsds.o
$(OBJDIR_RELEASE)/src/class_factory.o: src/class_factory.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/class_factory.cpp -o $(OBJDIR_RELEASE)/src/class_factory.o
$(OBJDIR_RELEASE)/src/decode_rs.o: src/decode_rs.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/decode_rs.cpp -o $(OBJDIR_RELEASE)/src/decode_rs.o
$(OBJDIR_RELEASE)/src/fpf.o: src/fpf.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/fpf.cpp -o $(OBJDIR_RELEASE)/src/fpf.o
$(OBJDIR_RELEASE)/src/fpf_main.o: src/fpf_main.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/fpf_main.cpp -o $(OBJDIR_RELEASE)/src/fpf_main.o
$(OBJDIR_RELEASE)/src/ini.o: src/ini.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c src/ini.cpp -o $(OBJDIR_RELEASE)/src/ini.o
clean_release:
rm -f $(OBJ_RELEASE) $(OUT_RELEASE)
rm -rf bin/Release
rm -rf $(OBJDIR_RELEASE)/src
.PHONY: before_debug after_debug clean_debug before_release after_release clean_release