--- /dev/null
+******************************************************************
+
+ Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
+
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+===============================================================================
+== UB Stack & TB Stack ==
+===============================================================================
+
+The OIC-RESOURCE repository contains two SDKs with underlying code
+(i.e. "stack"). The two SDKs are referred to as "UB SDK" (or "C++ SDK") and "TB
+SDK" (or "C SDK"). The associated stacks are referred to as "UB Stack" (or "C++
+Stack") and "TB Stack" (or "C Stack"), respectively. The UB Stack-SDK pair
+requires that the TB Stack-SDK pair is built under it.
+
+For a list of artifact locations for all possible build processes in the
+OIC-RESOURCE repository, please refer to:
+<oic-resource>/artifact_output_locations.txt.
+
+===============================================================================
+
+The UB Stack is intended ONLY for Linux Ubuntu 12.04 operating system.
+To build UB Stack, please follow these requirements:
+- GCC compiler version is 4.6
+- Pre-install the "gnu-libc" libraries package.
+- The OIC-UTILITIES repository must be a sibling directory to the OIC-RESOURCE
+ repository.
+- You have pre-built the TB Stack for Linux Ubuntu 12.04.
+
+The TB Stack is intended ONLY for Linux Ubuntu 12.04, Arduino ATMega 2560 with
+Arduino Framework 1.0.5, and Arduino Due with Arduino Framework 1.5.7.
+Tip: Use Cutecom in Ubuntu 12.04 to view logs from Arduino ATMega 2560 and
+Arduino Due.
+
+To build TB Stack, please follow these requirements for Linux Ubuntu 12.04:
+- GCC compiler version is 4.6
+- Pre-install the "gnu-libc" libraries package.
+- The OIC-UTILITIES repository must be a sibling directory to the OIC-RESOURCE
+ repository.
+
+To build TB Stack, please follow these requirements for Arduino ATMega 2560:
+- AVR-GCC compiler version is 4.5.3 (Distributed with Arduino 1.0.5, no further
+ action necessary if framework was obtained from http://www.arduino.cc. Note:
+ Frameworks obtained from apt-get have had different compiler versions.)
+- Unzip the Time Library from here to your Arduino Directory Structure:
+ http://playground.arduino.cc/code/time
+- The OIC-UTILITIES repository must be a sibling directory to the OIC-RESOURCE
+ repository.
+- Apply patches at OIC-UTILITIES/tb/ to your Arduino Directory Structure at
+ locations <Arduino 1.0.5>/libraries/Ethernet &
+ <Arduino 1.0.5>/libraries/Ethernet/utility/.
+
+To build TB Stack, please follow these requirements for Arduino Due:
+- AVR-GCC compiler version is 4.8.3 (Distributed with Arduino 1.5.7, no further
+ action necessary if framework was obtained from http://www.arduino.cc. Note:
+ Frameworks obtained from apt-get have had different compiler versions.)
+- Unzip the Time Library from here to your Arduino Directory Structure:
+ http://www.pjrc.com/teensy/td_libs_Time.html
+- The OIC-UTILITIES repository must be a sibling directory to the OIC-RESOURCE
+ repository.
+- Apply patches at OIC-UTILITIES/tb/ to your Arduino Directory Structure at
+ locations <Arduino 1.5.7>/libraries/Ethernet &
+ <Arduino 1.5.7>/libraries/Ethernet/utility/.
+
+===============================================================================
+
+Instructions for Common Build Processes:
+
+NOTE: 'GNU Make' is required to utilize the build script at location:
+<oic-resource>/buildScript.mk.
+
+=======================================
+== All Targets - Linux, ATMega & Due ==
+=======================================
+
+- All Modules, including OCICUC, in Release & Debug (TB Stack, TB Unit Tests,
+TB Examples, UB Stack, UB Examples, UB OCICUC) for linux, Arduino ATMega 2560
+with Ethernet Shield, Arduino ATMega ATMega 2560 with WiFi Shield, Arduino
+Due with Ethernet Shield and Arduino Due with WiFi Shield:
+(This will be what is used on the Build Server(s) to limit regression.)
+
+ make -f buildScript.mk all_dev
+
+=======================================
+== All Targets - Linux & ATMega 2560 ==
+=======================================
+
+- All Modules in Release (TB Stack, TB Unit Tests, TB Examples, UB Stack, UB
+Examples) for Linux & Arduino ATMega 2560 with Ethernet Shield:
+
+ make -f buildScript.mk all
+
+- All Modules in Debug (TB Stack, TB Unit Tests, TB Examples, UB Stack, UB
+Examples) for Linux & Arduino ATMega 2560 with Ethernet Shield:
+
+ make -f buildScript.mk all_debug
+
+=======================================
+== All Targets - Linux & Due ==
+=======================================
+
+- All Modules in Release (TB Stack, TB Unit Tests, TB Examples, UB Stack, UB
+Examples) for Linux & Arduino Due with Ethernet Shield:
+
+ make -f buildScript.mk complement
+
+- All Modules in Debug (TB Stack, TB Unit Tests, TB Examples, UB Stack, UB
+Examples) for Linux & Arduino Due with Ethernet Shield:
+
+ make -f buildScript.mk complement_debug
+
+=======================================
+== All Targets - Linux Only ==
+=======================================
+
+- All Modules, without OCICUC, in Release (TB Stack, TB Unit Tests,
+TB Examples, UB Stack, UB Examples) for linux:
+
+ make -f buildScript.mk linux
+
+- All Modules, without OCICUC, in Debug (TB Stack, TB Unit Tests,
+TB Examples, UB Stack, UB Examples) for linux:
+
+ make -f buildScript.mk linux_debug
+
+- All UB Stack Modules in Release, without OCICUC, (TB Stack, UB Stack, UB
+Examples) for Linux:
+
+ make -f buildScript.mk linux_ub
+
+- All UB Stack Modules in Debug, without OCICUC, (TB Stack, UB Stack, UB
+Examples) for Linux:
+
+ make -f buildScript.mk linux_ub_debug
+
+- All UB Stack Modules, including OCICUC, in Release & Debug (TB Stack,
+UB Stack, UB Examples, UB OCICUC) for linux:
+
+ make -f buildScript.mk linux_ub_dev
+
+- All TB Stack Modules in Release (TB Stack, TB Unit Tests,
+TB Examples) for Linux:
+
+ make -f buildScript.mk linux_tb
+
+- All TB Stack Modules in Debug (TB Stack, TB Unit Tests,
+TB Examples) for Linux:
+
+ make -f buildScript.mk linux_tb_debug
+
+=======================================
+== All Targets - Mega Only ==
+=======================================
+
+- All TB Stack Modules in Release (TB Stack, TB Unit Tests,
+TB Examples) for Arduino ATMega 2560 with Ethernet Shield:
+
+ make -f buildScript.mk arduinomega
+
+- All TB Stack Modules in Debug (TB Stack, TB Unit Tests,
+TB Examples) for Arduino ATMega 2560 with Ethernet Shield:
+
+ make -f buildScript.mk arduinomega_debug
+
+- All TB Stack Modules in Release (TB Stack, TB Unit Tests,
+TB Examples) for Arduino ATMega 2560 with WiFi Shield:
+
+ make -f buildScript.mk arduinomega_wifi
+
+- All TB Stack Modules in Debug (TB Stack, TB Unit Tests,
+TB Examples) for Arduino ATMega 2560 with WiFi Shield:
+
+ make -f buildScript.mk arduinomega_wifi_debug
+
+=======================================
+== All Targets - Due Only ==
+=======================================
+
+- All TB Stack Modules in Release (TB Stack, TB Unit Tests,
+TB Examples) for Arduino Due with Ethernet Shield:
+
+ make -f buildScript.mk arduinodue_all
+
+- All TB Stack Modules in Debug (TB Stack, TB Unit Tests,
+TB Examples) for Arduino Due with Ethernet Shield:
+
+ make -f buildScript.mk arduinodue_all_debug
+
+- All TB Stack Modules in Release (TB Stack, TB Unit Tests,
+TB Examples) for Arduino Due with WiFi Shield:
+
+ make -f buildScript.mk arduinodue_wifi
+
+- All TB Stack Modules in Debug (TB Stack, TB Unit Tests,
+TB Examples) for Arduino Due with WiFi Shield:
+
+ make -f buildScript.mk arduinodue_wifi_debug
+
+=======================================
+== Clean All Targets ==
+=======================================
+
+- Clean All:
+
+ make -f buildScript.mk clean
+
# Header Description:
# ====NAME/TITLE - BUILD TYPE - OUT DIRECTORY====
-all: linux arduinomega
+###############################################################################
+#### TB Stack, TB Unit Tests, TB Examples, UB Stack, ####
+#### & UB Examples - Linux & Arduino Mega ####
+#### Note: Default "all" target builds Release only "all" of Linux & ####
+#### Release only "all" of Arduino Mega with Ethernet Shield. ####
+###############################################################################
-all_dev: linux_ub_dev arduinomega
+all: all_release
-linux: linux_tb linux_ub
+all_all: all_release all_debug
-linux_tb: linux_tb_stack linux_tb_unittests linux_tb_examples
+dev: linux_ub_dev arduinomega_all_dev
-linux_ub: linux_tb linux_ub_stack linux_ub_examples
+all_release: linux_release arduinomega_release
-linux_tb_stack:
- @echo "=====BUILD FOR LINUX - UBUNTU 12.04===="
- @echo "=====BUILD LIBCOAP - DEBUG - <oic-resource>/csdk/libcoap/linux/debug/====="
+all_debug: linux_debug arduinomega_debug
+
+###############################################################################
+#### TB Stack, TB Unit Tests, TB Examples, UB Stack, ####
+#### & UB Examples - Linux & Arduino Due ####
+#### Note: Default "all" target builds Release only "all" of Linux & ####
+#### Release only "all" of Arduino Due with Ethernet Shield. ####
+###############################################################################
+
+complement: complement_release
+
+complement_all: complement_release complement_debug
+
+complement_dev: linux_ub_dev arduinodue_all_dev
+
+complement_release: linux_release arduinodue_release
+
+complement_debug: linux_debug arduinodue_debug
+
+###############################################################################
+#### TB Stack, TB Unit Tests, TB Examples, UB Stack, UB Examples, ####
+#### & OCICUC - Linux, Arduino Mega and Arduino Due ####
+#### Note: The "all_dev" target is intended for use on the build ####
+#### server(s). This includes "all" targets for Release & Debug for ####
+#### Linux, "all" Release & Debug for Arduino Mega with Ethernet ####
+#### Shield & WiFi Shield, and "all" Release & Debug for Arduino ####
+#### Due with Ethernet Shield & Wifi Shield. ####
+###############################################################################
+
+all_dev: linux_ub_dev arduinomega_all_dev arduinodue_all_dev
+
+###############################################################################
+## TB Stack, TB Unit Tests, TB Examples, UB Stack, & UB Examples - Linux Only #
+###############################################################################
+
+linux: linux_tb_release
+
+linux_all: linux_release linux_debug
+
+linux_release: linux_tb_release linux_ub_release
+
+linux_debug: linux_tb_debug linux_ub_debug
+
+###############################################################################
+#### TB Stack, TB Unit Tests, & TB Examples - Linux Only ####
+###############################################################################
+
+linux_tb: linux_tb_release
+
+linux_tb_all: linux_tb_release linux_tb_debug
+
+linux_tb_release: linux_tb_stack_release linux_tb_unittests_release linux_tb_examples_release
+
+linux_tb_debug: linux_tb_stack_debug linux_tb_unittests_debug linux_tb_examples_debug
+
+###############################################################################
+#### UB Stack, TB Stack, & UB Examples - Linux Only ####
+###############################################################################
+
+linux_ub: linux_ub_release
+
+linux_ub_all: linux_ub_release linux_ub_debug
+
+linux_ub_release: linux_tb_stack_release linux_ub_stack_release linux_ub_examples_release
+
+linux_ub_debug: linux_tb_stack_debug linux_ub_stack_debug linux_ub_examples_debug
+
+###############################################################################
+#### TB Stack - Linux Only ####
+###############################################################################
+
+linux_tb_stack: linux_tb_stack_release
+
+linux_tb_stack_all: linux_tb_stack_release linux_tb_stack_debug
+
+linux_tb_stack_debug:
+ @echo "=====BUILD LIBCOAP FOR LINUX - DEBUG - <oic-resource>/csdk/libcoap/linux/debug/====="
$(MAKE) -C csdk/libcoap "BUILD=debug" "PLATFORM=linux"
- @echo "=====BUILD LIBCOAP - RELEASE - <oic-resource>/csdk/libcoap/linux/release/====="
- $(MAKE) -C csdk/libcoap "BUILD=release" "PLATFORM=linux"
- @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/linux/debug/====="
+ @echo "=====BUILD TB STACK FOR LINUX - DEBUG - <oic-resource>/csdk/linux/debug/====="
$(MAKE) -C csdk/ "buildScript_all" "BUILD=debug" "PLATFORM=linux"
- @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/linux/release/====="
+
+linux_tb_stack_release:
+ @echo "=====BUILD LIBCOAP FOR LINUX - RELEASE - <oic-resource>/csdk/libcoap/linux/release/====="
+ $(MAKE) -C csdk/libcoap "BUILD=release" "PLATFORM=linux"
+ @echo "=====BUILD TB STACK FOR LINUX - RELEASE - <oic-resource>/csdk/linux/release/====="
$(MAKE) -C csdk/ "buildScript_all" "BUILD=release" "PLATFORM=linux"
-linux_tb_unittests: linux_tb_stack
- @echo "=====BUILD TB UNITTESTS - DEBUG - <oic-resource>/csdk/stack/test/linux/debug/====="
- $(MAKE) -C csdk/stack/test/linux/ "BUILD=debug"
- @echo "=====BUILD TB UNITTESTS - RELEASE - <oic-resource>/csdk/stack/test/linux/release/====="
+###############################################################################
+#### TB Unit Tests - Linux Only ####
+###############################################################################
+
+linux_tb_unittests: linux_tb_unittests_release
+
+linux_tb_unittests_all: linux_tb_unittests_release linux_tb_unittests_debug
+
+linux_tb_unittests_release: linux_tb_stack_release
+ @echo "=====BUILD TB UNITTESTS FOR LINUX - RELEASE - <oic-resource>/csdk/stack/test/linux/release/====="
$(MAKE) -C csdk/stack/test/linux/ "BUILD=release"
-linux_tb_examples: linux_tb_stack
- @echo "=====BUILD TB SAMPLE APPS - DEBUG - <oic-resource>/csdk/stack/samples/linux/SimpleClientServer/debug/====="
- $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "PLATFORM=linux" "BUILD=debug"
- @echo "=====BUILD TB SAMPLE APPS - RELEASE - <oic-resource>/csdk/stack/samples/linux/SimpleClientServer/release/====="
+linux_tb_unittests_debug: linux_tb_stack_debug
+ @echo "=====BUILD TB UNITTESTS FOR LINUX - DEBUG - <oic-resource>/csdk/stack/test/linux/debug/====="
+ $(MAKE) -C csdk/stack/test/linux/ "BUILD=debug"
+
+###############################################################################
+#### TB Examples - Linux Only ####
+###############################################################################
+
+linux_tb_examples: linux_tb_stack_release linux_tb_examples_release
+
+linux_tb_examples_all: linux_tb_stack_release linux_tb_examples_debug
+
+linux_tb_examples_release: linux_tb_stack_release
+ @echo "=====BUILD TB SAMPLE APPS FOR LINUX - RELEASE - <oic-resource>/csdk/stack/samples/linux/SimpleClientServer/release/====="
$(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "PLATFORM=linux" "BUILD=release"
-linux_ub_stack: linux_tb_stack
- @echo "=====BUILD UB STACK AND SAMPLE APPS AND OCICUC - DEBUG - <oic-resource>/debug/====="
- $(MAKE) -C ./ "buildScript_all" "BUILD=debug"
- @echo "=====BUILD UB STACK AND SAMPLE APPS AND OCICUC - RELEASE - <oic-resource>/release/====="
+linux_tb_examples_debug: linux_tb_stack_debug
+ @echo "=====BUILD TB SAMPLE APPS FOR LINUX - DEBUG - <oic-resource>/csdk/stack/samples/linux/SimpleClientServer/debug/====="
+ $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "PLATFORM=linux" "BUILD=debug"
+
+###############################################################################
+#### UB Stack (& TB Stack as prerequisite) - Linux Only ####
+###############################################################################
+
+linux_ub_stack: linux_ub_stack_release
+
+linux_ub_stack_all: linux_ub_stack_release linux_ub_stack_debug
+
+linux_ub_stack_release: linux_tb_stack_release
+ @echo "=====BUILD UB STACK FOR LINUX - RELEASE - <oic-resource>/release/====="
$(MAKE) -C ./ "buildScript_all" "BUILD=release"
-linux_ub_examples: linux_ub_stack
- @echo "=====BUILD UB SAMPLE APPS - DEBUG - <oic-resource>/examples/debug====="
- $(MAKE) -C examples/ "buildScript_all" "BUILD=debug"
- @echo "=====BUILD UB SAMPLE APPS - RELEASE - <oic-resource>/examples/release====="
+linux_ub_stack_debug: linux_tb_stack_debug
+ @echo "=====BUILD UB STACK FOR LINUX - DEBUG - <oic-resource>/debug/====="
+ $(MAKE) -C ./ "buildScript_all" "BUILD=debug"
+
+###############################################################################
+#### UB Examples - Linux Only ####
+###############################################################################
+
+linux_ub_examples: linux_ub_examples_release
+
+linux_ub_examples_all: linux_ub_examples_release linux_ub_examples_debug
+
+linux_ub_examples_release: linux_ub_stack_release
+ @echo "=====BUILD UB SAMPLE APPS FOR LINUX - RELEASE - <oic-resource>/examples/release/====="
$(MAKE) -C examples/ "buildScript_all" "BUILD=release"
-linux_ub_dev: linux
- @echo "=====BUILD UB OCICUC - <oic-resource>/examples/ocicuc====="
+linux_ub_examples_debug: linux_ub_stack_debug
+ @echo "=====BUILD UB SAMPLE APPS FOR LINUX - DEBUG - <oic-resource>/examples/debug/====="
+ $(MAKE) -C examples/ "buildScript_all" "BUILD=debug"
+
+###############################################################################
+#### TB Stack, TB Unit Tests, TB Examples, UB Stack, UB Examples, ####
+#### & OCICUC - Linux Only ####
+###############################################################################
+
+linux_ub_dev: linux_ub_stack_all
+ @echo "=====BUILD UB OCICUC - <oic-resource>/examples/ocicuc/====="
$(MAKE) -C examples/ocicuc/
-arduinomega: arduinomega_ethernet
+###############################################################################
+#TB Stack, TB Unit Tests, & TB Examples - Arduino Mega Only - Ethernet & WiFi #
+###############################################################################
-arduinomega_ethernet: arduinomega_stack_ethernet arduinomega_samples_ethernet
+arduinomega: arduinomega_release
-arduinomega_stack_ethernet:
- @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - ETHERNET SHIELD======"
- @echo "=====BUILD LIBCOAP - DEBUG - <oic-resource>/csdk/libcoap/arduinomega/ethernet_shield/debug/====="
- $(MAKE) -C csdk/libcoap "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
+arduinomega_all: arduinomega_release arduinomega_debug
+
+arduinomega_all_dev: arduinomega_release_dev arduinomega_debug_dev
+
+arduinomega_release: arduinomega_ethernet_release
+
+arduinomega_debug: arduinomega_ethernet_debug
+
+arduinomega_release_dev: arduinomega_ethernet_release arduinomega_wifi_release
+
+arduinomega_debug_dev: arduinomega_ethernet_debug arduinomega_wifi_debug
+
+###############################################################################
+## TB Stack, TB Unit Tests, & TB Examples - Arduino Mega Only - Ethernet Only #
+###############################################################################
+
+arduinomega_ethernet: arduinomega_ethernet_release
+
+arduinomega_ethernet_all: arduinomega_ethernet_release arduinomega_ethernet_debug
+
+arduinomega_ethernet_release: arduinomega_stack_ethernet_release arduinomega_samples_ethernet_release
+
+arduinomega_ethernet_debug: arduinomega_stack_ethernet_debug arduinomega_samples_ethernet_debug
+
+###############################################################################
+## TB Stack, TB Unit Tests, & TB Examples - Arduino Mega Only - Ethernet Only #
+###############################################################################
+
+arduinomega_wifi: arduinomega_wifi_release
+
+arduinomega_wifi_all: arduinomega_wifi_release arduinomega_wifi_debug
+
+arduinomega_wifi_release: arduinomega_stack_wifi_release arduinomega_samples_wifi_release
+
+arduinomega_wifi_debug: arduinomega_stack_wifi_debug arduinomega_samples_wifi_debug
+
+###############################################################################
+#### TB Stack - Arduino Mega Only - Ethernet Only ####
+###############################################################################
+
+arduinomega_stack_ethernet: arduinomega_stack_ethernet_release
+
+arduinomega_stack_ethernet_all: arduinomega_stack_ethernet_release arduinomega_stack_ethernet_debug
+
+arduinomega_stack_ethernet_release:
+ @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - RELEASE - ETHERNET SHIELD======"
@echo "=====BUILD LIBCOAP - RELEASE - <oic-resource>/csdk/libcoap/arduinomega/ethernet_shield/release/====="
$(MAKE) -C csdk/libcoap "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
- @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinomega/ethernet_shield/debug/====="
- $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
@echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinomega/ethernet_shield/release/====="
$(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
-arduinomega_samples_ethernet:
- @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - ETHERNET SHIELD====="
- @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/ethernet_shield/debug/====="
- $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
+arduinomega_stack_ethernet_debug:
+ @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - DEBUG - ETHERNET SHIELD======"
+ @echo "=====BUILD LIBCOAP - DEBUG - <oic-resource>/csdk/libcoap/arduinomega/ethernet_shield/debug/====="
+ $(MAKE) -C csdk/libcoap "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
+ @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinomega/ethernet_shield/debug/====="
+ $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
+
+###############################################################################
+#### TB Stack - Arduino Mega Only - WiFi Only ####
+###############################################################################
+
+arduinomega_stack_wifi: arduinomega_stack_wifi_release
+
+arduinomega_stack_wifi_all: arduinomega_stack_wifi_release arduinomega_stack_wifi_debug
+
+arduinomega_stack_wifi_release:
+ @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - RELEASE - WiFi SHIELD======"
+ @echo "=====BUILD LIBCOAP - RELEASE - <oic-resource>/csdk/libcoap/arduinomega/wifi_shield/release/====="
+ $(MAKE) -C csdk/libcoap "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
+ @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinomega/wifi_shield/release/====="
+ $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
+
+arduinomega_stack_wifi_debug:
+ @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - DEBUG - WiFi SHIELD======"
+ @echo "=====BUILD LIBCOAP - DEBUG - <oic-resource>/csdk/libcoap/arduinomega/wifi_shield/debug/====="
+ $(MAKE) -C csdk/libcoap "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
+ @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinomega/wifi_shield/debug/====="
+ $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
+
+###############################################################################
+#### TB Examples - Arduino Mega Only - Ethernet Only ####
+###############################################################################
+
+arduinomega_samples_ethernet: arduinomega_samples_ethernet_release
+
+arduinomega_samples_ethernet_all: arduinomega_samples_ethernet_release arduinomega_samples_ethernet_debug
+
+arduinomega_samples_ethernet_release: arduinomega_stack_ethernet_release
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - RELEASE - ETHERNET SHIELD====="
@echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/ethernet_shield/release/====="
$(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
+arduinomega_samples_ethernet_debug: arduinomega_stack_ethernet_debug
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - DEBUG - ETHERNET SHIELD====="
+ @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/ethernet_shield/debug/====="
+ $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=0"
+
+###############################################################################
+#### TB Examples - Arduino Mega Only - WiFi Only ####
+###############################################################################
+
+arduinomega_samples_wifi: arduinomega_samples_wifi_release
+
+arduinomega_samples_wifi_all: arduinomega_samples_wifi_release arduinomega_samples_wifi_debug
+
+arduinomega_samples_wifi_release: arduinomega_stack_wifi_release
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - RELEASE - WIFI SHIELD====="
+ @echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/wifi_shield/release/====="
+ $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
+
+arduinomega_samples_wifi_debug: arduinomega_stack_wifi_debug
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO ATMEGA 2560 - DEBUG - WIFI SHIELD====="
+ @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega/wifi_shield/debug/====="
+ $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinomega" "ARDUINOWIFI=1"
+
+
+###############################################################################
+#TB Stack, TB Unit Tests, & TB Examples - Arduino Due Only - Ethernet & WiFi ##
+###############################################################################
+
+arduinodue: arduinodue_release
+
+arduinodue_all: arduinodue_release arduinodue_debug
+
+arduinodue_all_dev: arduinodue_release_dev arduinodue_debug_dev
+
+arduinodue_release: arduinodue_ethernet_release
+
+arduinodue_debug: arduinodue_ethernet_debug
+
+arduinodue_release_dev: arduinodue_ethernet_release arduinodue_wifi_release
+
+arduinodue_debug_dev: arduinodue_ethernet_debug arduinodue_wifi_debug
+
+###############################################################################
+## TB Stack, TB Unit Tests, & TB Examples - Arduino Due Only - Ethernet Only ##
+###############################################################################
+
+arduinodue_ethernet: arduinodue_ethernet_release
+
+arduinodue_ethernet_all: arduinodue_ethernet_release arduinodue_ethernet_debug
+
+arduinodue_ethernet_release: arduinodue_stack_ethernet_release arduinodue_samples_ethernet_release
+
+arduinodue_ethernet_debug: arduinodue_stack_ethernet_debug arduinodue_samples_ethernet_debug
+
+###############################################################################
+## TB Stack, TB Unit Tests, & TB Examples - Arduino Due Only - Ethernet Only ##
+###############################################################################
+
+arduinodue_wifi: arduinodue_wifi_release
+
+arduinodue_wifi_all: arduinodue_wifi_release arduinodue_wifi_debug
+
+arduinodue_wifi_release: arduinodue_stack_wifi_release arduinodue_samples_wifi_release
+
+arduinodue_wifi_debug: arduinodue_stack_wifi_debug arduinodue_samples_wifi_debug
+
+###############################################################################
+#### TB Stack - Arduino Due Only - Ethernet Only ####
+###############################################################################
+
+arduinodue_stack_ethernet: arduinodue_stack_ethernet_release
+
+arduinodue_stack_ethernet_all: arduinodue_stack_ethernet_release arduinodue_stack_ethernet_debug
+
+arduinodue_stack_ethernet_release:
+ @echo "=====BUILD C STACK FOR ARDUINO DUE - RELEASE - ETHERNET SHIELD======"
+ @echo "=====BUILD LIBCOAP - RELEASE - <oic-resource>/csdk/libcoap/arduinodue/ethernet_shield/release/====="
+ $(MAKE) -C csdk/libcoap "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
+ @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinodue/ethernet_shield/release/====="
+ $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
+
+arduinodue_stack_ethernet_debug:
+ @echo "=====BUILD C STACK FOR ARDUINO DUE - DEBUG - ETHERNET SHIELD======"
+ @echo "=====BUILD LIBCOAP - DEBUG - <oic-resource>/csdk/libcoap/arduinodue/ethernet_shield/debug/====="
+ $(MAKE) -C csdk/libcoap "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
+ @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinodue/ethernet_shield/debug/====="
+ $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
+
+###############################################################################
+#### TB Stack - Arduino Due Only - WiFi Only ####
+###############################################################################
+
+arduinodue_stack_wifi: arduinodue_stack_wifi_release
+
+arduinodue_stack_wifi_all: arduinodue_stack_wifi_release arduinodue_stack_wifi_debug
+
+arduinodue_stack_wifi_release:
+ @echo "=====BUILD C STACK FOR ARDUINO DUE - RELEASE - WiFi SHIELD======"
+ @echo "=====BUILD LIBCOAP - RELEASE - <oic-resource>/csdk/libcoap/arduinodue/wifi_shield/release/====="
+ $(MAKE) -C csdk/libcoap "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
+ @echo "=====BUILD TB STACK - RELEASE - <oic-resource>/csdk/arduinodue/wifi_shield/release/====="
+ $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
+
+arduinodue_stack_wifi_debug:
+ @echo "=====BUILD C STACK FOR ARDUINO DUE - DEBUG - WiFi SHIELD======"
+ @echo "=====BUILD LIBCOAP - DEBUG - <oic-resource>/csdk/libcoap/arduinodue/wifi_shield/debug/====="
+ $(MAKE) -C csdk/libcoap "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
+ @echo "=====BUILD TB STACK - DEBUG - <oic-resource>/csdk/arduinodue/wifi_shield/debug/====="
+ $(MAKE) -C csdk "buildScript_all" "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
+
+###############################################################################
+#### TB Examples - Arduino Due Only - Ethernet Only ####
+###############################################################################
+
+arduinodue_samples_ethernet: arduinodue_samples_ethernet_release
+
+arduinodue_samples_ethernet_all: arduinodue_samples_ethernet_release arduinodue_samples_ethernet_debug
+
+arduinodue_samples_ethernet_release: arduinodue_stack_ethernet_release
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - RELEASE - ETHERNET SHIELD====="
+ @echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/ethernet_shield/release/====="
+ $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
+
+arduinodue_samples_ethernet_debug: arduinodue_stack_ethernet_debug
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - DEBUG - ETHERNET SHIELD====="
+ @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/ethernet_shield/debug/====="
+ $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=0"
+
+###############################################################################
+#### TB Examples - Arduino Due Only - WiFi Only ####
+###############################################################################
+
+arduinodue_samples_wifi: arduinodue_samples_wifi_release
+
+arduinodue_samples_wifi_all: arduinodue_samples_wifi_release arduinodue_samples_wifi_debug
+
+arduinodue_samples_wifi_release: arduinodue_stack_wifi_release
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - RELEASE - WIFI SHIELD====="
+ @echo "=====BUILD OCSERVER - RELEASE - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/wifi_shield/release/====="
+ $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
+
+arduinodue_samples_wifi_debug: arduinodue_stack_wifi_debug
+ @echo "=====BUILD TB SAMPLE APPS FOR ARDUINO DUE - DEBUG - WIFI SHIELD====="
+ @echo "=====BUILD OCSERVER - DEBUG - <oic-resource>/csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue/wifi_shield/debug/====="
+ $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "BUILD=debug" "PLATFORM=arduinodue" "ARDUINOWIFI=1"
+
+###############################################################################
+#### Clean All - Linux Only - Ethernet Only ####
+###############################################################################
+
linux_clean:
-rm -rf -C csdk/libcoap/linux
-rm -rf -C csdk/linux
$(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "clean"
$(MAKE) -C . "clean"
+###############################################################################
+#### Clean All - Arduino Mega Only - Ethernet & WiFi ####
+###############################################################################
+
arduinomega_clean:
-rm -rf csdk/libcoap/arduinomega
-rm -rf csdk/arduinomega
-rm -rf csdk/stack/test/arduino/arduinomega
-rm -rf csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinomega
+###############################################################################
+#### Clean All - Arduino Due Only - Ethernet & WiFi ####
+###############################################################################
+
+arduinodue_clean:
+ -rm -rf csdk/libcoap/arduinodue
+ -rm -rf csdk/arduinodue
+ -rm -rf csdk/stack/test/arduino/arduinodue
+ -rm -rf csdk/stack/samples/arduino/SimpleClientServer/ocserver/arduinodue
+
+
+###############################################################################
+#### Clean All - Linux, Arduino Mega & Arduino Due - Ethernet & WiFi ####
+###############################################################################
clean:
$(MAKE) -C csdk "clean" "deepclean"
$(MAKE) -C csdk/stack/test/linux "clean"