forked from stargieg/bacnet-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.mak
351 lines (281 loc) · 10.9 KB
/
test.mak
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# tools - only if you need them.
# Most platforms have this already defined
# CC = gcc
# AR = ar
# MAKE = $(MAKE)
# SIZE = size
#
# Assumes rm, touch, and cp are available
LOGFILE = test.log
all: abort address arf awf bvlc6 bacapp bacdcode bacerror bacint bacstr \
cov crc datetime dcc event filename fifo getevent iam ihave \
indtext keylist key memcopy npdu proplist ptransfer \
rd reject ringbuf rp rpm sbuf timesync vmac \
whohas whois wp objects lighting
clean: logfile
rm ${LOGFILE}
logfile:
touch ${LOGFILE}
abort: logfile test/abort.mak
$(MAKE) -s -C test -f abort.mak clean all
( ./test/abort >> ${LOGFILE} )
$(MAKE) -s -C test -f abort.mak clean
address: logfile test/address.mak
$(MAKE) -s -C test -f address.mak clean all
( ./test/address >> ${LOGFILE} )
$(MAKE) -s -C test -f address.mak clean
arf: logfile test/arf.mak
$(MAKE) -s -C test -f arf.mak clean all
( ./test/arf >> ${LOGFILE} )
$(MAKE) -s -C test -f arf.mak clean
awf: logfile test/awf.mak
$(MAKE) -s -C test -f awf.mak clean all
( ./test/awf >> ${LOGFILE} )
$(MAKE) -s -C test -f awf.mak clean
bacapp: logfile test/bacapp.mak
$(MAKE) -s -C test -f bacapp.mak clean all
( ./test/bacapp >> ${LOGFILE} )
$(MAKE) -s -C test -f bacapp.mak clean
bacdcode: logfile test/bacdcode.mak
$(MAKE) -s -C test -f bacdcode.mak clean all
( ./test/bacdcode >> ${LOGFILE} )
$(MAKE) -s -C test -f bacdcode.mak clean
bacerror: logfile test/bacerror.mak
$(MAKE) -s -C test -f bacerror.mak clean all
( ./test/bacerror >> ${LOGFILE} )
$(MAKE) -s -C test -f bacerror.mak clean
bacint: logfile test/bacint.mak
$(MAKE) -s -C test -f bacint.mak clean all
( ./test/bacint >> ${LOGFILE} )
$(MAKE) -s -C test -f bacint.mak clean
bacstr: logfile test/bacstr.mak
$(MAKE) -s -C test -f bacstr.mak clean all
( ./test/bacstr >> ${LOGFILE} )
$(MAKE) -s -C test -f bacstr.mak clean
bvlc6: logfile test/bvlc6.mak
$(MAKE) -s -C test -f bvlc6.mak clean all
( ./test/bvlc6 >> ${LOGFILE} )
$(MAKE) -s -C test -f bvlc6.mak clean
cov: logfile test/cov.mak
$(MAKE) -s -C test -f cov.mak clean all
( ./test/cov >> ${LOGFILE} )
$(MAKE) -s -C test -f cov.mak clean
crc: logfile test/crc.mak
$(MAKE) -s -C test -f crc.mak clean all
( ./test/crc >> ${LOGFILE} )
$(MAKE) -s -C test -f crc.mak clean
datetime: logfile test/datetime.mak
$(MAKE) -s -C test -f datetime.mak clean all
( ./test/datetime >> ${LOGFILE} )
$(MAKE) -s -C test -f datetime.mak clean
dcc: logfile test/dcc.mak
$(MAKE) -s -C test -f dcc.mak clean all
( ./test/dcc >> ${LOGFILE} )
$(MAKE) -s -C test -f dcc.mak clean
event: logfile test/event.mak
$(MAKE) -s -C test -f event.mak clean all
( ./test/event >> ${LOGFILE} )
$(MAKE) -s -C test -f event.mak clean
filename: logfile test/filename.mak
$(MAKE) -s -C test -f filename.mak clean all
( ./test/filename >> ${LOGFILE} )
$(MAKE) -s -C test -f filename.mak clean
fifo: logfile test/fifo.mak
$(MAKE) -s -C test -f fifo.mak clean all
( ./test/fifo >> ${LOGFILE} )
$(MAKE) -s -C test -f fifo.mak clean
getevent: logfile test/getevent.mak
$(MAKE) -s -C test -f getevent.mak clean all
( ./test/getevent >> ${LOGFILE} )
$(MAKE) -s -C test -f getevent.mak clean
iam: logfile test/iam.mak
$(MAKE) -s -C test -f iam.mak clean all
( ./test/iam >> ${LOGFILE} )
$(MAKE) -s -C test -f iam.mak clean
ihave: logfile test/ihave.mak
$(MAKE) -s -C test -f ihave.mak clean all
( ./test/ihave >> ${LOGFILE} )
$(MAKE) -s -C test -f ihave.mak clean
indtext: logfile test/indtext.mak
$(MAKE) -s -C test -f indtext.mak clean all
( ./test/indtext >> ${LOGFILE} )
$(MAKE) -s -C test -f indtext.mak clean
keylist: logfile test/keylist.mak
$(MAKE) -s -C test -f keylist.mak clean all
( ./test/keylist >> ${LOGFILE} )
$(MAKE) -s -C test -f keylist.mak clean
key: logfile test/key.mak
$(MAKE) -s -C test -f key.mak clean all
( ./test/key >> ${LOGFILE} )
$(MAKE) -s -C test -f key.mak clean
lighting: logfile test/lighting.mak
$(MAKE) -s -C test -f lighting.mak clean all
( ./test/lighting >> ${LOGFILE} )
$(MAKE) -s -C test -f lighting.mak clean
memcopy: logfile test/memcopy.mak
$(MAKE) -s -C test -f memcopy.mak clean all
( ./test/memcopy >> ${LOGFILE} )
$(MAKE) -s -C test -f memcopy.mak clean
npdu: logfile test/npdu.mak
$(MAKE) -s -C test -f npdu.mak clean all
( ./test/npdu >> ${LOGFILE} )
$(MAKE) -s -C test -f npdu.mak clean
proplist: logfile test/proplist.mak
$(MAKE) -s -C test -f proplist.mak clean all
( ./test/proplist >> ${LOGFILE} )
$(MAKE) -s -C test -f proplist.mak clean
ptransfer: logfile test/ptransfer.mak
$(MAKE) -s -C test -f ptransfer.mak clean all
( ./test/ptransfer >> ${LOGFILE} )
$(MAKE) -s -C test -f ptransfer.mak clean
rd: logfile test/rd.mak
$(MAKE) -s -C test -f rd.mak clean all
( ./test/rd >> ${LOGFILE} )
$(MAKE) -s -C test -f rd.mak clean
reject: logfile test/reject.mak
$(MAKE) -s -C test -f reject.mak clean all
( ./test/reject >> ${LOGFILE} )
$(MAKE) -s -C test -f reject.mak clean
ringbuf: logfile test/ringbuf.mak
$(MAKE) -s -C test -f ringbuf.mak clean all
( ./test/ringbuf >> ${LOGFILE} )
$(MAKE) -s -C test -f ringbuf.mak clean
rp: logfile test/rp.mak
$(MAKE) -s -C test -f rp.mak clean all
( ./test/rp >> ${LOGFILE} )
$(MAKE) -s -C test -f rp.mak clean
rpm: logfile test/rpm.mak
$(MAKE) -s -C test -f rpm.mak clean all
( ./test/rpm >> ${LOGFILE} )
$(MAKE) -s -C test -f rpm.mak clean
sbuf: logfile test/sbuf.mak
$(MAKE) -s -C test -f sbuf.mak clean all
( ./test/sbuf >> ${LOGFILE} )
$(MAKE) -s -C test -f sbuf.mak clean
timesync: logfile test/timesync.mak
$(MAKE) -s -C test -f timesync.mak clean all
( ./test/timesync >> ${LOGFILE} )
$(MAKE) -s -C test -f timesync.mak clean
vmac: logfile test/vmac.mak
$(MAKE) -s -C test -f vmac.mak clean all
( ./test/vmac >> ${LOGFILE} )
$(MAKE) -s -C test -f vmac.mak clean
whohas: logfile test/whohas.mak
$(MAKE) -s -C test -f whohas.mak clean all
( ./test/whohas >> ${LOGFILE} )
$(MAKE) -s -C test -f whohas.mak clean
whois: logfile test/whois.mak
$(MAKE) -s -C test -f whois.mak clean all
( ./test/whois >> ${LOGFILE} )
$(MAKE) -s -C test -f whois.mak clean
wp: logfile test/wp.mak
$(MAKE) -s -C test -f wp.mak clean all
( ./test/wp >> ${LOGFILE} )
$(MAKE) -s -C test -f wp.mak clean
objects: ai ao av bi bo bv csv lc lo lso lsp \
mso msv msi osv piv command \
access_credential access_door access_point access_rights \
access_user access_zone credential_data_input
access_credential: logfile demo/object/access_credential.mak
$(MAKE) -s -C demo/object -f access_credential.mak clean all
( ./demo/object/access_credential >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f access_credential.mak clean
access_door: logfile demo/object/access_door.mak
$(MAKE) -s -C demo/object -f access_door.mak clean all
( ./demo/object/access_door >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f access_door.mak clean
access_point: logfile demo/object/access_point.mak
$(MAKE) -s -C demo/object -f access_point.mak clean all
( ./demo/object/access_point >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f access_point.mak clean
access_rights: logfile demo/object/access_rights.mak
$(MAKE) -s -C demo/object -f access_rights.mak clean all
( ./demo/object/access_rights >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f access_rights.mak clean
access_user: logfile demo/object/access_user.mak
$(MAKE) -s -C demo/object -f access_user.mak clean all
( ./demo/object/access_user >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f access_user.mak clean
access_zone: logfile demo/object/access_zone.mak
$(MAKE) -s -C demo/object -f access_zone.mak clean all
( ./demo/object/access_zone >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f access_zone.mak clean
credential_data_input: logfile demo/object/credential_data_input.mak
$(MAKE) -s -C demo/object -f credential_data_input.mak clean all
( ./demo/object/credential_data_input >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f credential_data_input.mak clean
ai: logfile demo/object/ai.mak
$(MAKE) -s -C demo/object -f ai.mak clean all
( ./demo/object/analog_input >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f ai.mak clean
ao: logfile demo/object/ao.mak
$(MAKE) -s -C demo/object -f ao.mak clean all
( ./demo/object/analog_output >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f ao.mak clean
av: logfile demo/object/av.mak
$(MAKE) -s -C demo/object -f av.mak clean all
( ./demo/object/analog_value >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f av.mak clean
bi: logfile demo/object/bi.mak
$(MAKE) -s -C demo/object -f bi.mak clean all
$(MAKE) -s -C demo/object -f bi.mak clean
bo: logfile demo/object/bo.mak
$(MAKE) -s -C demo/object -f bo.mak clean all
( ./demo/object/binary_output >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f bo.mak clean
bv: logfile demo/object/bv.mak
$(MAKE) -s -C demo/object -f bv.mak clean all
( ./demo/object/binary_value >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f bv.mak clean
command: logfile demo/object/command.mak
$(MAKE) -s -C demo/object -f command.mak clean all
( ./demo/object/command >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f command.mak clean
csv: logfile demo/object/csv.mak
$(MAKE) -s -C demo/object -f csv.mak clean all
( ./demo/object/characterstring_value >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f csv.mak clean
device: logfile demo/object/device.mak
$(MAKE) -s -C demo/object -f device.mak clean all
( ./demo/object/device >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f device.mak clean
lc: logfile demo/object/lc.mak
$(MAKE) -s -C demo/object -f lc.mak clean all
( ./demo/object/load_control >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f lc.mak clean
lo: logfile demo/object/lo.mak
$(MAKE) -s -C demo/object -f lo.mak clean all
( ./demo/object/lighting_output >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f lo.mak clean
lso: logfile test/lso.mak
$(MAKE) -s -C test -f lso.mak clean all
( ./test/lso >> ${LOGFILE} )
$(MAKE) -s -C test -f lso.mak clean
lsp: logfile demo/object/lsp.mak
$(MAKE) -s -C demo/object -f lsp.mak clean all
( ./demo/object/life_safety_point >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f lsp.mak clean
msi: logfile demo/object/msi.mak
$(MAKE) -s -C demo/object -f msi.mak clean all
( ./demo/object/multistate_input >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f msi.mak clean
mso: logfile demo/object/mso.mak
$(MAKE) -s -C demo/object -f mso.mak clean all
( ./demo/object/multistate_output >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f mso.mak clean
msv: logfile demo/object/msv.mak
$(MAKE) -s -C demo/object -f msv.mak clean all
( ./demo/object/multistate_value >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f msv.mak clean
osv: logfile demo/object/osv.mak
$(MAKE) -s -C demo/object -f osv.mak clean all
( ./demo/object/octetstring_value >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f osv.mak clean
piv: logfile demo/object/piv.mak
$(MAKE) -s -C demo/object -f piv.mak clean all
( ./demo/object/positiveinteger_value >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f piv.mak clean
schedule: logfile demo/object/schedule.mak
$(MAKE) -s -C demo/object -f schedule.mak clean all
( ./demo/object/schedule >> ${LOGFILE} )
$(MAKE) -s -C demo/object -f schedule.mak clean