7df8ce6c9b172e466763688dd26e525748b3df8d
[platform/upstream/iotivity.git] / resource / buildScript.mk
1 # //******************************************************************
2 # //
3 # // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
4 # //
5 # //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 # //
7 # // Licensed under the Apache License, Version 2.0 (the "License");
8 # // you may not use this file except in compliance with the License.
9 # // You may obtain a copy of the License at
10 # //
11 # //      http://www.apache.org/licenses/LICENSE-2.0
12 # //
13 # // Unless required by applicable law or agreed to in writing, software
14 # // distributed under the License is distributed on an "AS IS" BASIS,
15 # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # // See the License for the specific language governing permissions and
17 # // limitations under the License.
18 # //
19 # //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20 #
21
22 # This makefile build-script requires the following for each platform:
23 # Note:  Refer to READMEs at "<oic-resource>/" & "<oic-resource>/csdk/" for
24 #        more information.
25 #
26 # Linux:
27 #    OS: Ubuntu 12.04
28 #    GCC Version: 4.6.1
29 #
30 # Arduino ATMega 2560:
31 #    Framework Version: Arduino 1.0.5
32 #    AVR-GCC Version: 4.5.3
33 #
34 # Arduino Due:
35 #    Framework Version: Arduino 1.5.7
36 #    AVR-GCC Version: 4.8.3
37
38 # Header Description:
39 # ====NAME/TITLE - BUILD TYPE - OUT DIRECTORY====
40
41 ###############################################################################
42 ####       TB Stack, TB Unit Tests, TB Examples, UB Stack,                 ####
43 ####       & UB Examples - Linux & Arduino Mega                            ####
44 #### Note: Default "all" target builds Release only "all" of Linux &       ####
45 ####       Release only "all" of Arduino Mega with Ethernet Shield.        ####
46 ###############################################################################
47
48 all: all_release
49
50 all_all: all_release all_debug
51
52 dev: linux_ub_dev arduinomega_all_dev
53
54 all_release: linux_release arduinomega_release
55
56 all_debug: linux_debug arduinomega_debug
57
58 ###############################################################################
59 ####       TB Stack, TB Unit Tests, TB Examples, UB Stack,                 ####
60 ####       & UB Examples - Linux & Arduino Due                             ####
61 #### Note: Default "all" target builds Release only "all" of Linux &       ####
62 ####       Release only "all" of Arduino Due with Ethernet Shield.         ####
63 ###############################################################################
64
65 complement: complement_release
66
67 complement_all: complement_release complement_debug
68
69 complement_dev: linux_ub_dev arduinodue_all_dev
70
71 complement_release: linux_release arduinodue_release
72
73 complement_debug: linux_debug arduinodue_debug
74
75 ###############################################################################
76 ####       TB Stack, TB Unit Tests, TB Examples, UB Stack, UB Examples,    ####
77 ####       & OCICUC - Linux, Arduino Mega and Arduino Due                  ####
78 #### Note: The "all_dev" target is intended for use on the build           ####
79 ####       server(s). This includes "all" targets for Release & Debug for  ####
80 ####       Linux, "all" Release & Debug for Arduino Mega with Ethernet     ####
81 ####       Shield & WiFi Shield, and "all" Release & Debug for Arduino     ####
82 ####       Due with Ethernet Shield & Wifi Shield.                         ####
83 ###############################################################################
84
85 all_dev: linux_ub_dev arduinomega_all_dev arduinodue_all_dev
86
87 ###############################################################################
88 ## TB Stack, TB Unit Tests, TB Examples, UB Stack, & UB Examples - Linux Only #
89 ###############################################################################
90
91 linux: linux_tb_release
92
93 linux_all: linux_release linux_debug
94
95 linux_release: linux_tb_release linux_ub_release
96
97 linux_debug: linux_tb_debug linux_ub_debug
98
99 ###############################################################################
100 ####      TB Stack, TB Unit Tests, & TB Examples - Linux Only              ####
101 ###############################################################################
102
103 linux_tb: linux_tb_release
104
105 linux_tb_all: linux_tb_release linux_tb_debug
106
107 linux_tb_release: linux_tb_stack_release linux_tb_unittests_release linux_tb_examples_release
108
109 linux_tb_debug: linux_tb_stack_debug linux_tb_unittests_debug linux_tb_examples_debug
110
111 ###############################################################################
112 ####      UB Stack, TB Stack, & UB Examples - Linux Only                   ####
113 ###############################################################################
114
115 linux_ub: linux_ub_release
116
117 linux_ub_all: linux_ub_release linux_ub_debug
118
119 linux_ub_release: linux_tb_stack_release linux_ub_unittests_release linux_ub_stack_release linux_ub_examples_release
120
121 linux_ub_debug: linux_tb_stack_debug linux_ub_unittests_debug linux_ub_stack_debug linux_ub_examples_debug
122
123 ###############################################################################
124 ####      TB Stack - Linux Only                                            ####
125 ###############################################################################
126
127 linux_tb_stack: linux_tb_stack_release
128
129 linux_tb_stack_all: linux_tb_stack_release linux_tb_stack_debug
130
131 linux_tb_stack_debug:
132         @echo "=====BUILD TB STACK FOR LINUX - DEBUG - <oic-resource>/csdk/linux/debug/====="
133         $(MAKE) -C csdk/ "buildScript_all" "BUILD=debug" "PLATFORM=linux"
134
135 linux_tb_stack_release:
136         @echo "=====BUILD TB STACK FOR LINUX - RELEASE - <oic-resource>/csdk/linux/release/====="
137         $(MAKE) -C csdk/ "buildScript_all" "BUILD=release" "PLATFORM=linux"
138
139 ###############################################################################
140 ####      TB Unit Tests - Linux Only                                       ####
141 ###############################################################################
142
143 linux_tb_unittests: linux_tb_unittests_release
144
145 linux_tb_unittests_all: linux_tb_unittests_release linux_tb_unittests_debug
146
147 linux_tb_unittests_release: linux_tb_stack_release
148         @echo "=====BUILD TB UNITTESTS FOR LINUX - RELEASE - <oic-resource>/csdk/stack/test/linux/release/====="
149         $(MAKE) -C csdk/stack/test/linux/ "BUILD=release"
150
151 linux_tb_unittests_debug: linux_tb_stack_debug
152         @echo "=====BUILD TB UNITTESTS FOR LINUX - DEBUG - <oic-resource>/csdk/stack/test/linux/debug/====="
153         $(MAKE) -C csdk/stack/test/linux/ "BUILD=debug"
154
155 ###############################################################################
156 ####      TB Examples - Linux Only                                         ####
157 ###############################################################################
158
159 linux_tb_examples: linux_tb_stack_release linux_tb_examples_release
160
161 linux_tb_examples_all: linux_tb_stack_release linux_tb_examples_debug
162
163 linux_tb_examples_release: linux_tb_stack_release
164         @echo "=====BUILD TB SAMPLE APPS FOR LINUX - RELEASE - <oic-resource>/csdk/stack/samples/linux/SimpleClientServer/release/====="
165         $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "PLATFORM=linux" "BUILD=release"
166         $(MAKE) -C csdk/stack/samples/linux/secure "PLATFORM=linux" "BUILD=release"
167
168 linux_tb_examples_debug: linux_tb_stack_debug
169         @echo "=====BUILD TB SAMPLE APPS FOR LINUX - DEBUG - <oic-resource>/csdk/stack/samples/linux/SimpleClientServer/debug/====="
170         $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "PLATFORM=linux" "BUILD=debug"
171         $(MAKE) -C csdk/stack/samples/linux/secure "PLATFORM=linux" "BUILD=debug"
172
173 ###############################################################################
174 ####      UB Stack (& TB Stack as prerequisite) - Linux Only               ####
175 ###############################################################################
176
177 linux_ub_stack: linux_ub_stack_release
178
179 linux_ub_stack_all: linux_ub_stack_release linux_ub_stack_debug
180
181 linux_ub_stack_release: linux_tb_stack_release
182         @echo "=====BUILD UB STACK FOR LINUX - RELEASE - <oic-resource>/release/====="
183         $(MAKE) -C ./ "buildScript_all" "BUILD=release"
184
185 linux_ub_stack_debug: linux_tb_stack_debug
186         @echo "=====BUILD UB STACK FOR LINUX - DEBUG - <oic-resource>/debug/====="
187         $(MAKE) -C ./ "buildScript_all" "BUILD=debug"
188
189 ###############################################################################
190 ####      UB Unit Tests (& TB Stack as prequisite) - Linux Only            ####
191 ###############################################################################
192
193 linux_ub_unittests: linux_ub_unittests_release
194
195 linux_ub_unittests_all: linux_ub_unittests_release linux_ub_unittests_debug
196
197 linux_ub_unittests_release: linux_ub_stack_release
198         @echo "=====BUILD UB UNIT TESTS FOR LINUX - RELEASE - <oic-resource>/unittests/release====="
199         $(MAKE) -C unittests/ "BUILD=release"
200
201 linux_ub_unittests_debug: linux_ub_stack_debug
202         @echo "=====BUILD UB UNIT TESTS FOR LINUX - DEBUG - <oic-resource>/unittests/debug====="
203         $(MAKE) -C unittests/ "BUILD=debug"
204
205 ###############################################################################
206 ####      UB Examples (& UB Stack as prerequisite) - Linux Only            ####
207 ###############################################################################
208
209 linux_ub_examples: linux_ub_examples_release
210
211 linux_ub_examples_all: linux_ub_examples_release linux_ub_examples_debug
212
213 linux_ub_examples_release: linux_ub_stack_release
214         @echo "=====BUILD UB SAMPLE APPS FOR LINUX - RELEASE - <oic-resource>/examples/release/====="
215         $(MAKE) -C examples/ "buildScript_all" "BUILD=release"
216
217 linux_ub_examples_debug: linux_ub_stack_debug
218         @echo "=====BUILD UB SAMPLE APPS FOR LINUX - DEBUG - <oic-resource>/examples/debug/====="
219         $(MAKE) -C examples/ "buildScript_all" "BUILD=debug"
220
221 ###############################################################################
222 ####      TB Stack, TB Unit Tests, TB Examples, UB Stack, UB Examples,     ####
223 ####      UB Unit Tests - Linux Only                                       ####
224 ###############################################################################
225
226 linux_ub_dev: linux_ub_stack_all linux_ub_unittests_all linux_ub_examples_all linux_tb_examples_all
227
228 ###############################################################################
229 #TB Stack, TB Unit Tests, & TB Examples - Arduino Mega Only - Ethernet & WiFi #
230 ###############################################################################
231
232 arduinomega: arduinomega_release
233
234 arduinomega_all: arduinomega_release arduinomega_debug
235
236 arduinomega_all_dev: arduinomega_release_dev arduinomega_debug_dev
237
238 arduinomega_release: arduinomega_ethernet_release
239
240 arduinomega_debug: arduinomega_ethernet_debug
241
242 arduinomega_release_dev: arduinomega_ethernet_release arduinomega_wifi_release
243
244 arduinomega_debug_dev: arduinomega_ethernet_debug arduinomega_wifi_debug
245
246 ###############################################################################
247 ## TB Stack, TB Unit Tests, & TB Examples - Arduino Mega Only - Ethernet Only #
248 ###############################################################################
249
250 arduinomega_ethernet: arduinomega_ethernet_release
251
252 arduinomega_ethernet_all: arduinomega_ethernet_release arduinomega_ethernet_debug
253
254 arduinomega_ethernet_release: arduinomega_stack_ethernet_release arduinomega_samples_ethernet_release
255
256 arduinomega_ethernet_debug: arduinomega_stack_ethernet_debug arduinomega_samples_ethernet_debug
257
258 ###############################################################################
259 ## TB Stack, TB Unit Tests, & TB Examples - Arduino Mega Only - Ethernet Only #
260 ###############################################################################
261
262 arduinomega_wifi: arduinomega_wifi_release
263
264 arduinomega_wifi_all: arduinomega_wifi_release arduinomega_wifi_debug
265
266 arduinomega_wifi_release: arduinomega_stack_wifi_release arduinomega_samples_wifi_release
267
268 arduinomega_wifi_debug: arduinomega_stack_wifi_debug arduinomega_samples_wifi_debug
269
270 ###############################################################################
271 ####             TB Stack - Arduino Mega Only - Ethernet Only              ####
272 ###############################################################################
273
274 arduinomega_stack_ethernet: arduinomega_stack_ethernet_release
275
276 arduinomega_stack_ethernet_all: arduinomega_stack_ethernet_release arduinomega_stack_ethernet_debug
277
278 arduinomega_stack_ethernet_release:
279         @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - RELEASE - ETHERNET SHIELD======"
280         @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinomega/ethernet_shield/release/====="
281         $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
282
283 arduinomega_stack_ethernet_debug:
284         @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - DEBUG - ETHERNET SHIELD======"
285         @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinomega/ethernet_shield/debug/====="
286         $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
287
288 ###############################################################################
289 ####             TB Stack - Arduino Mega Only - WiFi Only                  ####
290 ###############################################################################
291
292 arduinomega_stack_wifi: arduinomega_stack_wifi_release
293
294 arduinomega_stack_wifi_all: arduinomega_stack_wifi_release arduinomega_stack_wifi_debug
295
296 arduinomega_stack_wifi_release:
297         @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - RELEASE - WiFi SHIELD======"
298         @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinomega/wifi_shield/release/====="
299         $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
300
301 arduinomega_stack_wifi_debug:
302         @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - DEBUG - WiFi SHIELD======"
303         @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinomega/wifi_shield/debug/====="
304         $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
305
306 ###############################################################################
307 ####          TB Examples - Arduino Mega Only - Ethernet Only              ####
308 ###############################################################################
309
310 arduinomega_samples_ethernet: arduinomega_samples_ethernet_release
311
312 arduinomega_samples_ethernet_all: arduinomega_samples_ethernet_release arduinomega_samples_ethernet_debug
313
314 arduinomega_samples_ethernet_release: arduinomega_stack_ethernet_release
315         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - RELEASE - ETHERNET SHIELD====="
316         @echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/ethernet_shield/release/====="
317         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
318
319 arduinomega_samples_ethernet_debug: arduinomega_stack_ethernet_debug
320         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - DEBUG - ETHERNET SHIELD====="
321         @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/ethernet_shield/debug/====="
322         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
323
324 ###############################################################################
325 ####             TB Examples - Arduino Mega Only - WiFi Only               ####
326 ###############################################################################
327
328 arduinomega_samples_wifi: arduinomega_samples_wifi_release
329
330 arduinomega_samples_wifi_all: arduinomega_samples_wifi_release arduinomega_samples_wifi_debug
331
332 arduinomega_samples_wifi_release: arduinomega_stack_wifi_release
333         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - RELEASE - WIFI SHIELD====="
334         @echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/wifi_shield/release/====="
335         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
336
337 arduinomega_samples_wifi_debug: arduinomega_stack_wifi_debug
338         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - DEBUG - WIFI SHIELD====="
339         @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/wifi_shield/debug/====="
340         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
341
342
343 ###############################################################################
344 #TB Stack, TB Unit Tests, & TB Examples - Arduino Due Only - Ethernet & WiFi ##
345 ###############################################################################
346
347 arduinodue: arduinodue_release
348
349 arduinodue_all: arduinodue_release arduinodue_debug
350
351 arduinodue_all_dev: arduinodue_release_dev arduinodue_debug_dev
352
353 arduinodue_release: arduinodue_ethernet_release
354
355 arduinodue_debug: arduinodue_ethernet_debug
356
357 arduinodue_release_dev: arduinodue_ethernet_release arduinodue_wifi_release
358
359 arduinodue_debug_dev: arduinodue_ethernet_debug arduinodue_wifi_debug
360
361 ###############################################################################
362 ## TB Stack, TB Unit Tests, & TB Examples - Arduino Due Only - Ethernet Only ##
363 ###############################################################################
364
365 arduinodue_ethernet: arduinodue_ethernet_release
366
367 arduinodue_ethernet_all: arduinodue_ethernet_release arduinodue_ethernet_debug
368
369 arduinodue_ethernet_release: arduinodue_stack_ethernet_release arduinodue_samples_ethernet_release
370
371 arduinodue_ethernet_debug: arduinodue_stack_ethernet_debug arduinodue_samples_ethernet_debug
372
373 ###############################################################################
374 ## TB Stack, TB Unit Tests, & TB Examples - Arduino Due Only - Ethernet Only ##
375 ###############################################################################
376
377 arduinodue_wifi: arduinodue_wifi_release
378
379 arduinodue_wifi_all: arduinodue_wifi_release arduinodue_wifi_debug
380
381 arduinodue_wifi_release: arduinodue_stack_wifi_release arduinodue_samples_wifi_release
382
383 arduinodue_wifi_debug: arduinodue_stack_wifi_debug arduinodue_samples_wifi_debug
384
385 ###############################################################################
386 ####             TB Stack - Arduino Due Only - Ethernet Only               ####
387 ###############################################################################
388
389 arduinodue_stack_ethernet: arduinodue_stack_ethernet_release
390
391 arduinodue_stack_ethernet_all: arduinodue_stack_ethernet_release arduinodue_stack_ethernet_debug
392
393 arduinodue_stack_ethernet_release:
394         @echo "=====BUILD C STACK FOR ARDUINO DUE - RELEASE - ETHERNET SHIELD======"
395         @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinodue/ethernet_shield/release/====="
396         $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
397
398 arduinodue_stack_ethernet_debug:
399         @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinodue/ethernet_shield/debug/====="
400         $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
401
402 ###############################################################################
403 ####             TB Stack - Arduino Due Only - WiFi Only                   ####
404 ###############################################################################
405
406 arduinodue_stack_wifi: arduinodue_stack_wifi_release
407
408 arduinodue_stack_wifi_all: arduinodue_stack_wifi_release arduinodue_stack_wifi_debug
409
410 arduinodue_stack_wifi_release:
411         @echo "=====BUILD C STACK FOR ARDUINO DUE - RELEASE - WiFi SHIELD======"
412         @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinodue/wifi_shield/release/====="
413         $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
414
415 arduinodue_stack_wifi_debug:
416         @echo "=====BUILD C STACK FOR ARDUINO DUE - DEBUG - WiFi SHIELD======"
417         @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinodue/wifi_shield/debug/====="
418         $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
419
420 ###############################################################################
421 ####          TB Examples - Arduino Due Only - Ethernet Only               ####
422 ###############################################################################
423
424 arduinodue_samples_ethernet: arduinodue_samples_ethernet_release
425
426 arduinodue_samples_ethernet_all: arduinodue_samples_ethernet_release arduinodue_samples_ethernet_debug
427
428 arduinodue_samples_ethernet_release: arduinodue_stack_ethernet_release
429         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - RELEASE - ETHERNET SHIELD====="
430         @echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/ethernet_shield/release/====="
431         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
432
433 arduinodue_samples_ethernet_debug: arduinodue_stack_ethernet_debug
434         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - DEBUG - ETHERNET SHIELD====="
435         @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/ethernet_shield/debug/====="
436         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
437
438 ###############################################################################
439 ####             TB Examples - Arduino Due Only - WiFi Only                ####
440 ###############################################################################
441
442 arduinodue_samples_wifi: arduinodue_samples_wifi_release
443
444 arduinodue_samples_wifi_all: arduinodue_samples_wifi_release arduinodue_samples_wifi_debug
445
446 arduinodue_samples_wifi_release: arduinodue_stack_wifi_release
447         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - RELEASE - WIFI SHIELD====="
448         @echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/wifi_shield/release/====="
449         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
450
451 arduinodue_samples_wifi_debug: arduinodue_stack_wifi_debug
452         @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - DEBUG - WIFI SHIELD====="
453         @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/wifi_shield/debug/====="
454         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
455
456 ###############################################################################
457 ####                Clean All - Linux Only - Ethernet Only                 ####
458 ###############################################################################
459
460 linux_clean:
461         -rm -rf -C csdk/linux
462         $(MAKE) -C csdk/stack/test/linux "clean"
463         $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "clean"
464         $(MAKE) -C csdk/stack/samples/linux/secure "clean"
465         $(MAKE) -C . "clean"
466
467 ###############################################################################
468 ####            Clean All - Arduino Mega Only - Ethernet & WiFi            ####
469 ###############################################################################
470
471 arduinomega_clean:
472         -rm -rf csdk/arduinomega
473         -rm -rf csdk/stack/test/arduino/arduinomega
474         -rm -rf csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega
475
476 ###############################################################################
477 ####            Clean All - Arduino Due Only - Ethernet & WiFi             ####
478 ###############################################################################
479
480 arduinodue_clean:
481         -rm -rf csdk/arduinodue
482         -rm -rf csdk/stack/test/arduino/arduinodue
483         -rm -rf csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue
484
485
486 ###############################################################################
487 ####  Clean All - Linux, Arduino Mega & Arduino Due - Ethernet & WiFi      ####
488 ###############################################################################
489 clean:
490         $(MAKE) -C csdk "clean" "deepclean"
491         $(MAKE) -C csdk/stack/test/linux "clean"
492         $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "clean"
493         $(MAKE) -C csdk/stack/samples/linux/secure "clean"
494         $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "clean"
495         $(MAKE) -C . "clean"
496         $(MAKE) -C unittests/ "clean"
497         $(MAKE) -C examples/ "clean"
498         $(MAKE) -C oc_logger/ "clean"
499
500 ###############################################################################
501 ### You must specify arduinomega or arduinodue when using an arduino target.###
502 ###############################################################################
503 arduino:
504         $(error "You must specify "arduinomega" or "arduinodue" when trying to\
505         build arduino targets.")
506