From 6f0bb6ef403d05cf8eeb6f81dbe7bfaec6751798 Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Fri, 1 May 2015 11:57:54 -0400 Subject: [PATCH] Removed all makefiles and associated documentation from the repo. These makefiles and documents were removed to remove all reference to our old build system in our repo. Please refer to "Readme.scons.txt" at the root of the repo for all builds from now on. Change-Id: I93ae3a4c8d2a075ee24278da469d66ff49f4997b Signed-off-by: Joseph Morrow Reviewed-on: https://gerrit.iotivity.org/gerrit/879 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane --- android/Base/app/jni/Android.mk | 57 --- android/Base/app/jni/Application.mk | 2 - examples/OICMiddle/makefile | 88 ---- resource/README.setup.txt | 266 ----------- resource/buildScript.mk | 510 --------------------- resource/csdk/README | 63 --- resource/csdk/connectivity/build/Makefile | 62 --- resource/csdk/connectivity/build/android/Makefile | 19 - resource/csdk/connectivity/build/arduino/Makefile | 75 --- resource/csdk/connectivity/build/common.mk | 60 --- resource/csdk/connectivity/build/linux/Makefile | 188 -------- resource/csdk/connectivity/build/linux/common.mk | 61 --- resource/csdk/connectivity/build/tizen/Makefile | 65 --- .../lib/libcoap-4.1.1/examples/Makefile | 62 --- .../connectivity/lib/libcoap-4.1.1/tests/Makefile | 58 --- .../samples/android/sample_service/Makefile | 18 - resource/csdk/connectivity/samples/linux/Makefile | 122 ----- .../connectivity/samples/linux/threadpool/Makefile | 13 - resource/csdk/connectivity/samples/tizen/Makefile | 49 -- resource/csdk/logger/makefile | 122 ----- resource/csdk/makefile | 228 --------- resource/csdk/ocmalloc/test/linux/makefile | 99 ---- resource/csdk/ocrandom/test/android/makefile | 130 ------ resource/csdk/ocrandom/test/arduino/makefile | 161 ------- resource/csdk/ocrandom/test/linux/makefile | 125 ----- .../samples/arduino/SimpleClientServer/makefile | 38 -- .../arduino/SimpleClientServer/ocserver/makefile | 122 ----- .../samples/linux/SimpleClientServer/makefile | 133 ------ resource/csdk/stack/samples/linux/secure/makefile | 113 ----- resource/csdk/stack/test/arduino/makefile | 112 ----- resource/csdk/stack/test/linux/makefile | 98 ---- resource/csdk/stack/test/makefile | 98 ---- resource/examples/makefile | 128 ------ resource/makefile | 136 ------ resource/oc_logger/Makefile | 56 --- resource/oc_logger/c/Makefile | 52 --- resource/oc_logger/cpp/Makefile | 47 -- resource/oc_logger/examples/Makefile | 56 --- resource/oc_logger/samples/linux/makefile | 86 ---- resource/unittests/makefile | 90 ---- .../NotificationManager/build/linux/Makefile | 31 -- service/protocol-plugin/build/linux/Makefile | 33 -- service/protocol-plugin/config.mk | 1 - .../plugins/mqtt-fan/build/linux/Makefile | 50 -- .../protocol-plugin/plugins/mqtt-fan/lib/config.mk | 218 --------- .../plugins/mqtt-light/build/linux/Makefile | 50 -- .../plugins/mqtt-light/lib/config.mk | 218 --------- .../protocol-plugin/sample-app/linux/mqtt/Makefile | 41 -- .../SDK/cpp/build/linux/Makefile | 54 --- .../SSMCore/build/linux/Makefile | 85 ---- .../arduino/Reference_Thing/build/makefile | 116 ----- .../SampleApp/arduino/THSensorApp/build/makefile | 106 ----- .../SampleApp/arduino/THSensorApp1/build/makefile | 106 ----- .../SampleApp/arduino/Trackee_Thing/build/makefile | 110 ----- .../SampleApp/arduino/environment.mk | 3 - .../SampleApp/linux/SSMTesterApp/build/Makefile | 58 --- .../SampleApp/linux/THSensorApp/build/Makefile | 56 --- .../SampleApp/linux/THSensorApp1/build/Makefile | 56 --- .../DiscomfortIndexSensor/build/linux/Makefile | 50 -- service/soft-sensor-manager/build/arduino/Makefile | 57 --- .../build/arduino/environment.mk | 25 - .../soft-sensor-manager/build/linux/environment.mk | 38 -- service/things-manager/build/linux/makefile | 32 -- .../sampleapp/linux/configuration/makefile | 70 --- .../sampleapp/linux/groupaction/makefile | 68 --- .../sampleapp/linux/groupsyncaction/makefile | 64 --- service/things-manager/sampleapp/linux/makefile | 21 - service/things-manager/sdk/build/linux/Makefile | 81 ---- 68 files changed, 5966 deletions(-) delete mode 100644 android/Base/app/jni/Android.mk delete mode 100644 android/Base/app/jni/Application.mk delete mode 100644 examples/OICMiddle/makefile delete mode 100644 resource/README.setup.txt delete mode 100644 resource/buildScript.mk delete mode 100644 resource/csdk/README delete mode 100644 resource/csdk/connectivity/build/Makefile delete mode 100644 resource/csdk/connectivity/build/android/Makefile delete mode 100644 resource/csdk/connectivity/build/arduino/Makefile delete mode 100644 resource/csdk/connectivity/build/common.mk delete mode 100644 resource/csdk/connectivity/build/linux/Makefile delete mode 100644 resource/csdk/connectivity/build/linux/common.mk delete mode 100644 resource/csdk/connectivity/build/tizen/Makefile delete mode 100644 resource/csdk/connectivity/lib/libcoap-4.1.1/examples/Makefile delete mode 100644 resource/csdk/connectivity/lib/libcoap-4.1.1/tests/Makefile delete mode 100644 resource/csdk/connectivity/samples/android/sample_service/Makefile delete mode 100644 resource/csdk/connectivity/samples/linux/Makefile delete mode 100644 resource/csdk/connectivity/samples/linux/threadpool/Makefile delete mode 100644 resource/csdk/connectivity/samples/tizen/Makefile delete mode 100644 resource/csdk/logger/makefile delete mode 100755 resource/csdk/makefile delete mode 100644 resource/csdk/ocmalloc/test/linux/makefile delete mode 100644 resource/csdk/ocrandom/test/android/makefile delete mode 100644 resource/csdk/ocrandom/test/arduino/makefile delete mode 100644 resource/csdk/ocrandom/test/linux/makefile delete mode 100644 resource/csdk/stack/samples/arduino/SimpleClientServer/makefile delete mode 100644 resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile delete mode 100644 resource/csdk/stack/samples/linux/SimpleClientServer/makefile delete mode 100644 resource/csdk/stack/samples/linux/secure/makefile delete mode 100644 resource/csdk/stack/test/arduino/makefile delete mode 100644 resource/csdk/stack/test/linux/makefile delete mode 100644 resource/csdk/stack/test/makefile delete mode 100644 resource/examples/makefile delete mode 100644 resource/makefile delete mode 100644 resource/oc_logger/Makefile delete mode 100644 resource/oc_logger/c/Makefile delete mode 100644 resource/oc_logger/cpp/Makefile delete mode 100644 resource/oc_logger/examples/Makefile delete mode 100644 resource/oc_logger/samples/linux/makefile delete mode 100644 resource/unittests/makefile delete mode 100644 service/notification-manager/NotificationManager/build/linux/Makefile delete mode 100644 service/protocol-plugin/build/linux/Makefile delete mode 100644 service/protocol-plugin/config.mk delete mode 100644 service/protocol-plugin/plugins/mqtt-fan/build/linux/Makefile delete mode 100644 service/protocol-plugin/plugins/mqtt-fan/lib/config.mk delete mode 100644 service/protocol-plugin/plugins/mqtt-light/build/linux/Makefile delete mode 100644 service/protocol-plugin/plugins/mqtt-light/lib/config.mk delete mode 100644 service/protocol-plugin/sample-app/linux/mqtt/Makefile delete mode 100644 service/soft-sensor-manager/SDK/cpp/build/linux/Makefile delete mode 100644 service/soft-sensor-manager/SSMCore/build/linux/Makefile delete mode 100644 service/soft-sensor-manager/SampleApp/arduino/Reference_Thing/build/makefile delete mode 100644 service/soft-sensor-manager/SampleApp/arduino/THSensorApp/build/makefile delete mode 100644 service/soft-sensor-manager/SampleApp/arduino/THSensorApp1/build/makefile delete mode 100644 service/soft-sensor-manager/SampleApp/arduino/Trackee_Thing/build/makefile delete mode 100644 service/soft-sensor-manager/SampleApp/arduino/environment.mk delete mode 100644 service/soft-sensor-manager/SampleApp/linux/SSMTesterApp/build/Makefile delete mode 100644 service/soft-sensor-manager/SampleApp/linux/THSensorApp/build/Makefile delete mode 100644 service/soft-sensor-manager/SampleApp/linux/THSensorApp1/build/Makefile delete mode 100644 service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/build/linux/Makefile delete mode 100644 service/soft-sensor-manager/build/arduino/Makefile delete mode 100644 service/soft-sensor-manager/build/arduino/environment.mk delete mode 100644 service/soft-sensor-manager/build/linux/environment.mk delete mode 100644 service/things-manager/build/linux/makefile delete mode 100644 service/things-manager/sampleapp/linux/configuration/makefile delete mode 100644 service/things-manager/sampleapp/linux/groupaction/makefile delete mode 100644 service/things-manager/sampleapp/linux/groupsyncaction/makefile delete mode 100644 service/things-manager/sampleapp/linux/makefile delete mode 100644 service/things-manager/sdk/build/linux/Makefile diff --git a/android/Base/app/jni/Android.mk b/android/Base/app/jni/Android.mk deleted file mode 100644 index 58e9a36..0000000 --- a/android/Base/app/jni/Android.mk +++ /dev/null @@ -1,57 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) -OIC_LIB_PATH := ../../../../out/android/$(TARGET_ARCH_ABI)/release -LOCAL_MODULE := libandroid-oc_logger -LOCAL_SRC_FILES := $(OIC_LIB_PATH)/liboc_logger.a -include $(PREBUILT_STATIC_LIBRARY) - -include $(CLEAR_VARS) -OIC_LIB_PATH := ../../../../out/android/$(TARGET_ARCH_ABI)/release -LOCAL_MODULE := libandroid-octbstack -LOCAL_SRC_FILES := $(OIC_LIB_PATH)/liboctbstack.a -include $(PREBUILT_STATIC_LIBRARY) - -include $(CLEAR_VARS) -OIC_LIB_PATH := ../../../../out/android/$(TARGET_ARCH_ABI)/release -LOCAL_MODULE := libandroid-oc -LOCAL_SRC_FILES := $(OIC_LIB_PATH)/liboc.a -include $(PREBUILT_STATIC_LIBRARY) - -include $(CLEAR_VARS) -OIC_LIB_PATH := ../../../../out/android/$(TARGET_ARCH_ABI)/release -LOCAL_MODULE := libandroid-coap -LOCAL_SRC_FILES := $(OIC_LIB_PATH)/libcoap.a -include $(PREBUILT_STATIC_LIBRARY) - -include $(CLEAR_VARS) -OIC_LIB_PATH := ../../../../out/android/$(TARGET_ARCH_ABI)/release -LOCAL_MODULE := libandroid-compatibility -LOCAL_SRC_FILES := $(OIC_LIB_PATH)/libcompatibility.a -include $(PREBUILT_STATIC_LIBRARY) - -include $(CLEAR_VARS) -OIC_SRC_PATH := ../../../resource -OIC_OUT_PATH := ../../../out -LOCAL_MODULE := ocstack-jni -LOCAL_SRC_FILES := ocstack-jni.cpp \ - ocheaderoption-jni.cpp \ - ocrepresentation-jni.cpp \ - ocresource-jni.cpp \ - ocplatform-jni.cpp \ - platformcfg-jni.cpp -LOCAL_LDLIBS := -llog -LOCAL_STATIC_LIBRARIES := android-oc -LOCAL_STATIC_LIBRARIES += android-octbstack -LOCAL_STATIC_LIBRARIES += android-coap -LOCAL_STATIC_LIBRARIES += android-oc_logger -LOCAL_STATIC_LIBRARIES += libandroid-compatibility -LOCAL_CPPFLAGS += -std=c++0x -frtti -fexceptions -LOCAL_C_INCLUDES := $(OIC_SRC_PATH)/include -LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/stack/include -LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/csdk/ocsocket/include -LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/oc_logger/include -LOCAL_C_INCLUDES += $(OIC_OUT_PATH)/android/include -LOCAL_C_INCLUDES += $(OIC_SRC_PATH)/dependencies/cereal/include -include $(BUILD_SHARED_LIBRARY) - diff --git a/android/Base/app/jni/Application.mk b/android/Base/app/jni/Application.mk deleted file mode 100644 index 4450fdf..0000000 --- a/android/Base/app/jni/Application.mk +++ /dev/null @@ -1,2 +0,0 @@ -NDK_TOOLCHAIN_VERSION := 4.9 -APP_STL := gnustl_static diff --git a/examples/OICMiddle/makefile b/examples/OICMiddle/makefile deleted file mode 100644 index 4a40c95..0000000 --- a/examples/OICMiddle/makefile +++ /dev/null @@ -1,88 +0,0 @@ -#//****************************************************************** -#// -#// 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. -#// -#//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - -# override with `make BUILD=release` -# default to release build -BUILD := debug -PLATFORM := linux -CXX := g++ -#CXX := clang -OUT_DIR := $(BUILD) -OIC := ../.. -OIC_RES := $(OIC)/resource -OIC_LIB := $(OIC)/out/linux/x86_64/release -OBJS := OICMiddle.o \ - Client.o \ - Server.o \ - WrapResource.o \ - LineInput.o \ - RestInput.o - -CXX_FLAGS.debug := -O0 -g3 -std=c++0x -Wall -pthread - -CXX_FLAGS.release := -O3 -std=c++0x -Wall -pthread - -CXX_INC := -I$(OIC_RES)/include/ -CXX_INC += -I$(OIC_RES)/oc_logger/include -CXX_INC += -I$(OIC_RES)/csdk/stack/include -CXX_INC += -I$(OIC_RES)/csdk/ocrandom/include -CXX_INC += -I$(OIC_RES)/csdk/logger/include -CXX_INC += -I$(OIC_RES)/csdk/connectivity/lib/libcoap-4.1.1 - -CXX_LIBS := -L${OIC_LIB} -CXX_LIBS += -loc -CXX_LIBS += -loctbstack -CXX_LIBS += -loc_logger -#CXX_LIBS += -loc_logger_core -CXX_LIBS += -lconnectivity_abstraction -CXX_LIBS += -lcoap - -all: prep_dirs OICMiddle - -prep_dirs: - -mkdir -p $(OUT_DIR) - -OICMiddle: $(OBJS) - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ $(OBJS) $(CXX_LIBS) - -OICMiddle.o: OICMiddle.cpp OICMiddle.h - $(CXX) -c $(CXX_FLAGS.$(BUILD)) OICMiddle.cpp $(CXX_INC) - -Client.o: Client.cpp Client.h OICMiddle.h - $(CXX) -c $(CXX_FLAGS.$(BUILD)) Client.cpp $(CXX_INC) - -Server.o: Server.cpp Server.h OICMiddle.h - $(CXX) -c $(CXX_FLAGS.$(BUILD)) Server.cpp $(CXX_INC) - -WrapResource.o: WrapResource.cpp WrapResource.h OICMiddle.h - $(CXX) -c $(CXX_FLAGS.$(BUILD)) WrapResource.cpp $(CXX_INC) - -LineInput.o: LineInput.cpp LineInput.h OICMiddle.h - $(CXX) -c $(CXX_FLAGS.$(BUILD)) LineInput.cpp $(CXX_INC) - -RestInput.o: RestInput.cpp RestInput.h OICMiddle.h - $(CXX) -c $(CXX_FLAGS.$(BUILD)) RestInput.cpp $(CXX_INC) - -clean: - rm $(OBJS) - rm -rf debug - rm -rf release - - diff --git a/resource/README.setup.txt b/resource/README.setup.txt deleted file mode 100644 index d248d66..0000000 --- a/resource/README.setup.txt +++ /dev/null @@ -1,266 +0,0 @@ -****************************************************************** - - 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. - --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - -=============================================================================== -== NOTICE - Transition to SCONS == -=============================================================================== - -The IoTivity build system is transitioning to SCONS. Although the -makefiles are still available (until v1.0) and some developers are -still using them, they are currently no longer supported. To learn more -about building using SCONS see Readme.scons.txt in the repository root -directory. The build steps used in continuous integration can be found -in auto_build.sh which is also in the the repository root directory. - -=============================================================================== -== Rich Stack & Lite Stack == -=============================================================================== - -The OIC-RESOURCE repository (referred as "") contains two SDKs -with underlying code (i.e. "stack"). The two SDKs are referred to as "Rich SDK" -(or "C++ SDK") and "Lite SDK" (or "C SDK"). The associated stacks are referred -to as "Rich Stack" (or "C++ Stack") and "Lite Stack" (or "C Stack"), -respectively. The Rich Stack-SDK pair requires that the Lite 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: -/artifact_output_locations.txt. - -=============================================================================== - -The Rich Stack is intended ONLY for Linux Ubuntu 12.04 operating system. -To build Rich Stack, please follow these requirements: -- GCC compiler version is 4.6 -- Pre-install the "gnu-libc" libraries package. -- You have pre-built the Lite Stack for Linux Ubuntu 12.04. -- You have installed and pre-built Boost 1.54. -- To compile Rich Unit Tests, you must have Google Test 1.7.0 and must also - create/append "local.properties" file at /csdk/ with the - following specified: - - GTEST_DIR= - -The Lite 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 Lite Stack, please follow these requirements for Linux Ubuntu 12.04: -- GCC compiler version is 4.6 -- Pre-install the "gnu-libc" libraries package. - -To build Lite Stack, please follow these requirements for Arduino ATMega 2560: -- Arduino Framework 1.0.5 is installed. (Newer versions of the Arduino - Framework for Arduino ATMega 2560 have not been tested.) -- AVR-GCC compiler version is 4.5.3 (Distributed with Arduino 1.0.5, no further - action necessary if framework was obtained from - http://arduino.cc/en/Main/OldSoftwareReleases. 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 -- Apply patch "arduino-1.0.5_linux.patch" at - /tools/arduino/patches to your Arduino Directory Structure at - location . -- Create/Append "local.properties" file at location - /resource/csdk/ with the following specified: - - ARDUINO_DIR := - ARDUINO_TOOLS_DIR := $(ARDUINO_DIR)/hardware/tools/avr/bin - -To build Lite Stack, please follow these requirements for Arduino Due: -- Arduino Framework 1.5.7 is installed. (Newer versions of the Arduino - Framework for Arduino Due have not been tested.) -- AVR-GCC compiler version is 4.8.3 (Distributed with Arduino 1.5.7, no further - action necessary if framework was obtained from - http://arduino.cc/en/Main/OldSoftwareReleases. 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 -- Apply patch "arduino-1.5.7_linux.patch" at - /tools/arduino/patches to your Arduino Directory Structure at - location . -- Create/Append "local.properties" file at location - /resource/csdk/ with the following specified: - - ARDUINO_DIR := - ARDUINO_TOOLS_DIR := $(ARDUINO_DIR)/hardware/tools/avr/bin - -Note: If you are building Unit Tests for Linux, building for Arduino Mega, and -building for Arduino Due you may find it useful to set the "local.properties" -file to look like this: - -GTEST_DIR= - -ifeq ($(PLATFORM), arduinomega) - #Location of arduino sdk for Arduino Mega - ARDUINO_DIR := - ARDUINO_TOOLS_DIR := $(ARDUINO_DIR)/hardware/tools/avr/bin -else - #Location of arduino sdk for Arduino Due - ARDUINO_DIR := - ARDUINO_TOOLS_DIR := $(ARDUINO_DIR)/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin -endif - -=============================================================================== - -Instructions for Common Build Processes: - -NOTE: 'GNU Make' is required to utilize the build script at location: -/buildScript.mk. - -======================================= -== All Targets - Linux, ATMega & Due == -======================================= - -- All Modules, including OCICUC, in Release & Debug (Lite Stack, Lite Unit - Tests, Lite Examples, Rich Stack, Rich Unit Tests, Rich Examples, Rich - 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 (Lite Stack, Lite Unit Tests, Lite Examples, Rich - Stack, Rich Unit Tests, Rich Examples) for Linux & Arduino ATMega 2560 with - Ethernet Shield: - - make -f buildScript.mk all - -- All Modules in Debug (Lite Stack, Lite Unit Tests, Lite Examples, Rich Stack, - Rich Examples) for Linux & Arduino ATMega 2560 with Ethernet Shield: - - make -f buildScript.mk all_debug - -======================================= -== All Targets - Linux & Due == -======================================= - -- All Modules in Release (Lite Stack, Lite Unit Tests, Lite Examples, Rich - Stack, Rich Unit Tests, Rich Examples) for Linux & Arduino Due with Ethernet - Shield: - - make -f buildScript.mk complement - -- All Modules in Debug (Lite Stack, Lite Unit Tests, Lite Examples, Rich Stack, - Rich Unit Tests, Rich Examples) for Linux & Arduino Due with Ethernet Shield: - - make -f buildScript.mk complement_debug - -======================================= -== All Targets - Linux Only == -======================================= - -- All Modules, without OCICUC, in Release (Lite Stack, Lite Unit Tests, Lite - Examples, Rich Stack, Rich Unit Tests, Rich Examples) for linux: - - make -f buildScript.mk linux - -- All Modules, without OCICUC, in Debug (Lite Stack, Lite Unit Tests, Lite - Examples, Rich Stack, Rich Unit Tests, Rich Examples) for linux: - - make -f buildScript.mk linux_debug - -- All Rich Stack Modules in Release, without OCICUC, (Lite Stack, Rich Stack, - Rich Unit Tests, Rich Examples) for Linux: - - make -f buildScript.mk linux_ub - -- All Rich Stack Modules in Debug, without OCICUC, (Lite Stack, Rich Stack, - Rich Unit Tests, Rich Examples) for Linux: - - make -f buildScript.mk linux_ub_debug - -- All Rich Stack Modules, including OCICUC, in Release & Debug (Lite Stack, - Rich Stack, Rich Unit Tests, Rich Examples, Rich OCICUC) for linux: - - make -f buildScript.mk linux_ub_dev - -- All Lite Stack Modules in Release (Lite Stack, Lite Unit Tests, Lite - Examples) for Linux: - - make -f buildScript.mk linux_tb - -- All Lite Stack Modules in Debug (Lite Stack, Lite Unit Tests, Lite Examples) - for Linux: - - make -f buildScript.mk linux_tb_debug - -======================================= -== All Targets - Mega Only == -======================================= - -- All Lite Stack Modules in Release (Lite Stack, Lite Unit Tests, Lite - Examples) for Arduino ATMega 2560 with Ethernet Shield: - - make -f buildScript.mk arduinomega - -- All Lite Stack Modules in Debug (Lite Stack, Lite Unit Tests, Lite Examples) - for Arduino ATMega 2560 with Ethernet Shield: - - make -f buildScript.mk arduinomega_debug - -- All Lite Stack Modules in Release (Lite Stack, Lite Unit Tests, Lite - Examples) for Arduino ATMega 2560 with WiFi Shield: - - make -f buildScript.mk arduinomega_wifi - -- All Lite Stack Modules in Debug (Lite Stack, Lite Unit Tests, Lite Examples) - for Arduino ATMega 2560 with WiFi Shield: - - make -f buildScript.mk arduinomega_wifi_debug - -======================================= -== All Targets - Due Only == -======================================= - -- All Lite Stack Modules in Release (Lite Stack, Lite Unit Tests, Lite - Examples) for Arduino Due with Ethernet Shield: - - make -f buildScript.mk arduinodue_all - -- All Lite Stack Modules in Debug (Lite Stack, Lite Unit Tests, Lite Examples) - Examples) for Arduino Due with Ethernet Shield: - - make -f buildScript.mk arduinodue_all_debug - -- All Lite Stack Modules in Release (Lite Stack, Lite Unit Tests, Lite - Examples) for Arduino Due with WiFi Shield: - - make -f buildScript.mk arduinodue_wifi - -- All Lite Stack Modules in Debug (Lite Stack, Lite Unit Tests, Lite Examples) - for Arduino Due with WiFi Shield: - - make -f buildScript.mk arduinodue_wifi_debug - -======================================= -== Clean All Targets == -======================================= - -- Clean All: - - make -f buildScript.mk clean - diff --git a/resource/buildScript.mk b/resource/buildScript.mk deleted file mode 100644 index 6b0d178..0000000 --- a/resource/buildScript.mk +++ /dev/null @@ -1,510 +0,0 @@ -## //****************************************************************** -## // -## // 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. -## // -## //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -## -# -## This makefile build-script requires the following for each platform: -## Note: Refer to READMEs at "/" & "/csdk/" for -## more information. -## -## Linux: -## OS: Ubuntu 12.04 -## GCC Version: 4.6.1 -## -## Arduino ATMega 2560: -## Framework Version: Arduino 1.0.5 -## AVR-GCC Version: 4.5.3 -## -## Arduino Due: -## Framework Version: Arduino 1.5.7 -## AVR-GCC Version: 4.8.3 -# -## Header Description: -## ====NAME/TITLE - BUILD TYPE - OUT DIRECTORY==== -# -################################################################################ -##### 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: all_release -# -#all_all: all_release all_debug -# -#dev: linux_ub_dev arduinomega_all_dev -# -#all_release: linux_release arduinomega_release -# -#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_unittests_release linux_ub_stack_release linux_ub_examples_release -# -#linux_ub_debug: linux_tb_stack_debug linux_ub_unittests_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 TB STACK FOR LINUX - DEBUG - /csdk/linux/debug/=====" -# $(MAKE) -C csdk/ "buildScript_all" "BUILD=debug" "PLATFORM=linux" -# -#linux_tb_stack_release: -# @echo "=====BUILD TB STACK FOR LINUX - RELEASE - /csdk/linux/release/=====" -# $(MAKE) -C csdk/ "buildScript_all" "BUILD=release" "PLATFORM=linux" -# -################################################################################ -##### 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 - /csdk/stack/test/linux/release/=====" -# $(MAKE) -C csdk/stack/test/linux/ "BUILD=release" -# -#linux_tb_unittests_debug: linux_tb_stack_debug -# @echo "=====BUILD TB UNITTESTS FOR LINUX - DEBUG - /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 - /csdk/stack/samples/linux/SimpleClientServer/release/=====" -# $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "PLATFORM=linux" "BUILD=release" -# $(MAKE) -C csdk/stack/samples/linux/secure "PLATFORM=linux" "BUILD=release" -# -#linux_tb_examples_debug: linux_tb_stack_debug -# @echo "=====BUILD TB SAMPLE APPS FOR LINUX - DEBUG - /csdk/stack/samples/linux/SimpleClientServer/debug/=====" -# $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "PLATFORM=linux" "BUILD=debug" -# $(MAKE) -C csdk/stack/samples/linux/secure "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 - /release/=====" -# $(MAKE) -C ./ "buildScript_all" "BUILD=release" -# -#linux_ub_stack_debug: linux_tb_stack_debug -# @echo "=====BUILD UB STACK FOR LINUX - DEBUG - /debug/=====" -# $(MAKE) -C ./ "buildScript_all" "BUILD=debug" -# -################################################################################ -##### UB Unit Tests (& TB Stack as prequisite) - Linux Only #### -################################################################################ -# -#linux_ub_unittests: linux_ub_unittests_release -# -#linux_ub_unittests_all: linux_ub_unittests_release linux_ub_unittests_debug -# -#linux_ub_unittests_release: linux_ub_stack_release -# @echo "=====BUILD UB UNIT TESTS FOR LINUX - RELEASE - /unittests/release=====" -# $(MAKE) -C unittests/ "BUILD=release" -# -#linux_ub_unittests_debug: linux_ub_stack_debug -# @echo "=====BUILD UB UNIT TESTS FOR LINUX - DEBUG - /unittests/debug=====" -# $(MAKE) -C unittests/ "BUILD=debug" -# -################################################################################ -##### UB Examples (& UB Stack as prerequisite) - 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 - /examples/release/=====" -# $(MAKE) -C examples/ "buildScript_all" "BUILD=release" -# -#linux_ub_examples_debug: linux_ub_stack_debug -# @echo "=====BUILD UB SAMPLE APPS FOR LINUX - DEBUG - /examples/debug/=====" -# $(MAKE) -C examples/ "buildScript_all" "BUILD=debug" -# -################################################################################ -##### TB Stack, TB Unit Tests, TB Examples, UB Stack, UB Examples, #### -##### UB Unit Tests - Linux Only #### -################################################################################ -# -#linux_ub_dev: linux_ub_stack_all linux_ub_unittests_all linux_ub_examples_all linux_tb_examples_all -# -################################################################################ -##TB Stack, TB Unit Tests, & TB Examples - Arduino Mega Only - Ethernet & WiFi # -################################################################################ -# -#arduinomega: arduinomega_release -# -#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 TB STACK - RELEASE - /csdk/arduinomega/ethernet_shield/release/=====" -# $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinomega" "ARDUINOWIFI=0" -# -#arduinomega_stack_ethernet_debug: -# @echo "=====BUILD C STACK FOR ARDUINO ATMEGA 2560 - DEBUG - ETHERNET SHIELD======" -# @echo "=====BUILD TB STACK - DEBUG - /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 TB STACK - RELEASE - /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 TB STACK - DEBUG - /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 - /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 - /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 - /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 - /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 TB STACK - RELEASE - /csdk/arduinodue/ethernet_shield/release/=====" -# $(MAKE) -C csdk "buildScript_all" "BUILD=release" "PLATFORM=arduinodue" "ARDUINOWIFI=0" -# -#arduinodue_stack_ethernet_debug: -# @echo "=====BUILD TB STACK - DEBUG - /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 TB STACK - RELEASE - /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 TB STACK - DEBUG - /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 - /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 - /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 - /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 - /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/linux -# $(MAKE) -C csdk/stack/test/linux "clean" -# $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "clean" -# $(MAKE) -C csdk/stack/samples/linux/secure "clean" -# $(MAKE) -C . "clean" -# -################################################################################ -##### Clean All - Arduino Mega Only - Ethernet & WiFi #### -################################################################################ -# -#arduinomega_clean: -# -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/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" -# $(MAKE) -C csdk/stack/samples/linux/SimpleClientServer "clean" -# $(MAKE) -C csdk/stack/samples/linux/secure "clean" -# $(MAKE) -C csdk/stack/samples/arduino/SimpleClientServer/ocserver "clean" -# $(MAKE) -C . "clean" -# $(MAKE) -C unittests/ "clean" -# $(MAKE) -C examples/ "clean" -# $(MAKE) -C oc_logger/ "clean" -# -################################################################################ -#### You must specify arduinomega or arduinodue when using an arduino target.### -################################################################################ -#arduino: -# $(error "You must specify "arduinomega" or "arduinodue" when trying to\ -# build arduino targets.") -# -# -# - -all_dev: diff --git a/resource/csdk/README b/resource/csdk/README deleted file mode 100644 index 7839acd..0000000 --- a/resource/csdk/README +++ /dev/null @@ -1,63 +0,0 @@ -------------------------------------------------------------------------------- - NOTICE - Transition to SCONS -------------------------------------------------------------------------------- - -The IoTivity build system is transitioning to SCONS. Although the -makefiles are still available (until v1.0) and some developers are -still using them, they are currently no longer supported. To learn more -about building using SCONS see Readme.scons.txt in the repository root -directory. The build steps used in continuous integration can be found -in auto_build.sh which is also in the the repository root directory. - -------------------------------------------------------------------------------- -**Linux** -------------------------------------------------------------------------------- -To make octbstack.a in release mode: - - make - -To make octbstack.a in debug mode: - - make BUILD=debug - -------------------------------------------------------------------------------- -**Arduino** -------------------------------------------------------------------------------- -Touch (i.e. create) file named "local.properties" at this directory level with -the following definition(s): - - ARDUINO_DIR = /arduino-1.0.5 - ARDUINO_TOOLS_DIR = (location of avr-g++ and other avr tools) - -To make octbstack.a in release mode: - make PLATFORM=arduinomega (For Arduino Due, use ) - -To make octbstack.a in debug mode: - make PLATFORM=arduinomega BUILD=debug (For Arduino Due, use ) - -To make octbstack.a with Arduino WiFi Shield support: - make PLATFORM=arduinomega ARDUINOWIFI=1 (For Arduino Due, use ) - -Dependencies: - 1) Patch the Wiznet Ethernet library with the patch available at : - oic-utilities/tb/arduino_linux_ethernet_socket_cpp.patch - 2) Arduino builds are dependent on latest Time library. Download it from here: - http://www.pjrc.com/teensy/td_libs_Time.html - 3) Arduino Due has been tested with Arduino 1.5.7 framework. - 4) For Arduino Due, binary tools are located in: - /hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin - 5) For Arduino WiFi, update the WiFi shield with the firmware patches provided - by Intel. -------------------------------------------------------------------------------- -**Clean-Up** -------------------------------------------------------------------------------- -To clean only stack modules: - - make clean - -To clean stack modules(i.e. networking) modules & its -dependencies: - - make deepclean - - diff --git a/resource/csdk/connectivity/build/Makefile b/resource/csdk/connectivity/build/Makefile deleted file mode 100644 index b0a6197..0000000 --- a/resource/csdk/connectivity/build/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -#/****************************************************************** -# * -# * Copyright 2014 Samsung Electronics 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. -# * -#******************************************************************/ - -## -# override with `make BUILD=debug` -# override with `make PLATFORM=arduinomega` or `make PLATFORM=arduinodue` -# default to release build -# default to build for linux -BUILD := debug -PLATFORM := linux -TRANSPORT := ALL -ARDUINO_DIR := /usr/share/arduino -APPNAME := casample -OBJ_DIR := ./bin -VERSION_MAJOR := 0 -VERSION_MINOR := 1 -VERSION_PATCH := 0 - -ifeq ($(PLATFORM),tizen) -$(info *******************tizen Build !!******************) -all: - sh tizen/gbsbuild.sh $(TRANSPORT) - -clean: - sh tizen/gbsbuild.sh clean - -else ifeq ($(PLATFORM),arduinomega) -$(info *********ArduinoMega Build!!**********) -all: - sh arduino/build.sh clean $(PLATFORM) $(TRANSPORT) $(ARDUINO_DIR) $(APPNAME) - sh arduino/build.sh make $(PLATFORM) $(TRANSPORT) $(ARDUINO_DIR) $(APPNAME) - -install: - sh arduino/build.sh install $(PLATFORM) $(TRANSPORT) $(ARDUINO_DIR) $(APPNAME) - -clean: - sh arduino/build.sh clean - -else - $(info *********error**********) - $(error Wrong value for PLATFORM !!) -endif - - - diff --git a/resource/csdk/connectivity/build/android/Makefile b/resource/csdk/connectivity/build/android/Makefile deleted file mode 100644 index 038e36b..0000000 --- a/resource/csdk/connectivity/build/android/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -#Assumes ndk directory is at ~/ -#set ndk directory PATH in .bashrc and use the ndk-build directly -#change NDK_PATH to ${your_ndk_path} -NDK_PATH = ~/ndk -NDK_BUILD = $(NDK_PATH)/ndk-build - -BUILD_DIR = $(CURDIR) -APPLICATION_BUILD = $(BUILD_DIR) -ROOT_DIR = $(BUILD_DIR) - -#Clean files -LIBS_DIR = $(ROOT_DIR)/libs -OBJ_DIR = $(ROOT_DIR)/obj - -all: - $(NDK_BUILD) NDK_PROJECT_PATH=$(APPLICATION_BUILD) - -clean : - @$(RM) -rf $(LIBS_DIR) $(OBJ_DIR) diff --git a/resource/csdk/connectivity/build/arduino/Makefile b/resource/csdk/connectivity/build/arduino/Makefile deleted file mode 100644 index 7524a33..0000000 --- a/resource/csdk/connectivity/build/arduino/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -# -# override with `make BUILD=debug` -# override with `make PLATFORM=arduinomega` or `make PLATFORM=arduinodue` -# TRANSPORT can be ETHERNET, WIFI, BT, BLE. Include Corresponding Transport during compilation. For Eg: `make PLATFORM=arduinomega TRANSPORT=BLE -# default to release build -# default to build for arduinomega -# default to build for BLE Transport -BUILD := release -PLATFORM := arduinomega -TRANSPORT := BLE -OBJ_DIR := ./bin -APP_NAME := casample -ARDUINO_PORT := ttyACM0 - -include ./local.properties -include ./$(PLATFORM).properties - -VPATH := $(SDIR_ARD_PLATFORM) - -#Include __ARDUINO_BLE__ flag for BLE Transport. Currently, BLE Sample APP is segregated with this MACRO -ifeq ($(TRANSPORT),BLE) -CFLAGS := -Os -Wall -c -DTB_LOG -DOIC_ARDUINODUE -DINTERFACESAMPLE_ARDUINO -DARDUINO -DOIC_ARDUINODUE -D__ARDUINO__ -DWITH_ARDUINO -D__ARDUINO_BLE__ -DLE_ADAPTER -else ifeq ($(TRANSPORT),WIFI) -CFLAGS := -Os -Wall -c -DTB_LOG -DOIC_ARDUINODUE -DINTERFACESAMPLE_ARDUINO -DARDUINO -DOIC_ARDUINODUE -D__ARDUINO__ -DWITH_ARDUINO -DWIFI_ADAPTER -else -CFLAGS := -Os -Wall -c -DTB_LOG -DOIC_ARDUINODUE -DINTERFACESAMPLE_ARDUINO -DARDUINO -DOIC_ARDUINODUE -D__ARDUINO__ -DWITH_ARDUINO -DETHERNET_ADAPTER -endif - -all: prep_dirs core.a $(APP_NAME).o $(APP_NAME).elf $(APP_NAME).hex - -$(info *********PLATFORM_OBJS!!**********) -core.a: $(PLATFORM_OBJS) - @cd $(OBJ_DIR) && $(AR) -x ../../../lib/libcoap-4.1.1/$(BUILD)/libcoap.a - $(AR) rcs $@ $(CORE_COBJ) $(CORE_CPPOBJ) $(PLATFORM_OBJS) $(OBJ_DIR)/*.o - $(RANLIB) $@ - -prep_dirs: - -mkdir $(OBJ_DIR) - -logger.c.o: logger.c - $(CCPLUS) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIR_PLATFORM) $< -o $@ - -%.c.o: %.c - $(CC) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIR_PLATFORM) $< -o $@ - -%.o: %.c - $(CC) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIR_PLATFORM) $< -o $@ - -%.o: %.cpp - $(CCPLUS) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIR_PLATFORM) $< -o $@ - -%.cpp.o: %.cpp - $(CCPLUS) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIR_PLATFORM) $< -o $@ - -# core.a and $(APP_NAME).cpp.o are combined to generate $(APP_NAME).elf. -# For Integration with Top Layer, we can link top layer with core.a -$(APP_NAME).elf: $(APP_NAME).cpp.o core.a - $(CC) -w -Os -Wl,--gc-sections,--relax -mmcu=atmega2560 -o $@ $^ -L$(ARDUINO_DIR)/libraries -lm - -$(APP_NAME).hex: $(APP_NAME).elf - $(AVR_OBJCOPY) -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $< $(APP_NAME).eep - $(AVR_OBJCOPY) -O ihex -R .eeprom $< $@ - -install: all - $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(APP_NAME).hex:i - - -.PHONY: clean -clean: - @rm -f *.o *.d *.elf *.eep core.a *.hex *.bin *.map *- - @rm -rf $(OBJ_DIR) - - - - diff --git a/resource/csdk/connectivity/build/common.mk b/resource/csdk/connectivity/build/common.mk deleted file mode 100644 index 858dda1..0000000 --- a/resource/csdk/connectivity/build/common.mk +++ /dev/null @@ -1,60 +0,0 @@ -#/****************************************************************** -# * -# * Copyright 2014 Samsung Electronics 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. -# * -#******************************************************************/ - -## -## Definitions -## -SHELL = /bin/bash -PROJECT_NAME = connectivity_abstraction -PROJECT_ROOT_PATH = .. -PROJECT_API_PATH = $(PROJECT_ROOT_PATH)/api -PROJECT_INC_PATH = $(PROJECT_ROOT_PATH)/inc -PROJECT_SRC_PATH = $(PROJECT_ROOT_PATH)/src -PROJECT_COMMON_INC_PATH = $(PROJECT_ROOT_PATH)/common/inc -PROJECT_COMMON_SRC_PATH = $(PROJECT_ROOT_PATH)/common/src -PROJECT_COMMON_PATH = $(PROJECT_ROOT_PATH)/common -PROJECT_OUT_PATH = $(PROJECT_ROOT_PATH)/build/out -PROJECT_LIB_PATH = $(PROJECT_ROOT_PATH)/lib - -## -## macro -## -define MAKE_PROJECT_OUT_PATH - @if [ ! -d $(PROJECT_OUT_PATH) ]; then \ - mkdir $(PROJECT_OUT_PATH); \ - fi -endef - - -## -## Commands -## -CC = gcc -CXX = g++ -RM = rm -rf -CP = cp -MV = mv -AR = ar -LD = ld -LN = ln -CD = cd -RANLIB = ranlib - - diff --git a/resource/csdk/connectivity/build/linux/Makefile b/resource/csdk/connectivity/build/linux/Makefile deleted file mode 100644 index d56e641..0000000 --- a/resource/csdk/connectivity/build/linux/Makefile +++ /dev/null @@ -1,188 +0,0 @@ -#/****************************************************************** -# * -# * Copyright 2014 Samsung Electronics 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. -# * -#******************************************************************/ - -# override with `make BUILD=debug` -# default to release build -# default to build for linux -BUILD = debug -PLATFORM = linux -TRANSPORT = ALL -DTLS = 0 -OBJ_DIR = ./$(BUILD) -VERSION_MAJOR = 0 -VERSION_MINOR = 1 -VERSION_PATCH = 0 - -COMMON_MAKE = common.mk - -include $(COMMON_MAKE) - -#Modify below values to enable/disable the Adapter -#Suffix "NO_" to disable given adapter -EDR = NO_EDR_ADAPTER -WIFI = WIFI_ADAPTER -LE = NO_LE_ADAPTER -ETHERNET = ETHERNET_ADAPTER - -#Add Pre processor definitions - -DEFINE_FLAG = -D$(EDR) -D$(LE) -D$(WIFI) -D$(ETHERNET) -ifeq ($(DTLS),1) -DEFINE_FLAG += -D__WITH_DTLS__ -endif -#Add For memory checking -#DEBUG_FLAG = -DENABLE_MALLOC_DEBUG -#Add Debug flags here -DEBUG_FLAG += -DTB_LOG - -## -## definitions -## -LIB_PREFIX = CA -ETHERNET_ADAPTER = ethernet_adapter -WIFI_ADAPTER = wifi_adapter -BT_ADAPTER = bt_edr_adapter -BLE_ADAPTER = bt_le_adapter -ETHERNET_ADAPTER_PATH = $(PROJECT_SRC_PATH)/$(ETHERNET_ADAPTER)/$(PLATFORM) -ETHERNET_ADAPTER_COMMON_PATH = $(PROJECT_SRC_PATH)/$(ETHERNET_ADAPTER) -WIFI_ADAPTER_PATH = $(PROJECT_SRC_PATH)/$(WIFI_ADAPTER)/$(PLATFORM) -WIFI_ADAPTER_COMMON_PATH = $(PROJECT_SRC_PATH)/$(WIFI_ADAPTER) -BT_ADAPTER_PATH = $(PROJECT_SRC_PATH)/$(BT_ADAPTER)/$(PLATFORM) -BLE_ADAPTER_PATH = $(PROJECT_SRC_PATH)/$(BLE_ADAPTER)/$(PLATFORM) -ADAPTER_UTILS_PATH = $(PROJECT_SRC_PATH)/adapter_util -TARGET = lib$(PROJECT_NAME).so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH) -TARGET_ALIAS = lib$(PROJECT_NAME).so - -## -## libcoap -## -libcoap_build_dir = $(PROJECT_LIB_PATH)/libcoap-4.1.1 - -ifeq ($(DTLS),1) -libtiny_lib_dir = $(PROJECT_LIB_PATH)/extlibs/tinydtls - -LDFLAGS := -L$(libcoap_build_dir) -L$(libtiny_lib_dir) -LDLIBS := -lcoap -ltinydtls -else -LDFLAGS := -L$(libcoap_build_dir) -LDLIBS := -lcoap - -endif -BUILD_FLAG.debug = $(DEFINE_FLAG) $(DEBUG_FLAG) -BUILD_FLAG.release = $(DEFINE_FLAG) -BUILD_FLAG = $(BUILD_FLAG.$(BUILD)) - -DEBUG_DIR = ./debug -RELEASE_DIR = ./release - -## -## file declaration -## -COMPONENT_SRCS := logger.c oic_logger.c oic_console_logger.c oic_malloc.c oic_string.c uqueue.c uarraylist.c umutex.c cathreadpool_pthreads.c -COMPONENT_SRCS += caretransmission.c -COMPONENT_SRCS += caconnectivitymanager.c caremotehandler.c cainterfacecontroller.c camessagehandler.c caqueueingthread.c canetworkconfigurator.c caprotocolmessage.c -COMPONENT_SRCS += caadapterutils.c -COMPONENT_SRCS += caethernetadapter.c cawifiadapter.c caedradapter.c caleadapter.c -COMPONENT_SRCS += cawifiserver.c cawificlient.c cawifinwmonitor.c -COMPONENT_SRCS += caethernetserver.c caethernetclient.c caethernetnwmonitor.c -ifeq ($(DTLS),1) -COMPONENT_SRCS += caadapternetdtls.c -endif -COMPONENT_OBJS = $(COMPONENT_SRCS:%.c=$(OBJ_DIR)/%.o) - -## -## compiler flags -## -#TODO-CA Remove -fstack-protector-all before merging to master -CFLAGS = -g -c -Wall -fstack-protector-all -fPIC `pkg-config --cflags glib-2.0` -LFLAGS = -ldl -lpthread `pkg-config --libs glib-2.0` -IFLAGS = -I$(PROJECT_COMMON_INC_PATH) \ - -I$(PROJECT_API_PATH) \ - -I$(PROJECT_INC_PATH) \ - -I$(ETHERNET_ADAPTER_PATH) \ - -I$(WIFI_ADAPTER_PATH) \ - -I$(BT_ADAPTER_PATH) \ - -I$(BLE_ADAPTER_PATH) \ - -I$(libcoap_build_dir) - -ifeq ($(DTLS),1) - IFLAGS += -I$(libtiny_lib_dir) \ - -I$(PROJECT_SEC_PATH) -endif - -DFLAGS = -D__LINUX__ -DWITH_POSIX $(BUILD_FLAG) - -## -## compile and link rules -## -vpath %.c $(PROJECT_COMMON_SRC_PATH) -vpath %.c $(ADAPTER_UTILS_PATH) -vpath %.c $(ETHERNET_ADAPTER_PATH) -vpath %.c $(ETHERNET_ADAPTER_COMMON_PATH) -vpath %.c $(WIFI_ADAPTER_PATH) -vpath %.c $(WIFI_ADAPTER_COMMON_PATH) -vpath %.c $(BT_ADAPTER_PATH) -vpath %.c $(BLE_ADAPTER_PATH) -vpath %.c $(PROJECT_SRC_PATH) - -$(OBJ_DIR)/%.o: %.c - $(MAKE_OBJ_PATH) - $(CC) -o $@ $(CFLAGS) $(DFLAGS) $(IFLAGS) $< - -all : $(TARGET) - @echo " " - @echo "======================" - @echo " Success!!" - @echo "======================" - -$(TARGET) : $(COMPONENT_OBJS) - cd $(libcoap_build_dir); $(MAKE) - @$(MAKE_PROJECT_OUT_PATH) - @$(CC) -shared -Wl,-soname,$(TARGET) -o $@ $(COMPONENT_OBJS) $(LFLAGS) $(LDFLAGS) $(LDLIBS) - @$(MV) $(TARGET) $(PROJECT_OUT_PATH)/. - @$(CD) $(PROJECT_OUT_PATH); $(MAKE_TARGET_ALIAS) - -clean : - cd $(libcoap_build_dir) && make clean - @$(RM) $(DEBUG_DIR) $(RELEASE_DIR)\ - $(PROJECT_OUT_PATH) - -install : - @$(MAKE_PROJECT_OUT_PATH) - -## -## macros -## -define MAKE_OBJ_PATH - @if [ ! -d $(OBJ_DIR) ]; then \ - mkdir $(OBJ_DIR); \ - fi -endef - -define MAKE_TARGET_ALIAS - if [ ! -f $(TARGET_ALIAS) ]; then \ - $(LN) -s $(TARGET) $(TARGET_ALIAS); \ - fi -endef - -.PHONY: all clean install - - - diff --git a/resource/csdk/connectivity/build/linux/common.mk b/resource/csdk/connectivity/build/linux/common.mk deleted file mode 100644 index 3d8e139..0000000 --- a/resource/csdk/connectivity/build/linux/common.mk +++ /dev/null @@ -1,61 +0,0 @@ -#/****************************************************************** -# * -# * Copyright 2014 Samsung Electronics 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. -# * -#******************************************************************/ - -## -## Definitions -## -SHELL = /bin/bash -PROJECT_NAME = connectivity_abstraction -PROJECT_ROOT_PATH = ../.. -PROJECT_API_PATH = $(PROJECT_ROOT_PATH)/api -PROJECT_INC_PATH = $(PROJECT_ROOT_PATH)/inc -PROJECT_SRC_PATH = $(PROJECT_ROOT_PATH)/src -PROJECT_COMMON_INC_PATH = $(PROJECT_ROOT_PATH)/common/inc -PROJECT_COMMON_SRC_PATH = $(PROJECT_ROOT_PATH)/common/src -PROJECT_COMMON_PATH = $(PROJECT_ROOT_PATH)/common -PROJECT_OUT_PATH = $(PROJECT_ROOT_PATH)/build/out -PROJECT_LIB_PATH = $(PROJECT_ROOT_PATH)/lib -PROJECT_SEC_PATH = $(PROJECT_ROOT_PATH)/../stack/include - -## -## macro -## -define MAKE_PROJECT_OUT_PATH - @if [ ! -d $(PROJECT_OUT_PATH) ]; then \ - mkdir $(PROJECT_OUT_PATH); \ - fi -endef - - -## -## Commands -## -CC = gcc -CXX = g++ -RM = rm -rf -CP = cp -MV = mv -AR = ar -LD = ld -LN = ln -CD = cd -RANLIB = ranlib - - diff --git a/resource/csdk/connectivity/build/tizen/Makefile b/resource/csdk/connectivity/build/tizen/Makefile deleted file mode 100644 index 8e56590..0000000 --- a/resource/csdk/connectivity/build/tizen/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -## -# override with `make BUILD=debug` -# override with `make PLATFORM=arduinomega` or `make PLATFORM=arduinodue` -# default to release build -# default to build for linux -BUILD := debug -PLATFORM := tizen -OBJ_DIR := ./bin -ROOT_DIR := . -VERSION_MAJOR := 0 -VERSION_MINOR := 1 -VERSION_PATCH := 0 -ADAPTER_MACRO := -DWIFI_ADAPTER - -$(info *******************tizen Build !!******************) - -CC=gcc -LIBCOAP=./lib/libcoap-4.1.1/ -LIBCOAP_OBJ_DIR=./lib/libcoap-4.1.1/obj - -TINYDTLS=./lib/extlibs/tinydtls -TINYDTLS_OBJ_DIR=./lib/extlibs/tinydtls/obj - -# TODO : Currently Hardcoded WIFI_ADAPTER. Change it to generic -CFLAGS.debug = -DWITH_POSIX -D__TIZEN__ -Wall -std=c99 -DSLP_SDK_LOG -g -D_GNU_SOURCE -DTIZEN_DEBUG_ENABLE -DTB_LOG $(ADAPTER_MACRO) -CFLAGS.release = -DWITH_POSIX -D__TIZEN__ -Wall -std=c99 -DSLP_SDK_LOG -D_GNU_SOURCE -DTIZEN_DEBUG_ENABLE -DTB_LOG $(ADAPTER_MACRO) -COMPILEFLAG = `pkg-config --cflags --libs capi-network-wifi dlog capi-network-bluetooth glib-2.0` - -# Include files will be copied into a single folder on gbsbuild. -# NO NEED to mention the path explicitly. - -CA_INC = $(ROOT_DIR)/ -DTLS_INC = $(ROOT_DIR)/dtls/ - -INC_DIRS := -I$(CA_INC) -INC_DIRS += -I$(DTLS_INC) - -SRC = $(wildcard *.c) -OBJECTS = $(patsubst %.c, %.o, $(SRC)) - -#Currently compiling libcoap objects. If it's provided by external party. -#Then don't compile, Instead directly extract objects and create liboicinterface.a -all: $(OBJECTS) - $(MAKE) -C $(LIBCOAP) clean - $(MAKE) -C $(LIBCOAP) - -mkdir $(LIBCOAP_OBJ_DIR) - @cd $(LIBCOAP_OBJ_DIR) && $(AR) -x ../libcoap.a - ar rcs liboicinterface.a $(OBJECTS) $(LIBCOAP_OBJ_DIR)/*.o - -%.o : %.c - $(CC) -c $(CFLAGS.$(BUILD)) $(COMPILEFLAG) $(INC_DIRS) $< -o $@ - - -pack: -#$(CC) $(CFLAGS) $(COMPILEFLAG) WiFiInterface.c bt_interface.c tc_interface.c sample_main.c -o sample /usr/lib/liboctbstack.a -lm -pthread - $(info **************************************TEST***************************) -install: -#cp -rf sample ./usr/apps/com.samsung.oicca/bin/sample - -clean: - rm -rf *.o sample - rm -f *.o *.d *.elf *.eep core.a *.hex *.bin *.map *- - rm -rf $(OBJ_DIR) - rm -rf $(LIBCOAP_OBJ_DIR) - diff --git a/resource/csdk/connectivity/lib/libcoap-4.1.1/examples/Makefile b/resource/csdk/connectivity/lib/libcoap-4.1.1/examples/Makefile deleted file mode 100644 index 8ea7b14..0000000 --- a/resource/csdk/connectivity/lib/libcoap-4.1.1/examples/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -# Makefile for libcoap -# -# Copyright (C) 2010,2011 Olaf Bergmann -# -# This file is part of the CoAP library libcoap. Please see -# README for terms of use. - -# the library's version -VERSION:=4.1.1 - -# tools - -SHELL = /bin/sh -MKDIR = mkdir - -abs_builddir = /connectivity/connectivity/src/bt_edr_adapter/libcoap-4.1.1/examples -top_builddir = .. -top_srcdir = .. -# files and flags -PROGRAMS:=coap-server coap-client rd etsi_iot_01 #tiny -SOURCES:= tiny.c client.c server.c rd.c etsi_iot_01.c -OBJECTS:= $(patsubst %.c, %.o, $(SOURCES)) -#CFLAGS:=-g -Wall -ansi -pedantic -I.. -CFLAGS:=-g -Wall -g -O2 -CPPFLAGS:=-I$(top_srcdir) -DWITH_POSIX -DISTDIR?=$(top_builddir)/libcoap-4.1.1 -FILES:=Makefile.in $(SOURCES) -LDFLAGS:=-L$(top_builddir) -LDLIBS:=-lcoap -libcoap =$(top_builddir)/libcoap.a - -.PHONY: clean distclean - -.SUFFIXES: -.SUFFIXES: .c .o - -all: $(PROGRAMS) - -check: - echo DISTDIR: $(DISTDIR) - echo top_builddir: $(top_builddir) - -tiny: tiny.o $(libcoap) - $(CC) -o $@ $< $(LDFLAGS) - -coap-client: client.o $(libcoap) - $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS) - -coap-server: server.o $(libcoap) - $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS) - -clean: - @rm -f $(PROGRAMS) $(OBJECTS) - -distclean: clean - @rm -rf $(DISTDIR) - @rm -f *~ - -dist: $(FILES) - test -d $(DISTDIR)/examples || mkdir $(DISTDIR)/examples - cp $(FILES) $(DISTDIR)/examples - diff --git a/resource/csdk/connectivity/lib/libcoap-4.1.1/tests/Makefile b/resource/csdk/connectivity/lib/libcoap-4.1.1/tests/Makefile deleted file mode 100644 index 1c11937..0000000 --- a/resource/csdk/connectivity/lib/libcoap-4.1.1/tests/Makefile +++ /dev/null @@ -1,58 +0,0 @@ -# Makefile for libcoap -# -# Copyright (C) 2012 Olaf Bergmann -# -# This file is part of the CoAP library libcoap. Please see -# README for terms of use. - -# the library's version -VERSION:=4.1.1 - -# tools - -SHELL = /bin/sh -MKDIR = mkdir - -abs_builddir = /connectivity/connectivity/src/bt_edr_adapter/libcoap-4.1.1/tests -top_builddir = .. -top_srcdir = .. -# files and flags -ifneq (,) - PROGRAMS:=testdriver -endif -SOURCES:= test_uri.c test_options.c test_pdu.c test_error_response.c \ - test_sendqueue.c test_wellknown.c -HEADERS:=$(SOURCES:.c=.h) -OBJECTS:= $(patsubst %.c, %.o, $(SOURCES)) -CFLAGS:=-g -Wall -g -O2 -CPPFLAGS:=-I$(top_srcdir) -DWITH_POSIX -DISTDIR?=$(top_builddir)/libcoap-4.1.1 -FILES:=Makefile.in testdriver.c $(HEADERS) $(SOURCES) -LDFLAGS:=-L$(top_builddir) -LDLIBS:=-lcunit -libcoap =$(top_builddir)/libcoap.a - -.PHONY: clean distclean - -.SUFFIXES: -.SUFFIXES: .c .o - -all: $(PROGRAMS) - -check: - echo DISTDIR: $(DISTDIR) - echo top_builddir: $(top_builddir) - -testdriver: $(OBJECTS) $(libcoap) - -clean: - @rm -f $(PROGRAMS) $(OBJECTS) - -distclean: clean - @rm -rf $(DISTDIR) - @rm -f *~ - -dist: $(FILES) - test -d $(DISTDIR)/tests || mkdir $(DISTDIR)/tests - cp $(FILES) $(DISTDIR)/tests - diff --git a/resource/csdk/connectivity/samples/android/sample_service/Makefile b/resource/csdk/connectivity/samples/android/sample_service/Makefile deleted file mode 100644 index 5fc1131..0000000 --- a/resource/csdk/connectivity/samples/android/sample_service/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -#Assumes ndk directory is at ~/ -#set ndk directory PATH in .bashrc and use the ndk-build directly -NDK_PATH = ~/ndk -NDK_BUILD = $(NDK_PATH)/ndk-build - -BUILD_DIR = $(CURDIR) -APPLICATION_BUILD = $(BUILD_DIR) -ROOT_DIR = $(BUILD_DIR) - -#Clean files -LIBS_DIR = $(ROOT_DIR)/libs -OBJ_DIR = $(ROOT_DIR)/obj - -all: - $(NDK_BUILD) NDK_PROJECT_PATH=$(APPLICATION_BUILD) - -clean : - @$(RM) -rf $(LIBS_DIR) $(OBJ_DIR) diff --git a/resource/csdk/connectivity/samples/linux/Makefile b/resource/csdk/connectivity/samples/linux/Makefile deleted file mode 100644 index 96cb22a..0000000 --- a/resource/csdk/connectivity/samples/linux/Makefile +++ /dev/null @@ -1,122 +0,0 @@ -#/****************************************************************** -# * -# * Copyright 2014 Samsung Electronics 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. -# * -#******************************************************************/ - -## -## Definitions -## -SHELL = /bin/bash -PROJECT_NAME = connectivity_abstraction -PROJECT_ROOT_PATH = ../.. -PROJECT_API_PATH = $(PROJECT_ROOT_PATH)/api -PROJECT_INC_PATH = $(PROJECT_ROOT_PATH)/inc -PROJECT_SRC_PATH = $(PROJECT_ROOT_PATH)/src -PROJECT_COMMON_PATH = $(PROJECT_ROOT_PATH)/common -PROJECT_SEC_PATH = $(PROJECT_ROOT_PATH)/../stack/include -PROJECT_OUT_PATH = $(PROJECT_ROOT_PATH)/build/out -COMPONENT_OUT_PATH = ./out -COMPONENT_OBJ_PATH = ./.objs - -TARGET = sample_main - -## -## Commands -## -CC = gcc -CXX = g++ -RM = rm -rf -CP = cp -MV = mv -AR = ar -LD = ld -LN = ln -CD = cd -RANLIB = ranlib - -## -## file declaration -## -COMPONENT_SRCS = sample_main.c \ - -COMPONENT_OBJS = $(COMPONENT_SRCS:%.c=$(COMPONENT_OBJ_PATH)/%.o) - -## -## compiler flags -## -LIBS = -L$(PROJECT_OUT_PATH) -lconnectivity_abstraction - -CFLAGS = -g -c -Wall -fPIC - -LFLAGS = -ldl -lpthread - -IFLAGS = -I$(PROJECT_API_PATH) -I$(PROJECT_SEC_PATH) - -DFLAGS = -DLINUX -DTB_LOG - -## -## compile and link rules -## -vpath %.c ./ - -$(COMPONENT_OBJ_PATH)/%.o: %.c - @$(MAKE_OBJ_PATH) - $(CC) -o $@ $(CFLAGS) $(DFLAGS) $(IFLAGS) $< - -all : $(TARGET) - @echo " " - @echo "======================" - @echo " Success!!" - @echo "======================" - -$(TARGET) : $(COMPONENT_OBJS) - @$(MAKE_COMPONENT_OUT_PATH) - $(CC) -o $@ $(COMPONENT_OBJS) $(LIBS) $(LFLAGS) - @$(MV) $(TARGET) $(COMPONENT_OUT_PATH)/. - -clean : - @$(RM) $(COMPONENT_OBJ_PATH) \ - $(COMPONENT_OUT_PATH) - -install : - @$(MAKE_COMPONENT_OUT_PATH) - @$(CP) $(PROJECT_OUT_PATH)/* $(COMPONENT_OUT_PATH)/. - -## -## macros -## -define MAKE_OBJ_PATH - @if [ ! -d $(COMPONENT_OBJ_PATH) ]; then \ - mkdir $(COMPONENT_OBJ_PATH); \ - fi -endef - - -## -## macro -## -define MAKE_COMPONENT_OUT_PATH - @if [ ! -d $(COMPONENT_OUT_PATH) ]; then \ - mkdir $(COMPONENT_OUT_PATH); \ - fi -endef - -.PHONY: all clean install - - - diff --git a/resource/csdk/connectivity/samples/linux/threadpool/Makefile b/resource/csdk/connectivity/samples/linux/threadpool/Makefile deleted file mode 100644 index 20f48c7..0000000 --- a/resource/csdk/connectivity/samples/linux/threadpool/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -CC=gcc -ROOT_DIR = ../../.. -INC_DIR := -I$(ROOT_DIR)/api -I$(ROOT_DIR)/inc -I$(ROOT_DIR)/common/inc -SRC_DIR := $(ROOT_DIR)/common/src/ -CFLAGS = -Wall - -OUT = threadpool - -all: - $(CC) $(CFLAGS) $(INC_DIR) $(COMPILEFLAGS) $(SRC_DIR)cathreadpool_pthreads.c $(SRC_DIR)umutex.c $(SRC_DIR)/logger.c $(SRC_DIR)/oic_malloc.c main.c -o $(OUT) $(LDFLAGS) -clean: - rm -f $(OUT) - diff --git a/resource/csdk/connectivity/samples/tizen/Makefile b/resource/csdk/connectivity/samples/tizen/Makefile deleted file mode 100644 index 4c4cf69..0000000 --- a/resource/csdk/connectivity/samples/tizen/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -# -# override with `make BUILD=debug` -# override with `make PLATFORM=arduinomega` or `make PLATFORM=arduinodue` -# default to release build -# default to build for linux -BUILD := release -PLATFORM := linux -ADAPTER_MACRO := -DWIFI_ADAPTER_TEST - -ifeq ($(PLATFORM),linux) -$(info *******************linux Build !!******************) - -CC=gcc - -ROOT_DIR = inc/ -INC_DIRS := -I$(ROOT_DIR)/ - -#CFLAGS=$(INC_DIRS) -std=c99 -DWITH_POSIX -#CFLAGS=-std=c99 -#CFLAGS=$(INC_DIRS) -std=c99 -DWITH_POSIX -g -CFLAGS=$(INC_DIRS) -DWITH_POSIX -D__TIZEN__ $(ADAPTER_MACRO) -COMPILEFLAG = `pkg-config --cflags --libs com.oic.ca capi-network-wifi gobject-2.0 glib-2.0 dlog capi-network-bluetooth` - -OBJECTS := casample.o - -all: $(OBJECTS) - $(CC) casample.o -o ca_sample /usr/lib/liboicinterface.a -lm -lpthread -lrt -ldl -lstdc++ -lgobject-2.0 -lgio-2.0 -lglib-2.0 -lcapi-network-wifi -ldlog -lcapi-network-bluetooth -casample.o: casample.c - $(CC) $(CFLAGS) $(COMPILEFLAG) -c casample.c -o casample.o -pack: -#$(CC) $(CFLAGS) $(COMPILEFLAG) wifi_interface.c bt_interface.c tc_interface.c sample_main.c -o sample /usr/lib/liboctbstack.a -lm - $(info **************************************TEST***************************) -install: -#cp -rf sample ./usr/apps/com.samsung.oicca/bin/sample - -clean: - rm -rf *.o ca_sample - -else ifeq ($(PLATFORM),arduinodue) -$(info *********Arduinodue Build!!**********) - -#Make Compilation Script for arduino - - -else - $(info *********error**********) - $(error Wrong value for PLATFORM !!) -endif - diff --git a/resource/csdk/logger/makefile b/resource/csdk/logger/makefile deleted file mode 100644 index a266fd2..0000000 --- a/resource/csdk/logger/makefile +++ /dev/null @@ -1,122 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=release` -# default to release build -BUILD := release -PLATFORM := linux - -ROOT_DIR = .. - -# You must create the file "local.properties" on your local machine which contains any local paths, etc -# local_settings.mk should NOT be committed to repo -include $(ROOT_DIR)/local.properties -# GTEST_DIR contains the path to Google Test libs and must be defined in local.properties -# Example: -# GTEST_DIR := /home/johndoe/utils/gtest-1.7.0 - -# NOTE: to run app, make sure that LD_LIBRARY_PATH env variable -# contains $(GTEST_DIR)/lib/.libs - -CC := gcc -CXX := g++ - -PROG := loggertest - -SRC_DIR := ./src -TEST_DIR:= ./test -INC_DIR := ./include - -CC_FLAGS.debug := -O0 -g3 -Wall -c -fmessage-length=0 -pedantic -std=c99 -fpic -DTB_LOG -CC_FLAGS.release := -Os -Wall -c -fmessage-length=0 -std=c99 -fpic -CC_FLAGS := $(CC_FLAGS.$(BUILD)) - -CXX_FLAGS.debug := -O0 -g3 -Wall -c -fmessage-length=0 -pedantic -std=c++0x -fpic -DTB_LOG -CXX_FLAGS.release := -Os -Wall -c -fmessage-length=0 -std=c++0x -fpic -CXX_FLAGS := $(CXX_FLAGS.$(BUILD)) - -INC := -I$(SRC_DIR) -INC += -I$(TEST_DIR) -INC += -I$(INC_DIR) -INC += -I$(GTEST_DIR)/include - - -# using make's computed variables to select object and bin folders -# depending on the build type -OBJ_DIR.debug := ./obj/debug -OBJ_DIR.release := ./obj/release -OBJ_DIR := $(OBJ_DIR.$(BUILD)) - -BIN_DIR.debug := ./bin/debug -BIN_DIR.release := ./bin/release -BIN_DIR := $(BIN_DIR.$(BUILD)) - -C_FILES := $(wildcard $(SRC_DIR)/*.c) -#CPP_FILES := $(wildcard $(SRC_DIR)/*.cpp) -CPP_FILES := $(wildcard $(TEST_DIR)/*.cpp) -OBJ_FILES := $(addprefix $(OBJ_DIR)/,$(notdir $(CPP_FILES:.cpp=.o) $(C_FILES:.c=.o))) -H_FILES := $(wildcard $(TEST_DIR)/*.h) -H_FILES += $(wildcard $(INC_DIR)/*.h) -LD_FLAGS := -L/usr/lib -LD_FLAGS += -L$(GTEST_DIR)/lib/.libs - - -LIBS := -lpthread -LIBS += -lgtest -LIBS += -lgtest_main - - -all: $(PROG) - -$(PROG): $(OBJ_FILES) - $(CXX) -o $@ $^ $(LD_FLAGS) $(LIBS) - mv ./$(PROG) ./$(BIN_DIR) - -#$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(SRC_DIR)/%.h $(H_FILES) -# $(CC) $(CC_FLAGS) $(INC) -c -o $@ $< - -$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(INC_DIR)/%.h $(H_FILES) - $(CC) $(CC_FLAGS) $(INC) -c -o $@ $< - -$(OBJ_DIR)/%.o: $(TEST_DIR)/%.cpp $(H_FILES) - $(CXX) $(CXX_FLAGS) $(INC) -c -o $@ $< - - -.PHONY: clean -clean : - rm -rf ./obj/debug/* - rm -rf ./obj/release/* - rm -rf ./lib/debug/* - rm -rf ./lib/release/* - rm -rf ./bin/debug/* - rm -rf ./bin/release/* - rm -rf ./test/tst_*.txt - - -.PHONY: print_vars - -print_vars: - @echo "" - @echo 'BUILD = '$(value BUILD) - @echo 'INC = '$(value INC) - @echo 'CPP_FILES = '$(value CPP_FILES) - @echo 'LIBS = '$(value LIBS) - - diff --git a/resource/csdk/makefile b/resource/csdk/makefile deleted file mode 100755 index 28d66a1..0000000 --- a/resource/csdk/makefile +++ /dev/null @@ -1,228 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# override with `make PLATFORM=arduinomega` or `make PLATFORM=arduinodue` -# default to release build -# default to build for linux -# default to ETHERNET for transport -BUILD := release -PLATFORM := linux -TRANSPORT := ETHERNET - -# override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield -ARDUINOWIFI := 0 -CA_INT_DTLS := 0 - -ifeq ($(ROOT_DIR), ) -ROOT_DIR = ./ -endif - -PLATFORM_TYPE = linux - -ifeq ($(PLATFORM),linux) - CXX=g++ - CC=gcc - AR=ar - RANLIB=ranlib - CFLAGS_PLATFORM = -DWITH_POSIX -std=gnu99 - PLATFORM_TYPE=linux -else ifeq ($(PLATFORM),arduinomega) - include local.properties - include $(PLATFORM).properties - CC=$(ARDUINO_TOOLS_DIR)/avr-g++ - ifeq ($(wildcard $(ARDUINO_DIR)/libraries/Time/Time/),) - $(error Arduino Time library needs to be moved from /libraries/Time \ - to /libraries/Time/Time. You may need to create \ - /libraries/Time/Time directory. Please refer to the wiki or readme \ - for more information) - endif - PLATFORM_TYPE=arduino -else ifeq ($(PLATFORM),arduinodue) - include local.properties - include $(PLATFORM).properties - CC=$(ARDUINO_TOOLS_DIR)/arm-none-eabi-g++ - PLATFORM_TYPE=arduino -else - $(error Wrong value for PLATFORM !!) -endif - -ifeq ($(PLATFORM_TYPE),arduino) - ifeq ($(ARDUINOWIFI),0) - ARDUINO_SHIELD_TYPE := "/ethernet_shield" - else ifeq ($(ARDUINOWIFI), 1) - ARDUINO_SHIELD_TYPE := "/wifi_shield" - endif - PLATFORM_SPECIFIC_BACKOUT:= ../../../../ -else - PLATFORM_SPECIFIC_BACKOUT := ../../../ -endif - -ifeq ($(OUT_DIR), ) -OUT_DIR = $(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD) -endif - -ifeq ($(OBJ_DIR), ) -OBJ_DIR = $(OUT_DIR)/obj -endif - -OCLOGGER_DIR = logger -OC_LOG_DIR = ../oc_logger -OCRANDOM_DIR = ocrandom -OCTBSTACK_DIR = stack -OCMALLOC_DIR = ocmalloc -OCSECURITY_DIR = security -EXTLIBS_DIR = ../../extlibs -CJSON_DIR = $(EXTLIBS_DIR)/cjson -TIMER_DIR = $(EXTLIBS_DIR)/timer -TINYDTLS_DIR = $(EXTLIBS_DIR)/tinydtls -CONNECTIVITY_DIR = connectivity - -OCTBSTACK_SRC = $(OCTBSTACK_DIR)/src -OCMALLOC_SRC = $(OCMALLOC_DIR)/src -OCSECURITY_SRC = $(OCSECURITY_DIR)/src -CJSON_SRC = $(CJSON_DIR) -CONNECTIVITY_SRC = $(CONNECTIVITY_DIR) -OCLOGGER_SRC = $(OCLOGGER_DIR)/src -OCRANDOM_SRC = $(OCRANDOM_DIR)/src -OCLOGGER_INC = $(OCLOGGER_DIR)/include -OC_LOG_INC = $(OC_LOG_DIR)/include -OCRANDOM_INC = $(OCRANDOM_DIR)/include -OCTBSTACK_INC = $(OCTBSTACK_DIR)/include -OCMALLOC_INC = $(OCMALLOC_DIR)/include -OCSECURITY_INC = $(OCSECURITY_DIR)/include -CJSON_INC = $(CJSON_DIR) -CONNECTIVITY_INC = $(CONNECTIVITY_DIR)/inc -LIBCOAP_INC = $(CONNECTIVITY_DIR)/lib/libcoap-4.1.1 - -INC_DIRS := -I$(OCLOGGER_INC) -INC_DIRS += -I$(OC_LOG_INC) -INC_DIRS += -I$(OCRANDOM_INC) -INC_DIRS += -I$(OCMALLOC_INC) -INC_DIRS += -I$(OCSECURITY_INC) -INC_DIRS += -I$(OCSECURITY_INC)/internal -INC_DIRS += -I$(OCTBSTACK_INC) -INC_DIRS += -I$(OCTBSTACK_INC)/internal -INC_DIRS += -I$(CJSON_INC) -INC_DIRS += -I$(CONNECTIVITY_INC) -INC_DIRS += -I$(CONNECTIVITY_DIR)/api -INC_DIRS += -I$(LIBCOAP_INC) - -# TODO-CA Remove -fstack-protector-all before merging to master -CC_FLAGS.debug := -O0 -g3 -Wall -fstack-protector-all -c -fmessage-length=0 -pedantic -fpic -DTB_LOG -# TODO-CA Remove -fstack-protector-all before merging to master -CC_FLAGS.release := -Os -Wall -fstack-protector-all -c -fmessage-length=0 -fpic - -CFLAGS += $(CC_FLAGS.$(BUILD)) $(INC_DIRS) $(CFLAGS_PLATFORM) $(INC_DIR_PLATFORM) - -CJSON_SOURCES := $(CJSON_SRC)/cJSON.c -TIMER_SOURCES := $(TIMER_SRC)/timer.c - -OCTBSTACK_SOURCES := $(OCTBSTACK_SRC)/ocstack.c -OCTBSTACK_SOURCES += $(OCTBSTACK_SRC)/occlientcb.c -OCTBSTACK_SOURCES += $(OCTBSTACK_SRC)/ocresource.c -OCTBSTACK_SOURCES += $(OCTBSTACK_SRC)/ocobserve.c -OCTBSTACK_SOURCES += $(OCTBSTACK_SRC)/ocserverrequest.c -OCTBSTACK_SOURCES += $(OCTBSTACK_SRC)/occollection.c -OCTBSTACK_SOURCES += $(OCTBSTACK_SRC)/oicgroup.c -OCTBSTACK_SOURCES += $(OCSECURITY_SRC)/ocsecurity.c -OCTBSTACK_SOURCES += $(OCMALLOC_SRC)/ocmalloc.c -OCTBSTACK_SOURCES += $(OCLOGGER_SRC)/logger.c -OCTBSTACK_SOURCES += $(OCRANDOM_SRC)/ocrandom.c - -SOURCES := $(CJSON_SOURCES) -SOURCES += $(TIMER_SOURCES) -SOURCES += $(OCTBSTACK_SOURCES) - -all: objdirs obj_build ca liboctbstack.a - -buildScript_all: objdirs obj_build ca liboctbstack.a - -objdirs: - mkdir -p $(PLATFORM) - mkdir -p $(PLATFORM)/$(ARDUINO_SHIELD_TYPE) - mkdir -p $(OUT_DIR) - mkdir -p $(OBJ_DIR) - -obj_build: - @echo "Building $@" - # Output all *.o files to $(OUT_DIR)/$(BUILD)/$(OBJ_DIR) - $(foreach source,$(SOURCES), $(CC) $(CFLAGS) $(source) -o $(patsubst %.c, %.o, $(patsubst %, $(OBJ_DIR)/%, $(notdir $(source))));) - -ca: - @echo "Building $@" - ifeq ($(PLATFORM),linux) - @cd $(CONNECTIVITY_SRC)/lib/libcoap-4.1.1 && $(MAKE) - @cd $(CONNECTIVITY_SRC)/build/linux && $(MAKE) "BUILD=$(BUILD)" "PLATFORM=linux" - @cd $(CONNECTIVITY_SRC)/samples/linux && $(MAKE) - else - @cd $(CONNECTIVITY_SRC)/build/ && $(MAKE) "PLATFORM=$(PLATFORM)" "ARDUINO_DIR=$(ARDUINO_DIR)" "TRANSPORT=$(TRANSPORT)" - endif -liboctbstack.a: - @echo "Building $@" - $(AR) -r $(OUT_DIR)/$@ $(OBJ_DIR)/*.o - - ifeq ($(CA_INT_DTLS),0) - ifeq ($(PLATFORM),linux) - ifneq ($(wildcard $(TINYDTLS_DIR)/libtinydtls.a),) - $(info "Building liboctbstack with DTLS support") - mkdir -p $(OBJ_DIR)/tinydtls - @cd $(OBJ_DIR)/tinydtls && $(AR) -x ../$(PLATFORM_SPECIFIC_BACKOUT)$(TINYDTLS_DIR)/libtinydtls.a - $(AR) -q $(OUT_DIR)/$@ $(OBJ_DIR)/tinydtls/*.o - endif - endif - endif - -.PHONY: clean print_vars - -clean: legacy_clean - -rm -rf linux - -rm -rf arduinomega - -rm -rf arduinodue - @cd $(CONNECTIVITY_SRC)/build/ && $(MAKE) clean "PLATFORM=arduinomega" - @cd $(CONNECTIVITY_SRC)/samples/linux && $(MAKE) "clean" - -deepclean: legacy_deepclean - -rm -rf linux - -rm -rf arduinomega - -rm -rf arduinodue - -legacy_clean: - @echo "Cleaning all." - rm -f $(OBJ_DIR)/$(BUILD)/*.o - rm -f $(ROOT_DIR)/$(BUILD)/liboctbstack.a - cd $(CONNECTIVITY_SRC)/lib/libcoap-4.1.1 && $(MAKE) clean - cd $(CONNECTIVITY_SRC)/build/linux && $(MAKE) clean - cd $(CONNECTIVITY_SRC)/samples/linux && $(MAKE) clean - rm -rf $(OBJ_DIR) - rm -rf release - rm -rf debug - -legacy_deepclean: - @echo "Deep-Cleaning all." - rm -f $(OBJ_DIR)/$(BUILD)/*.o - rm -f $(ROOT_DIR)/liboctbstack.a - cd $(CONNECTIVITY_SRC)/lib/libcoap-4.1.1 && $(MAKE) clean - cd $(CONNECTIVITY_SRC)/build/linux && $(MAKE) clean - cd $(CONNECTIVITY_SRC)/samples/linux && $(MAKE) clean - rm -rf $(OBJ_DIR) - rm -rf release - rm -rf debug - diff --git a/resource/csdk/ocmalloc/test/linux/makefile b/resource/csdk/ocmalloc/test/linux/makefile deleted file mode 100644 index 5beaea8..0000000 --- a/resource/csdk/ocmalloc/test/linux/makefile +++ /dev/null @@ -1,99 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release -PLATFORM := linux -CC := g++ - -ifeq ($(ROOT_DIR), ) -ROOT_DIR = $(PWD)/../../.. -endif - -# You must create the file "local.properties" on your local machine which contains any local paths, etc -# local.properties should NOT be committed to repo -include $(ROOT_DIR)/local.properties -# GTEST_DIR contains the path to Google Test libs and must be defined in local.properties -# Example: -# GTEST_DIR := /home/johndoe/utils/gtest-1.7.0 - -# NOTE: to run app, make sure that LD_LIBRARY_PATH env variable -# contains $(GTEST_DIR)/lib/.libs - -OUT_DIR := $(PWD)/$(BUILD) -OBJ_DIR := $(OUT_DIR)/obj - - -OUT_DIR := $(PWD) - -OCLOGGER_DIR = $(ROOT_DIR)/logger -OCMALLOC_DIR = $(ROOT_DIR)/ocmalloc -OCRANDOM_DIR = $(ROOT_DIR)/ocrandom -OCTBSTACK_DIR = $(ROOT_DIR)/stack - -OCLOGGER_INC = $(OCLOGGER_DIR)/include -OCMALLOC_INC = $(OCMALLOC_DIR)/include -OCRANDOM_INC = $(OCRANDOM_DIR)/include -OCTBSTACK_INC = $(OCTBSTACK_DIR)/include - -INC_DIRS := -I$(OCLOGGER_INC) -INC_DIRS += -I$(OCMALLOC_INC) -INC_DIRS += -I$(OCRANDOM_INC) -INC_DIRS += -I$(OCTBSTACK_INC) -INC_DIRS += -I$(OCTBSTACK_INC)/internal -INC_DIRS += -I$(GTEST_DIR)/include - -CC_FLAGS.debug := -g -O0 -g3 -Wall -ffunction-sections -fdata-sections -fno-exceptions \ - -std=c++0x -pedantic $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) -DTB_LOG -CC_FLAGS.release := -Os -Wall -fdata-sections -Wl,--gc-sections -Wl,-s -fno-exceptions \ - -std=c++0x $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) - -LDLIBS += -loctbstack -lpthread -CPPFLAGS += $(CC_FLAGS.$(BUILD)) $(LDLIBS) $(GTEST_DIR)/lib/.libs/libgtest.a \ - $(GTEST_DIR)/lib/.libs/libgtest_main.a - -SOURCES := unittest.cpp - -OBJECTS:= $(patsubst %.c, $(OBJ_DIR)/%.o, $(SOURCES)) - -PROGRAMS := unittest - -all: prep_dirs $(OBJECTS) $(PROGRAMS) - -prep_dirs: - -mkdir -p $(OUT_DIR) - -mkdir -p $(OBJ_DIR) - -$(OBJ_DIR)/%.o: %.cpp - $(CC) -c $(CPPFLAGS) $< -o $@ - -unittest: $(OBJ_DIR)/unittest.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -.PHONY: clean - -clean: legacy_clean - -rm -rf release - -rm -rf debug - -legacy_clean: - rm -f *.o $(PROGRAMS) - diff --git a/resource/csdk/ocrandom/test/android/makefile b/resource/csdk/ocrandom/test/android/makefile deleted file mode 100644 index 6f3f564..0000000 --- a/resource/csdk/ocrandom/test/android/makefile +++ /dev/null @@ -1,130 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=release` -# default to debug build -BUILD := debug - -# You must create the file "local.propertiessudo" on your local machine which contains any local paths, etc -# local_settings.mk should NOT be committed to repo -include ../../local.properties -# GTEST_DIR contains the path to Google Test libs and must be defined in local.properties -# Example: -# GTEST_DIR := /home/johndoe/utils/gtest-1.7.0 - -GTEST_DIR := $(GTEST_DIR_ANDROID) - -# NOTE: to run app, make sure that LD_LIBRARY_PATH env variable -# contains $(GTEST_DIR)/lib/.libs - -CC := $(ANDROID_NDK)/arm-linux-androideabi-gcc -CXX := $(ANDROID_NDK)/arm-linux-androideabi-g++ - -PROG := randomtest - -SRC_DIR := ../../src -TEST_DIR:= ../../test/android -INC_DIR := ../../include - -#CC_FLAGS.debug := -O0 -g3 -Wall -c -fmessage-length=0 -pedantic -std=c99 -fpic -D TB_LOG -CC_FLAGS.debug := -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions -D TB_LOG -#CC_FLAGS.release := -O0 -g3 -Wall -c -fmessage-length=0 -std=c99 -fpic -CC_FLAGS := $(CC_FLAGS.$(BUILD)) - -#CXX_FLAGS.debug := -O0 -g3 -Wall -c -fmessage-length=0 -pedantic -std=c++0x -fpic -D TB_LOG -CXX_FLAGS.debug := -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions -D TB_LOG -#CXX_FLAGS.release := -O0 -g3 -Wall -c -fmessage-length=0 -std=c++0x -fpic -CXX_FLAGS := $(CXX_FLAGS.$(BUILD)) - -CFLAGS_ANDROID := -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -DGTEST_HAS_PTHREAD=0 - -INC := -I$(SRC_DIR) -INC += -I$(TEST_DIR) -INC += -I$(INC_DIR) -INC += -I$(GTEST_DIR)/include - - -# using make's computed variables to select object and bin folders -# depending on the build type -OBJ_DIR.debug := ./obj/debug -OBJ_DIR.release := ./obj/release -OBJ_DIR := $(OBJ_DIR.$(BUILD)) - -BIN_DIR.debug := ./bin/debug -BIN_DIR.release := ./bin/release -BIN_DIR := $(BIN_DIR.$(BUILD)) - -C_FILES := $(wildcard $(SRC_DIR)/*.c) -#CPP_FILES := $(wildcard $(SRC_DIR)/*.cpp) -CPP_FILES := $(wildcard $(TEST_DIR)/*.cpp) -OBJ_FILES := $(addprefix $(OBJ_DIR)/,$(notdir $(CPP_FILES:.cpp=.o) $(C_FILES:.c=.o))) -H_FILES := $(wildcard $(TEST_DIR)/*.h) -H_FILES += $(wildcard $(INC_DIR)/*.h) -LD_FLAGS := -L/usr/lib -LD_FLAGS += -L$(GTEST_DIR)/lib/.libs -LDFLAGS_ANDROID := -march=armv7-a -Wl,--fix-cortex-a8 - -#LIBS := -lpthread -#LIBS := -lgtest -#LIBS += -lgtest_main - -LIBS = $(GTEST_DIR)/lib/.libs/libgtest.a $(GTEST_DIR)/lib/.libs/libgtest_main.a -#LIBS = libgtest.a libgtest_main.a - -all: $(PROG) - -$(PROG): $(OBJ_FILES) - mkdir -p $(BIN_DIR) - $(CXX) -o $@ $^ $(LD_FLAGS) $(LDFLAGS_ANDROID) $(LIBS) - mv ./$(PROG) ./$(BIN_DIR) - -$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(INC_DIR)/%.h $(H_FILES) - mkdir -p $(OBJ_DIR) - $(CC) $(CC_FLAGS) $(CFLAGS_ANDROID) $(INC) -c -o $@ $< - -$(OBJ_DIR)/%.o: $(TEST_DIR)/%.cpp $(H_FILES) - mkdir -p $(OBJ_DIR) - $(CXX) $(CXX_FLAGS) $(CFLAGS_ANDROID) $(INC) -c -o $@ $< - -install: all -# adb remount - adb push $(BIN_DIR)/$(PROG) /data/local/tmp - -.PHONY: clean -clean : - rm -rf ./obj/debug/* - rm -rf ./obj/release/* - rm -rf ./lib/debug/* - rm -rf ./lib/release/* - rm -rf ./bin/debug/* - rm -rf ./bin/release/* - rm -rf ./test/tst_*.txt - - -.PHONY: print_vars - -print_vars: - @echo "" - @echo 'BUILD = '$(value BUILD) - @echo 'INC = '$(value INC) - @echo 'CPP_FILES = '$(value CPP_FILES) - @echo 'LIBS = '$(value LIBS) - - diff --git a/resource/csdk/ocrandom/test/arduino/makefile b/resource/csdk/ocrandom/test/arduino/makefile deleted file mode 100644 index c0713e0..0000000 --- a/resource/csdk/ocrandom/test/arduino/makefile +++ /dev/null @@ -1,161 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# Override with `make BUILD=release` -# default to debug build -BUILD := debug -PLATFORM := arduinomega - -# You must create the file "local.propertiessudo" on your local machine which contains any local paths, etc -# local_settings.mk should NOT be committed to repo -ROOT_DIR = ../../.. -include $(ROOT_DIR)/local.properties - -# Compilers -CC := avr-gcc -CXX := avr-g++ -AR := avr-ar -OBJCopy := avr-objcopy - -# Name of testing application -PROG := randomtest -C_COMPONENTS_DIR := ocrandom - -# Folders that contain C source code -C_SRC_DIR := $(foreach d, $(C_COMPONENTS_DIR),../../../$d/src) - -#Folders that contain C source code related to arduino -C_SRC_DIR_ARDUINO := $(ARDUINO_DIR)/hardware/arduino/cores/arduino - -#Folders that contain CPP source code -CPP_SRC_DIR := ../../test/arduino - -#Folders that contain CPP source code related to arduino -CPP_SRC_DIR_ARDUINO := $(ARDUINO_DIR)/hardware/arduino/cores/arduino - -# Folders that contain Headers -TEMP_INC_DIR := $(foreach d, $(C_COMPONENTS_DIR),../../../$d/include) -TEMP_INC_DIR2 := $(foreach d, $(CXX_COMPONENTS_DIR),../../../$d/include) -INC_DIR := $(TEMP_INC_DIR) $(TEMP_INC_DIR2) -INC_DIR += $(ARDUINO_DIR)/hardware/arduino/cores/arduino -INC_DIR += $(ARDUINO_DIR)/hardware/arduino/variants/mega -INC_CMD = $(foreach d, $(INC_DIR), -I$d) - -# Compiler flags specific to arduino -ARDUINO_FLAGS = -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -MMD - -# Compiler flags -CC_FLAGS.debug := -c -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions -std=c99 -DATMEGA2560 -DTB_LOG -CC_FLAGS.release := -c -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions -std=c99 -DATMEGA2560 -CC_FLAGS := $(CC_FLAGS.$(BUILD)) - -CXX_FLAGS.debug := -c -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions -felide-constructors -std=c++0x -DATMEGA2560 -DTB_LOG -CXX_FLAGS.release := -c -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions -felide-constructors -std=c++0x -DATMEGA2560 -CXX_FLAGS := $(CXX_FLAGS.$(BUILD)) - -# using make's computed variables to select object and bin folders -# depending on the build type -OBJ_DIR.debug := ./obj/debug -OBJ_DIR.release := ./obj/release -OBJ_DIR := $(OBJ_DIR.$(BUILD)) - -BIN_DIR.debug := ./bin/debug -BIN_DIR.release := ./bin/release -BIN_DIR := $(BIN_DIR.$(BUILD)) - -C_FILES := $(shell find $(C_SRC_DIR) -maxdepth 1 -name '*.c') -CPP_FILES := $(shell find $(CPP_SRC_DIR) -maxdepth 1 -name '*.cpp') -OBJ_FILES := $(addprefix $(OBJ_DIR)/,$(notdir $(CPP_FILES:.cpp=.o) $(C_FILES:.c=.o))) - -C_FILES_ARDUINO := $(shell find $(C_SRC_DIR_ARDUINO) -maxdepth 1 -name '*.c') -CPP_FILES_ARDUINO := $(shell find $(CPP_SRC_DIR_ARDUINO) -maxdepth 1 -name '*.cpp') -OBJ_FILES_ARDUINO := $(addprefix $(OBJ_DIR)/,$(notdir $(CPP_FILES_ARDUINO:.cpp=.o) $(C_FILES_ARDUINO:.c=.o))) - -all: $(BIN_DIR)/$(PROG).hex - -$(BIN_DIR)/core.a: $(OBJ_FILES_ARDUINO) - mkdir -p $(BIN_DIR) - $(AR) rcs $@ $^ - #mv ./core.a ./$(BIN_DIR) - @echo "" - @echo 'done making core.a' - -$(OBJ_DIR)/%.o: $(CPP_SRC_DIR_ARDUINO)/%.cpp - mkdir -p $(OBJ_DIR) - $(CXX) $(CXX_FLAGS) $(ARDUINO_FLAGS) $(INC_CMD) $< -o $@ - -$(OBJ_DIR)/%.o: $(CPP_SRC_DIR)/%.cpp - mkdir -p $(OBJ_DIR) - $(CXX) $(CXX_FLAGS) $(ARDUINO_FLAGS) $(INC_CMD) $< -o $@ - -$(OBJ_DIR)/%.o: $(C_SRC_DIR_ARDUINO)/%.c - mkdir -p $(OBJ_DIR) - $(CC) $(CC_FLAGS) $(ARDUINO_FLAGS) $(INC_CMD) $< -o $@ - -$(OBJ_DIR)/%.o: $(C_SRC_DIR)/%.c - mkdir -p $(OBJ_DIR) - $(CXX) $(CXX_FLAGS) $(ARDUINO_FLAGS) $(INC_CMD) $< -o $@ - -$(BIN_DIR)/$(PROG).elf: $(OBJ_FILES) $(BIN_DIR)/core.a - #$(CC) -Os -Wl,--gc-sections,--relax $(ARDUINO_FLAGS) $< $(BIN_DIR)/core.a -lm -o $@ - #$(CC) -Os -Wl,--gc-sections,--relax $(ARDUINO_FLAGS) $(OBJ_FILES) $(OBJ_FILES_ARDUINO) -lm -o $@ - $(CC) -Os -Wl,--gc-sections,--relax $(ARDUINO_FLAGS) $(OBJ_FILES) $(BIN_DIR)/core.a -lm -o $@ - @echo "" - @echo 'done making elf' - -$(BIN_DIR)/$(PROG).hex: $(BIN_DIR)/$(PROG).elf - $(OBJCopy) -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $< $(BIN_DIR)/$(PROG).eep - $(OBJCopy) -O ihex -R .eeprom $< $@ - @echo "" - @echo 'done making hex' - -install: all - #$(ARDUINO_DIR)/hardware/tools/avrdude -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/ttyACM0 -b115200 -D -Uflash:w:$(BIN_DIR)/$(PROG).hex:i - avrdude -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/ttyACM0 -b115200 -D -Uflash:w:$(BIN_DIR)/$(PROG).hex:i - -.PHONY: clean -clean : - rm -rf ./obj/debug/* - rm -rf ./obj/release/* - rm -rf ./lib/debug/* - rm -rf ./lib/release/* - rm -rf ./bin/debug/* - rm -rf ./bin/release/* - rm -rf ./test/tst_*.txt - rm -fr $(BIN_DIR) - rm -fr $(OBJ_DIR) - - -.PHONY: print_vars -print_vars: - @echo "" - @echo 'BUILD = '$(value BUILD) - @echo 'C_SRC_DIR = '$(value C_SRC_DIR) - @echo 'C_SRC_DIR_ARDUINO = '$(value C_SRC_DIR_ARDUINO) - @echo 'CPP_SRC_DIR = '$(CPP_SRC_DIR) - @echo 'CPP_SRC_DIR_ARDUINO = '$(value CPP_SRC_DIR_ARDUINO) - @echo 'INC_DIR = '$(INC_DIR) - @echo 'H_FILES = '$(H_FILES) - @echo 'C_FILES = '$(C_FILES) - @echo 'CPP_FILES = '$(CPP_FILES) - @echo 'C_FILES_ARDUINO = '$(C_FILES_ARDUINO) - @echo 'CPP_FILES_ARDUINO = '$(CPP_FILES_ARDUINO) - @echo 'OBJ_FILES = '$(OBJ_FILES) - @echo 'OBJ_FILES_ARDUINO = '$(OBJ_FILES_ARDUINO) diff --git a/resource/csdk/ocrandom/test/linux/makefile b/resource/csdk/ocrandom/test/linux/makefile deleted file mode 100644 index d5a92ff..0000000 --- a/resource/csdk/ocrandom/test/linux/makefile +++ /dev/null @@ -1,125 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=release` -# default to debug build -BUILD := debug -PLATFORM := linux - -# You must create the file "local.propertiessudo" on your local machine which contains any local paths, etc -# local_settings.mk should NOT be committed to repo -ROOT_DIR = ../../.. -include $(ROOT_DIR)/local.properties -# GTEST_DIR contains the path to Google Test libs and must be defined in local.properties -# Example: -# GTEST_DIR := /home/johndoe/utils/gtest-1.7.0 - -# NOTE: to run app, make sure that LD_LIBRARY_PATH env variable -# contains $(GTEST_DIR)/lib/.libs - -CC := gcc -CXX := g++ - -PROG := randomtest - -SRC_DIR := ../../src -TEST_DIR:= ../../test/linux -INC_DIR := ../../include - -CC_FLAGS.debug := -O0 -g3 -Wall -c -fmessage-length=0 -pedantic -std=c99 -fpic -D TB_LOG -CC_FLAGS.release := -O0 -g3 -Wall -c -fmessage-length=0 -std=c99 -fpic -CC_FLAGS := $(CC_FLAGS.$(BUILD)) - -CXX_FLAGS.debug := -O0 -g3 -Wall -c -fmessage-length=0 -pedantic -std=c++0x -fpic -D TB_LOG -CXX_FLAGS.release := -O0 -g3 -Wall -c -fmessage-length=0 -std=c++0x -fpic -CXX_FLAGS := $(CXX_FLAGS.$(BUILD)) - -INC := -I$(SRC_DIR) -INC += -I$(TEST_DIR) -INC += -I$(INC_DIR) -INC += -I$(GTEST_DIR)/include - - -# using make's computed variables to select object and bin folders -# depending on the build type -OBJ_DIR.debug := ./obj/debug -OBJ_DIR.release := ./obj/release -OBJ_DIR := $(OBJ_DIR.$(BUILD)) - -BIN_DIR.debug := ./bin/debug -BIN_DIR.release := ./bin/release -BIN_DIR := $(BIN_DIR.$(BUILD)) - -C_FILES := $(wildcard $(SRC_DIR)/*.c) -#CPP_FILES := $(wildcard $(SRC_DIR)/*.cpp) -CPP_FILES := $(wildcard $(TEST_DIR)/*.cpp) -OBJ_FILES := $(addprefix $(OBJ_DIR)/,$(notdir $(CPP_FILES:.cpp=.o) $(C_FILES:.c=.o))) -H_FILES := $(wildcard $(TEST_DIR)/*.h) -H_FILES += $(wildcard $(INC_DIR)/*.h) -LD_FLAGS := -L/usr/lib -LD_FLAGS += -L$(GTEST_DIR)/lib/.libs - - -LIBS := -lpthread -LIBS += -lgtest -LIBS += -lgtest_main - - -all: $(PROG) - -$(PROG): $(OBJ_FILES) - mkdir -p $(BIN_DIR) - $(CXX) -o $@ $^ $(LD_FLAGS) $(LIBS) -# $(CXX) -o $@ $^ $(GTEST_DIR)/make/gtest_main.a -lpthread - mv ./$(PROG) ./$(BIN_DIR) - -#$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(SRC_DIR)/%.h $(H_FILES) -# $(CC) $(CC_FLAGS) $(INC) -c -o $@ $< - -$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(INC_DIR)/%.h $(H_FILES) - mkdir -p $(OBJ_DIR) - $(CC) $(CC_FLAGS) $(INC) -c -o $@ $< - -$(OBJ_DIR)/%.o: $(TEST_DIR)/%.cpp $(H_FILES) - mkdir -p $(OBJ_DIR) - $(CXX) $(CXX_FLAGS) $(INC) -c -o $@ $< - - -.PHONY: clean -clean : - rm -rf ./obj/debug/* - rm -rf ./obj/release/* - rm -rf ./lib/debug/* - rm -rf ./lib/release/* - rm -rf ./bin/debug/* - rm -rf ./bin/release/* - rm -rf ./test/tst_*.txt - - -.PHONY: print_vars - -print_vars: - @echo "" - @echo 'BUILD = '$(value BUILD) - @echo 'INC = '$(value INC) - @echo 'CPP_FILES = '$(value CPP_FILES) - @echo 'LIBS = '$(value LIBS) - - diff --git a/resource/csdk/stack/samples/arduino/SimpleClientServer/makefile b/resource/csdk/stack/samples/arduino/SimpleClientServer/makefile deleted file mode 100644 index 09a61a4..0000000 --- a/resource/csdk/stack/samples/arduino/SimpleClientServer/makefile +++ /dev/null @@ -1,38 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -BUILD := release -ARDUINO_PORT := /dev/ttyACM0 -APP_INSTALL := ocserver -PLATFORM := arduinomega -ARDUINOWIFI := 0 - -ocserver: - $(MAKE) -c ./$@ "BUILD=$(BUILD)" "install" "PLATFORM=$(PLATFORM)" "ARDUINO_PORT=$(ARDUINO_PORT)" "BUILD=$(BUILD)" "ARDUINOWIFI=$(ARDUINOWIFI)" - -occlient: - $(MAKE) -c ./$@ "BUILD=$(BUILD)" - -install: - $(MAKE) -C ./$(APP_INSTALL) "install" "PLATFORM=$(PLATFORM)" "ARDUINO_PORT=$(ARDUINO_PORT)" "BUILD=$(BUILD)" "ARDUINOWIFI=$(ARDUINOWIFI)" - -clean: - $(MAKE) -C ./occlient "clean" - $(MAKE) -C ./ocserver "clean" diff --git a/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile b/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile deleted file mode 100644 index f26ba00..0000000 --- a/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile +++ /dev/null @@ -1,122 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# - -BUILD := release -PLATFORM := arduinomega -ARDUINO_PORT := ttyACM0 - -# override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield -ARDUINOWIFI := 0 - -APP_NAME := ocserver - -ROOT_DIR = ../../../../.. -LOGGER_DIR = $(ROOT_DIR)/logger -OC_LOG_DIR = $(ROOT_DIR)/../oc_logger -TBSTACK_DIR = $(ROOT_DIR)/stack - -include $(ROOT_DIR)/local.properties -include $(ROOT_DIR)/$(PLATFORM).properties - -VPATH := $(SDIR_ARD_PLATFORM) - -#include directories -LOGGER_DIR = $(ROOT_DIR)/logger -STACK_DIR = $(ROOT_DIR)/stack -INC_DIRS = -I$(OCSOCK_DIR)/include/ -I$(OC_LOG_DIR)/include -I$(LOGGER_DIR)/include -I$(STACK_DIR)/include - -CC_FLAGS.debug := -O1 -g3 -Wall -c -fmessage-length=0 -pedantic -fpic -CC_FLAGS.release := -Os -Wall -c -fmessage-length=0 -fpic - -CFLAGS := $(CC_FLAGS.$(BUILD)) -DTB_LOG - -ifeq ($(ARDUINOWIFI),1) - CFLAGS += -DARDUINOWIFI - ARDUINO_SHIELD_TYPE := "/wifi_shield" - TRANSPORT_OBJS = $(WIFI_COBJ) -else - ARDUINO_SHIELD_TYPE := "/ethernet_shield" - TRANSPORT_OBJS = $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) -endif - -OUT_DIR := $(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD) - -OBJ_DIR := $(OUT_DIR)/bin - -all: prep_dirs core.a $(APP_NAME).o $(APP_NAME).elf $(APP_NAME).hex - -core.a: $(PLATFORM_OBJS) - @cd $(OBJ_DIR) && $(AR) -x ../../../../$(ROOT_DIR)/$(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD)/liboctbstack.a - @cd $(OBJ_DIR) && $(AR) -x ../../../../$(ROOT_DIR)/connectivity/build/arduino/core.a - $(AR) rcs $(OBJ_DIR)/$@ $(foreach obj, $^, $(OBJ_DIR)/$(obj)) $(OBJ_DIR)/*.o - @cd $(OBJ_DIR) && $(RANLIB) $@ - -prep_dirs: - -mkdir $(PLATFORM) - -mkdir $(PLATFORM)/$(ARDUINO_SHIELD_TYPE) - -mkdir $(OUT_DIR) - -mkdir $(OBJ_DIR) - -%.o: %.c - $(CC) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ - -%.o: %.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ - -$(APP_NAME).elf: $(APP_NAME).o core.a -ifeq ($(PLATFORM),arduinomega) - $(CC) -Os -Wl,--gc-sections,--relax $(CFLAGS_PLATFORM) $(foreach obj, $^, $(OBJ_DIR)/$(obj)) -lm -o $(OBJ_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(CXX) -Os -Wl,--gc-sections -mcpu=cortex-m3 -T/$(SDIR_ARD_CORE_3)/linker_scripts/gcc/flash.ld -Wl,-Map,$(APP_NAME).map -o $(OBJ_DIR)/$@ -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group $(foreach obj, $(APP_NAME).o $(SYSCALLS_SAM3_OBJ) $(SPI_OBJ) $(TRANSPORT_OBJS) $(VARIANT_OBJ) core.a, $(OBJ_DIR)/$(obj)) $(SDIR_ARD_CORE_3)/libsam_sam3x8e_gcc_rel.a -Wl,--end-group -else - $(error Wrong value for PLATFORM !!) -endif - -$(APP_NAME).hex: $(APP_NAME).elf -ifeq ($(PLATFORM),arduinomega) - $(AVR_OBJCOPY) -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $(OBJ_DIR)/$< $(OBJ_DIR)/$(APP_NAME).eep - $(AVR_OBJCOPY) -O ihex -R .eeprom $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(ARDUINO_TOOLS_DIR)/arm-none-eabi-objcopy -O binary $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else - $(error Wrong value for PLATFORM !!) -endif - -install: all -ifeq ($(PLATFORM),arduinomega) - $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i -else ifeq ($(PLATFORM),arduinodue) - stty -F /dev/$(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb - $(ARDUINO_DIR)/hardware/tools/bossac -i -d --port=$(ARDUINO_PORT) -U false -e -w -v -b $(OUT_DIR)/$(APP_NAME).hex -R -else - $(error Wrong value for PLATFORM !!) -endif - -.PHONY: clean - -clean: legacy_clean - rm -rf arduinomega - rm -rf arduinodue - -legacy_clean: - @rm -rf bin - @rm -f *.o *.d *.elf *.eep *.a *.hex *.bin *.map *- - diff --git a/resource/csdk/stack/samples/linux/SimpleClientServer/makefile b/resource/csdk/stack/samples/linux/SimpleClientServer/makefile deleted file mode 100644 index e01ee74..0000000 --- a/resource/csdk/stack/samples/linux/SimpleClientServer/makefile +++ /dev/null @@ -1,133 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release -PLATFORM := linux -CC := g++ -OUT_DIR := $(BUILD) -OBJ_DIR := $(OUT_DIR)/obj - -ifeq ($(ROOT_DIR), ) -ROOT_DIR = ../../../.. -endif - -OUT_DIR = . - -OCLOGGER_DIR = $(ROOT_DIR)/logger -OC_LOG_DIR = $(ROOT_DIR)/../oc_logger -OCRANDOM_DIR = $(ROOT_DIR)/ocrandom -OCMALLOC_DIR = $(ROOT_DIR)/ocmalloc -OCTBSTACK_DIR = $(ROOT_DIR)/stack -EXTLIBS_DIR = $(ROOT_DIR)/../../extlibs -CJSON_DIR = $(EXTLIBS_DIR)/cjson -CONNECTIVITY_DIR= $(ROOT_DIR)/connectivity -CJSON_SRC = $(CJSON_DIR) - -OCLOGGER_INC = $(OCLOGGER_DIR)/include -OC_LOG_INC = $(OC_LOG_DIR)/include -OCRANDOM_INC = $(OCRANDOM_DIR)/include -OCMALLOC_INC = $(OCMALLOC_DIR)/include -OCTBSTACK_INC = $(OCTBSTACK_DIR)/include -CJSON_INC = $(CJSON_DIR) - -INC_DIRS := -I$(OCLOGGER_INC) -INC_DIRS += -I$(OC_LOG_INC) -INC_DIRS += -I$(OCRANDOM_INC) -INC_DIRS += -I$(OCMALLOC_INC) -INC_DIRS += -I$(OCTBSTACK_INC) -INC_DIRS += -I$(CJSON_INC) - -# TODO-CA Remove -fstack-protector-all before merging to master -CC_FLAGS.debug := -O0 -g3 -Wall -fstack-protector-all -ffunction-sections -fdata-sections -fno-exceptions \ - -std=c++0x -pedantic $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) -L$(CONNECTIVITY_DIR)/build/out \ - '-Wl,-rpath=../$(CONNECTIVITY_DIR)/build/out' -DTB_LOG -# TODO-CA Remove -fstack-protector-all before merging to master -CC_FLAGS.release := -Os -Wall -fstack-protector-all -fdata-sections -Wl,--gc-sections -Wl,-s -fno-exceptions \ - -std=c++0x $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) -L$(CONNECTIVITY_DIR)/build/out \ - '-Wl,-rpath=../$(CONNECTIVITY_DIR)/build/out' -DTB_LOG - -LDLIBS += -loctbstack -lpthread -lconnectivity_abstraction -CPPFLAGS += $(CC_FLAGS.$(BUILD)) $(LDLIBS) - -CJSON_SOURCES := $(CJSON_SRC)/cJSON.c - -SOURCES := $(CJSON_SOURCES) -SOURCES += occlient.cpp ocserver.cpp occlientcoll.cpp ocservercoll.cpp common.cpp ocserverbasicops.cpp occlientbasicops.cpp ocserverslow.cpp occlientslow.cpp - -OBJECTS:= $(patsubst %.cpp, $(OBJ_DIR)/%.o, $(SOURCES)) - -PROGRAMS += ocserver -PROGRAMS += occlient -PROGRAMS += ocserverbasicops -PROGRAMS += ocserverslow -PROGRAMS += ocservercoll -PROGRAMS += occlientcoll -PROGRAMS += occlientbasicops -PROGRAMS += occlientslow - -all: c_sdk prep_dirs $(OBJECTS) $(PROGRAMS) - -prep_dirs: - -mkdir -p $(OUT_DIR) - -mkdir -p $(OBJ_DIR) - -c_sdk: - cd $(ROOT_DIR) && $(MAKE) BUILD=$(BUILD) PLATFORM=$(PLATFORM) - -$(OBJ_DIR)/%.o: %.cpp - $(CC) -c $(CPPFLAGS) $< -o $@ - -ocserver: $(OBJ_DIR)/ocserver.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -ocserverslow: $(OBJ_DIR)/ocserverslow.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -ocserverbasicops: $(OBJ_DIR)/ocserverbasicops.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -ocservercoll: $(OBJ_DIR)/ocservercoll.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -occlient: $(OBJ_DIR)/occlient.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -occlientbasicops: $(OBJ_DIR)/occlientbasicops.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -occlientslow: $(OBJ_DIR)/occlientslow.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -occlientcoll: $(OBJ_DIR)/occlientcoll.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -.PHONY: clean - -clean: legacy_clean - -rm -rf release - -rm -rf debug - cd $(ROOT_DIR) && $(MAKE) clean - cd $(ROOT_DIR) && $(MAKE) deepclean - -legacy_clean: - rm -f *.o $(PROGRAMS) - diff --git a/resource/csdk/stack/samples/linux/secure/makefile b/resource/csdk/stack/samples/linux/secure/makefile deleted file mode 100644 index b5aea1e..0000000 --- a/resource/csdk/stack/samples/linux/secure/makefile +++ /dev/null @@ -1,113 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release -PLATFORM := linux -CC := g++ -OUT_DIR := $(BUILD) -OBJ_DIR := $(OUT_DIR)/obj -CA_INT_DTLS := 0 - -ifeq ($(ROOT_DIR), ) -ROOT_DIR = ../../../.. -endif - -OUT_DIR = . - -OCLOGGER_DIR = $(ROOT_DIR)/logger -OC_LOG_DIR = $(ROOT_DIR)/../oc_logger -OCRANDOM_DIR = $(ROOT_DIR)/ocrandom -OCTBSTACK_DIR = $(ROOT_DIR)/stack -EXTLIBS_DIR = $(ROOT_DIR)/../../extlibs -CJSON_DIR = $(EXTLIBS_DIR)/cjson -CJSON_SRC = $(CJSON_DIR) -CONNECTIVITY_DIR= $(ROOT_DIR)/connectivity - - -OCLOGGER_INC = $(OCLOGGER_DIR)/include -OC_LOG_INC = $(OC_LOG_DIR)/include -OCRANDOM_INC = $(OCRANDOM_DIR)/include -OCTBSTACK_INC = $(OCTBSTACK_DIR)/include -CJSON_INC = $(CJSON_DIR) - -INC_DIRS := -I$(OCLOGGER_INC) -INC_DIRS += -I$(OC_LOG_INC) -INC_DIRS += -I$(OCRANDOM_INC) -INC_DIRS += -I$(OCTBSTACK_INC) -INC_DIRS += -I$(CJSON_INC) - -CC_FLAGS.debug := -O0 -g3 -Wall -ffunction-sections -fdata-sections -fno-exceptions \ - -std=c++0x -pedantic $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) \ - -L$(CONNECTIVITY_DIR)/build/out -DTB_LOG -CC_FLAGS.release := -Os -Wall -fdata-sections -Wl,--gc-sections -Wl,-s -fno-exceptions \ - -std=c++0x $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) \ - -L$(CONNECTIVITY_DIR)/build/out -DTB_LOG - -LDLIBS += -loctbstack -lpthread -CPPFLAGS += $(CC_FLAGS.$(BUILD)) $(LDLIBS) -ifeq ($(CA_INT_DTLS),1) - CPPFLAGS += -lconnectivity_abstraction -DCA_INT_DTLS -endif - -CJSON_SOURCES := $(CJSON_SRC)/cJSON.c - -SOURCES := $(CJSON_SOURCES) -SOURCES += common.cpp ocserverbasicops.cpp occlientbasicops.cpp gen_sec_bin.cpp - -OBJECTS:= $(patsubst %.cpp, $(OBJ_DIR)/%.o, $(SOURCES)) - -PROGRAMS += ocserverbasicops -PROGRAMS += occlientbasicops -PROGRAMS += gen_sec_bin - -all: c_sdk prep_dirs $(OBJECTS) $(PROGRAMS) - -prep_dirs: - -mkdir -p $(OUT_DIR) - -mkdir -p $(OBJ_DIR) - -c_sdk: - cd $(ROOT_DIR) && $(MAKE) BUILD=$(BUILD) PLATFORM=$(PLATFORM) - -$(OBJ_DIR)/%.o: %.cpp - $(CC) -c $(CPPFLAGS) $< -o $@ - -ocserverbasicops: $(OBJ_DIR)/ocserverbasicops.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -occlientbasicops: $(OBJ_DIR)/occlientbasicops.o $(OBJ_DIR)/common.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -gen_sec_bin: $(OBJ_DIR)/gen_sec_bin.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -.PHONY: clean - -clean: legacy_clean - -rm -rf release - -rm -rf debug - cd $(ROOT_DIR) && $(MAKE) clean - cd $(ROOT_DIR) && $(MAKE) deepclean - -legacy_clean: - rm -f *.o $(PROGRAMS) - diff --git a/resource/csdk/stack/test/arduino/makefile b/resource/csdk/stack/test/arduino/makefile deleted file mode 100644 index 4314f45..0000000 --- a/resource/csdk/stack/test/arduino/makefile +++ /dev/null @@ -1,112 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -BUILD := release -PLATFORM := arduinomega - -ROOT_DIR = ../../.. -include $(ROOT_DIR)/local.properties -LOGGER_DIR = $(ROOT_DIR)/logger -RANDOM_DIR = $(ROOT_DIR)/ocrandom -JSON_DIR = $(ROOT_DIR)/../../extlibs/cjson -OCSTACK_DIR = $(ROOT_DIR)/stack -BIN_DIR = $(OCSTACK_DIR)/bin/arduino/ -OBJ_DIR = $(OCSTACK_DIR)/obj/arduino/ - -#Source directories -SDIR_ARD_CORE = $(ARDUINO_DIR)/hardware/arduino/cores/arduino -SDIR_ARD_SPI = $(ARDUINO_DIR)/libraries/SPI -SDIR_ARD_ETH = $(ARDUINO_DIR)/libraries/Ethernet -SDIR_ARD_ETH_UTIL = $(ARDUINO_DIR)/libraries/Ethernet/utility -SDIR_ARD_TIME = $(ARDUINO_DIR)/libraries/Time - -VPATH = $(SDIR_ARD_CORE):$(SDIR_ARD_SPI):$(SDIR_ARD_ETH):$(SDIR_ARD_ETH_UTIL):$(SDIR_ARD_TIME):$(RANDOM_DIR)/src:$(OCSTACK_DIR)/src:$(JSON_DIR) - -#include directories -IDIR_ARD_CORE = $(ARDUINO_DIR)/hardware/arduino/cores/arduino -IDIR_ARD_VARIANT = $(ARDUINO_DIR)/hardware/arduino/variants/mega -IDIR_ARD_SPI = $(ARDUINO_DIR)/libraries/SPI -IDIR_ARD_ETH = $(ARDUINO_DIR)/libraries/Ethernet -IDIR_ARD_ETH_UTIL = $(ARDUINO_DIR)/libraries/Ethernet/utility -IDIR_ARD_TIME = $(ARDUINO_DIR)/libraries/Time - -INC_DIRS = -I$(IDIR_ARD_CORE) -I$(IDIR_ARD_VARIANT) -I$(IDIR_ARD_SPI) \ - -I$(IDIR_ARD_ETH) -I$(IDIR_ARD_ETH_UTIL) -I$(IDIR_ARD_TIME) \ - -I$(OCSOCK_DIR)/include -I$(LOGGER_DIR)/include -I$(RANDOM_DIR)/include \ - -I$(OCSTACK_DIR)/include -I$(OCSTACK_DIR)/include/internal \ - -I$(-I$(JSON_DIR) - -#Compiler/Linker flags -COPTIONS_ARDUINO = -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -MMD -DNDEBUG -CFLAGS += -c -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions -felide-constructors -std=c++0x -DATMEGA2560 -DTB_LOG -DWITH_ARDUINO - -#Compilers -CXX=avr-g++ -CC=avr-gcc -AR=avr-ar -RANLIB=avr-ranlib - -TESTAPP = ocserver - -CORE_COBJ = WInterrupts.o wiring.o wiring_digital.o -CORE_CPPOBJ = main.o Stream.o WMath.o WString.o HardwareSerial.o Print.o SPI.o IPAddress.o wiring_analog.o -ETH_CPPOBJ = Dhcp.o Dns.o Ethernet.o EthernetUdp.o -ETH_UTIL_CPPOBJ = socket.o w5100.o -OCSTACK_CPPOBJ = ocrandom.o ocresource.o occollection.o ocobserve.o ocserverrequest.o ocstack.o occlientcb.o -OCDEPENDENT_CPPOBJ = wiring_analog.o -CJSON_COBJ = cJSON.o - -all: core.a $(TESTAPP).o $(TESTAPP).elf $(TESTAPP).hex - mkdir -p $(BIN_DIR) - cp $(TESTAPP).hex $(BIN_DIR) - mkdir -p $(OBJ_DIR) - cp *.o $(OBJ_DIR) - cp *.elf $(OBJ_DIR) - -# Note for Arduino: The C files are compiled using C++ compiler since Arduino -# build includes Time.h header file which has C++ style definitions. -%.o: %.c - $(CXX) $(CFLAGS) $(COPTIONS_ARDUINO) $(INC_DIRS) $< -o $@ - -%.o: %.cpp - $(CXX) $(CFLAGS) $(COPTIONS_ARDUINO) $(INC_DIRS) $< -o $@ - -core.a: $(CORE_COBJ) $(CORE_CPPOBJ) $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) - $(AR) rcs $@ $^ - $(RANLIB) $@ - -$(TESTAPP).elf: $(TESTAPP).o core.a $(OCSTACK_CPPOBJ) $(OCDEPENDENT_CPPOBJ) $(CJSON_COBJ) - $(CC) -Os -Wl,--gc-sections,--relax $(COPTIONS_ARDUINO) $^ -lm -o $@ - -$(TESTAPP).hex: $(TESTAPP).elf - avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $< $(TESTAPP).eep - avr-objcopy -O ihex -R .eeprom $< $@ - -install: all - avrdude -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/ttyACM0 -b115200 -D -Uflash:w:$(TESTAPP).hex:i - -.PHONY: clean - -clean: - rm -f *.o *.d *.elf *.eep *.a *.hex *- - rm -fr $(BIN_DIR) - rm -fr $(OBJ_DIR) - - diff --git a/resource/csdk/stack/test/linux/makefile b/resource/csdk/stack/test/linux/makefile deleted file mode 100644 index e0a1500..0000000 --- a/resource/csdk/stack/test/linux/makefile +++ /dev/null @@ -1,98 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -VERSION:=4.1.1 - -# override with `make BUILD=release` -# default to release build -BUILD := release - -#other options are android, arduino -PLATFORM=linux - -ROOT_DIR = ../../.. -OCSTACK_DIR = $(ROOT_DIR)/stack -LOGGER_DIR = $(ROOT_DIR)/logger -OC_LOG_DIR = $(ROOT_DIR)/../oc_logger -RANDOM_DIR = $(ROOT_DIR)/ocrandom - -OBJ_DIR = ./ - -INC_DIRS := -I$(OCSTACK_DIR)/include -INC_DIRS += -I$(OCSOCK_DIR)/include -INC_DIRS += -I$(LOGGER_DIR)/include -INC_DIRS += -I$(OC_LOG_DIR)/include -INC_DIRS += -I$(RANDOM_DIR)/include - -ifeq ($(PLATFORM),android) - CXX=arm-linux-androideabi-g++ - CC=arm-linux-androideabi-gcc - AR=arm-linux-androideabi-ar - RANLIB=arm-linux-androideabi-ranlib - CFLAGS_ANDROID = -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 - LDFLAGS_ANDROID = -march=armv7-a -Wl,--fix-cortex-a8 -llog -else ifeq ($(PLATFORM),linux) - CXX=g++ - CC=gcc - AR=ar - RANLIB=ranlib -else - $(error Wrong value for PLATFORM !!) -endif - -DEP_LIBS = $(ROOT_DIR)/linux/$(BUILD)/liboctbstack.a - -CFLAGS += -Os -Wall -Wno-write-strings -ffunction-sections -fdata-sections -fno-exceptions \ - -Wextra -Wno-variadic-macros -pedantic -std=gnu99 -DWITH_POSIX -DTB_LOG - -PROGRAMS = ocserver occlient - -SOURCES:= occlient.c ocserver.c - -OBJECTS:= $(patsubst %.c, %.o, $(SOURCES)) - -all: objdirs $(PROGRAMS) - -%.o: %.c - $(CC) -c $(CFLAGS) $(CFLAGS_ANDROID) $(INC_DIRS) $< -o $(BUILD)/$@ - -objdirs: $(ROOT_DIR) - mkdir -p $(BUILD) - -##Added -lm as needed by json calling floor() -occlient: occlient.o $(DEP_LIBS) - $(CC) -Os -Wl,--gc-sections $(LDFLAGS_ANDROID) $(BUILD)/$^ -o $(BUILD)/$@ -lm - -ocserver: ocserver.o $(DEP_LIBS) - $(CC) -Os -Wl,--gc-sections $(LDFLAGS_ANDROID) $(BUILD)/$^ -o $(BUILD)/$@ -lm - -install: all - @echo "Installing for PLATFORM $(PLATFORM)" -ifeq ($(PLATFORM),android) - adb push coap-client /data/local/tmp/ - adb push coap-server /data/local/tmp/ -endif - -.PHONY: clean - -clean: - rm -rf debug - rm -rf release - diff --git a/resource/csdk/stack/test/makefile b/resource/csdk/stack/test/makefile deleted file mode 100644 index b195cf4..0000000 --- a/resource/csdk/stack/test/makefile +++ /dev/null @@ -1,98 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release -PLATFORM := linux -CC := g++ - -ifeq ($(ROOT_DIR), ) -ROOT_DIR = $(PWD)/../.. -endif - -# You must create the file "local.properties" on your local machine which contains any local paths, etc -# local.properties should NOT be committed to repo -include $(ROOT_DIR)/local.properties -# GTEST_DIR contains the path to Google Test libs and must be defined in local.properties -# Example: -# GTEST_DIR := /home/johndoe/utils/gtest-1.7.0 - -# NOTE: to run app, make sure that LD_LIBRARY_PATH env variable -# contains $(GTEST_DIR)/lib/.libs - -OUT_DIR := $(PWD)/$(BUILD) -OBJ_DIR := $(OUT_DIR)/obj - - -OUT_DIR := $(PWD) - -LOGGER_DIR = $(ROOT_DIR)/logger -OC_LOG_DIR = $(ROOT_DIR)/../oc_logger -OCRANDOM_DIR = $(ROOT_DIR)/ocrandom -OCTBSTACK_DIR = $(ROOT_DIR)/stack - -LOGGER_INC = $(LOGGER_DIR)/include -OC_LOG_INC = $(OC_LOG_DIR)/include -OCRANDOM_INC = $(OCRANDOM_DIR)/include -OCTBSTACK_INC = $(OCTBSTACK_DIR)/include - -INC_DIRS := -I$(LOGGER_INC) -INC_DIRS += -I$(OC_LOG_INC) -INC_DIRS += -I$(OCRANDOM_INC) -INC_DIRS += -I$(OCTBSTACK_INC) -INC_DIRS += -I$(OCTBSTACK_INC)/internal -INC_DIRS += -I$(GTEST_DIR)/include - -CC_FLAGS.debug := -g -O0 -g3 -Wall -ffunction-sections -fdata-sections -fno-exceptions \ - -std=c++0x -pedantic $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) -DTB_LOG -CC_FLAGS.release := -Os -Wall -fdata-sections -Wl,--gc-sections -Wl,-s -fno-exceptions \ - -std=c++0x $(INC_DIRS) -L$(ROOT_DIR)/linux/$(BUILD) - -LDLIBS += -loctbstack -lpthread -lgtest -lgtest_main -CPPFLAGS += $(CC_FLAGS.$(BUILD)) $(LDLIBS) -L$(GTEST_DIR)/lib/.libs - -SOURCES := stacktests.cpp - -OBJECTS:= $(patsubst %.c, $(OBJ_DIR)/%.o, $(SOURCES)) - -PROGRAMS := stacktests - -all: prep_dirs $(OBJECTS) $(PROGRAMS) - -prep_dirs: - -mkdir -p $(OUT_DIR) - -mkdir -p $(OBJ_DIR) - -$(OBJ_DIR)/%.o: %.cpp - $(CC) -c $(CPPFLAGS) $< -o $@ - -stacktests: $(OBJ_DIR)/stacktests.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -.PHONY: clean - -clean: legacy_clean - -rm -rf release - -rm -rf debug - -legacy_clean: - rm -f *.o $(PROGRAMS) - diff --git a/resource/examples/makefile b/resource/examples/makefile deleted file mode 100644 index 446c66e..0000000 --- a/resource/examples/makefile +++ /dev/null @@ -1,128 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=release` -# default to release build+ -BUILD := release -PLATFORM := linux -CXX := g++ -#CXX := clang -OUT_DIR := $(BUILD) - -#TODO-CA Remove the CA Flag later -CXX_FLAGS.debug := -O0 -g3 -std=c++0x -Wall -pthread - -CXX_FLAGS.release := -O3 -std=c++0x -Wall -pthread - -CXX_INC := -I../include/ -CXX_INC += -I../oc_logger/include -CXX_INC += -I../csdk/stack/include -CXX_INC += -I../csdk/ocrandom/include -CXX_INC += -I../csdk/logger/include - -LIB_OC_LOGGER := ../oc_logger/lib/oc_logger.a - -CXX_LIBS := ../$(BUILD)/obj/liboc.a ../csdk/$(PLATFORM)/$(BUILD)/liboctbstack.a $(LIB_OC_LOGGER) -L../csdk/connectivity/build/out -lconnectivity_abstraction - -# Force metatargets to build: -all.PHONY: prep_dirs oc_cpp_sdk simpleserver simpleserverHQ simpleclient simpleclientHQ simpleclientserver roomserver roomclient presenceserver presenceclient garageserver garageclient fridgeserver fridgeclient threadingsample devicediscoveryserver devicediscoveryclient groupserver groupclient lightserver - -apps.PHONY: prep_dirs oc_cpp_sdk simpleserver simpleserverHQ simpleclient simpleclientHQ simpleclientserver roomserver roomclient presenceserver presenceclient garageserver garageclient fridgeserver fridgeclient threadingsample devicediscoveryserver devicediscoveryclient groupserver groupclient lightserver - -buildScript_all.PHONY: prep_dirs simpleserver simpleserverHQ simpleclient simpleclientHQ simpleclientserver roomserver roomclient presenceserver presenceclient garageserver garageclient fridgeserver fridgeclient threadingsample devicediscoveryserver devicediscoveryclient groupserver groupclient lightserver - -all: all.PHONY - -apps: apps.PHONY - -buildScript_all: buildScript_all.PHONY - -prep_dirs: - -mkdir -p $(OUT_DIR) - -oc_cpp_sdk: - cd ../ && $(MAKE) cpp_sdk "BUILD=$(BUILD)" - -simpleserver: simpleserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ simpleserver.cpp $(CXX_INC) $(CXX_LIBS) - -simpleserverHQ: simpleserverHQ.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ simpleserverHQ.cpp $(CXX_INC) $(CXX_LIBS) - -simpleclientHQ: simpleclientHQ.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ simpleclientHQ.cpp $(CXX_INC) $(CXX_LIBS) - -simpleclient: simpleclient.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ simpleclient.cpp $(CXX_INC) $(CXX_LIBS) - -fridgeserver: fridgeserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ fridgeserver.cpp $(CXX_INC) $(CXX_LIBS) - -fridgeclient: fridgeclient.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ fridgeclient.cpp $(CXX_INC) $(CXX_LIBS) - -presenceserver: presenceserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ presenceserver.cpp $(CXX_INC) $(CXX_LIBS) - -presenceclient: presenceclient.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ presenceclient.cpp $(CXX_INC) $(CXX_LIBS) - -simpleclientserver: simpleclientserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ simpleclientserver.cpp $(CXX_INC) $(CXX_LIBS) - -roomserver: roomserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ roomserver.cpp $(CXX_INC) $(CXX_LIBS) - -roomclient: roomclient.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ roomclient.cpp $(CXX_INC) $(CXX_LIBS) - -garageserver: garageserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ garageserver.cpp $(CXX_INC) $(CXX_LIBS) - -garageclient: garageclient.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ garageclient.cpp $(CXX_INC) $(CXX_LIBS) - -threadingsample: threadingsample.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ threadingsample.cpp $(CXX_INC) $(CXX_LIBS) - -groupserver: groupserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ groupserver.cpp $(CXX_INC) $(CXX_LIBS) - -groupclient: groupclient.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ groupclient.cpp $(CXX_INC) $(CXX_LIBS) - -lightserver: lightserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ lightserver.cpp $(CXX_INC) $(CXX_LIBS) - -devicediscoveryserver: devicediscoveryserver.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ devicediscoveryserver.cpp $(CXX_INC) $(CXX_LIBS) - -devicediscoveryclient: devicediscoveryclient.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OUT_DIR)/$@ devicediscoveryclient.cpp $(CXX_INC) $(CXX_LIBS) - -clean: - rm -rf debug - rm -rf release - cd ../ && $(MAKE) clean_cpp_sdk - -clean_apps: - rm -rf debug - rm -rf release - diff --git a/resource/makefile b/resource/makefile deleted file mode 100644 index d878cf6..0000000 --- a/resource/makefile +++ /dev/null @@ -1,136 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release -CXX := g++ -#CXX := clang - -ifeq ($(ROOT_DIR), ) - ROOT_DIR := $(PWD) -endif -ifeq ($(PLATFORM), ) - PLATFORM := "linux" -endif - -DEPEND_DIR:= $(ROOT_DIR)/dependencies -CEREAL_DIR:= $(DEPEND_DIR)/cereal - -OUT_DIR := $(ROOT_DIR)/$(BUILD) -OBJ_DIR := $(OUT_DIR)/obj - -#TODO-CA Need to remove flag later -CXX_FLAGS.debug := -g3 -std=c++0x -Wall -pthread -O0 -CXX_FLAGS.release := -std=c++0x -Wall -pthread -O3 - -CXX_INC := -I./include/ -CXX_INC += -I./oc_logger/include - -CXX_INC += -I./csdk/stack/include -CXX_INC += -I./csdk/ocrandom/include -CXX_INC += -I./csdk/logger/include -CXX_INC += -I./csdk/connectivity/lib/libcoap-4.1.1 - -# Force metatargets to build: -all.PHONY: applyDepPatches prep_dirs c_sdk oc_logger_target liboc.a examples - -buildScript_all.PHONY: applyDepPatches prep_dirs oc_logger_target liboc.a - -all: all.PHONY - -buildScript_all: buildScript_all.PHONY - -prep_dirs: deps - -mkdir -p $(OUT_DIR) - -mkdir -p $(OBJ_DIR) - -# used to fetch all dependencies -deps: - -mkdir -p $(DEPEND_DIR) -#cereal fetch - if [ ! -d "$(CEREAL_DIR)" ]; then\ - cd $(DEPEND_DIR) && git clone https://github.com/USCiLab/cereal.git;\ - cd $(CEREAL_DIR) && git checkout 7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245;\ - fi - -applyDepPatches: deps -#reset git to the 'base version', so we can apply our patch without issues - cd $(CEREAL_DIR) && git reset --hard 7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245; - cd $(CEREAL_DIR) && git apply $(ROOT_DIR)/patches/cereal_gcc46.patch - -c_sdk: - cd csdk && $(MAKE) "BUILD=$(BUILD)" "PLATFORM=$(PLATFORM)" - -oc_logger_target: - cd oc_logger && $(MAKE) "BUILD=$(BUILD)" - -cpp_sdk: prep_dirs c_sdk liboc.a - -examples: liboc.a - cd examples && $(MAKE) apps "BUILD=$(BUILD)" - -liboc.a: OCPlatform_impl.o OCPlatform.o OCResource.o OCException.o OCUtilities.o InProcServerWrapper.o InProcClientWrapper.o OCRepresentation.o OCResourceRequest.o - ar -cvq $(OBJ_DIR)/liboc.a $(OBJ_DIR)/OCPlatform_impl.o $(OBJ_DIR)/OCPlatform.o $(OBJ_DIR)/OCResource.o $(OBJ_DIR)/OCException.o $(OBJ_DIR)/OCUtilities.o $(OBJ_DIR)/InProcServerWrapper.o $(OBJ_DIR)/InProcClientWrapper.o $(OBJ_DIR)/OCRepresentation.o $(OBJ_DIR)/OCResourceRequest.o - -OCPlatform_impl.o: src/OCPlatform_impl.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCPlatform_impl.cpp $(CXX_INC) - -OCPlatform.o: src/OCPlatform.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCPlatform.cpp $(CXX_INC) - -OCRepresentation.o: src/OCRepresentation.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCRepresentation.cpp $(CXX_INC) -I$(CEREAL_DIR)/include - -OCResource.o: src/OCResource.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCResource.cpp $(CXX_INC) - -OCException.o: src/OCException.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCException.cpp $(CXX_INC) - -OCUtilities.o: src/OCUtilities.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCUtilities.cpp $(CXX_INC) - -InProcServerWrapper.o: src/InProcServerWrapper.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/InProcServerWrapper.cpp $(CXX_INC) - -InProcClientWrapper.o: src/InProcClientWrapper.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/InProcClientWrapper.cpp $(CXX_INC) -I$(CEREAL_DIR)/include - -OCResourceRequest.o: src/OCResourceRequest.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCResourceRequest.cpp $(CXX_INC) -I$(CEREAL_DIR)/include - -OCResourceRequest.o: src/OCResourceRequest.cpp - $(CXX) $(CXX_FLAGS.$(BUILD)) -o $(OBJ_DIR)/$@ -c src/OCResourceRequest.cpp $(CXX_INC) - -clean: clean_legacy - -rm -rf release - -rm -rf debug - cd oc_logger && $(MAKE) clean - -clean_cpp_sdk: clean_legacy - -rm -rf release - -rm -rf debug - -clean_legacy: - -rm -f -v $(OBJ_DIR)/liboc.a $(OBJ_DIR)/*.o - cd csdk && $(MAKE) clean - cd csdk && $(MAKE) deepclean - diff --git a/resource/oc_logger/Makefile b/resource/oc_logger/Makefile deleted file mode 100644 index 5637e5e..0000000 --- a/resource/oc_logger/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release - -LIB_DIR=./lib/ -BIN_DIR=./bin/ - -.PHONY: c_lib cpp_lib static_libs examples samples - -all: dirs c_lib cpp_lib static_libs examples samples - -dirs: - -mkdir -p $(LIB_DIR) $(BIN_DIR) - -c_lib: - cd c && $(MAKE) "BUILD=$(BUILD)" - -cpp_lib: - cd cpp && $(MAKE) "BUILD=$(BUILD)" - -static_libs: - ar -cvq $(LIB_DIR)/oc_logger_core.a $(BIN_DIR)/oc_logger.o - ar -cvq $(LIB_DIR)/oc_logger.a $(BIN_DIR)/oc_logger.o $(BIN_DIR)/targets/*.o - -examples: - cd examples && $(MAKE) "BUILD=$(BUILD)" - -samples: - cd samples/linux && $(MAKE) "BUILD=$(BUILD)" - -clean: - cd examples && $(MAKE) "clean" - cd samples/linux && $(MAKE) "clean" - rm -rf $(BIN_DIR)/targets/*.o - cd cpp && $(MAKE) clean - cd c && $(MAKE) clean diff --git a/resource/oc_logger/c/Makefile b/resource/oc_logger/c/Makefile deleted file mode 100644 index 5d55318..0000000 --- a/resource/oc_logger/c/Makefile +++ /dev/null @@ -1,52 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# - -BUILD := release - -CC_FLAGS.debug=-Wall -std=c99 -Werror -O0 -g -CC_FLAGS.release=-Wall -std=c99 -Werror -O2 - -INC=-I../include/ -CC:=gcc - -BIN_DIR=../bin -LIB_DIR=../lib -TEST_DIR=../test - -LIB=$(LIB_DIR)/oc_logger.a - -CCX=$(CC) $(CC_FLAGS.$(BUILD)) - -all: setup c_lib c_targets - -setup: - mkdir -p $(BIN_DIR) $(LIB_DIR) - mkdir -p $(BIN_DIR)/targets - mkdir -p $(TEST_DIR) - -c_lib: - $(CCX) $(INC) -c -o $(BIN_DIR)/oc_logger.o oc_logger.c - -c_targets: - $(CCX) $(INC) -c -o $(BIN_DIR)/targets/oc_console_logger.o oc_console_logger.c - -clean: - rm -rf -v \*\.o test_logging $(BIN_DIR)/* $(LIB_DIR)/* diff --git a/resource/oc_logger/cpp/Makefile b/resource/oc_logger/cpp/Makefile deleted file mode 100644 index 0b2c41e..0000000 --- a/resource/oc_logger/cpp/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# - -BIN_DIR=../bin -LIB_DIR=../lib - -INC=-I../include/ - -LIB=$(LIB_DIR)/oc_logger.a - -BUILD := release - -CXX_FLAGS.debug=-Wall -std=c++0x -O0 -g -CXX_FLAGS.release=-Wall -std=c++0x -O2 - -CXX := g++ - -CXX_X=$(CXX) $(CXX_FLAGS.$(BUILD)) $(INC) - -all: dirs targets - -dirs: - -mkdir -p $(BIN_DIR)/targets - -targets: - $(CXX_X) -c -o $(BIN_DIR)/targets/oc_ostream_logger.o oc_ostream_logger.cpp - -clean: - rm -f ./test_logging ./*.o diff --git a/resource/oc_logger/examples/Makefile b/resource/oc_logger/examples/Makefile deleted file mode 100644 index 7cf1073..0000000 --- a/resource/oc_logger/examples/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# - -BUILD := release - -CC_FLAGS.debug=-Wall -std=c99 -Werror -O0 -g -CC_FLAGS.release=-Wall -std=c99 -Werror -O2 - -CXX_FLAGS.debug=-Wall -std=c++0x -O0 -g -CXX_FLAGS.release=-Wall -std=c++0x -O2 - -CXX_STDLIB=-lstdc++ - -CC:=gcc -CXX:=g++ -CXX_X=$(CXX) $(CXX_FLAGS.$(BUILD)) $(INC) - -INC=-I../include/ - -BIN_DIR=../bin -LIB_DIR=../lib - -CC_LIB=$(LIB_DIR)/oc_logger.a $(CXX_STDLIB) -CXX_LIB=$(LIB_DIR)/oc_logger.a $(CXX_STDLIB) - -CCX=$(CC) $(CC_FLAGS.$(BUILD)) - -all: examples_c examples_cpp - -examples_c: - $(CCX) $(INC) -o $(BIN_DIR)/test_logging test_logging.c $(CC_LIB) - -examples_cpp: - $(CXX_X) -o $(BIN_DIR)/test_logging_cpp test_logging.cpp $(CXX_LIB) - -clean: - rm -f $(BIN_DIR)/test_logging $(BIN_DIR)/test_logging_cpp - diff --git a/resource/oc_logger/samples/linux/makefile b/resource/oc_logger/samples/linux/makefile deleted file mode 100644 index 4bb1df4..0000000 --- a/resource/oc_logger/samples/linux/makefile +++ /dev/null @@ -1,86 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release -PLATFORM := linux -CC := g++ -OUT_DIR := $(BUILD) -OBJ_DIR := $(OUT_DIR)/obj - -ifeq ($(ROOT_DIR), ) -ROOT_DIR = ../../../csdk -endif - -OUT_DIR = ./ - -OCLOGGER_DIR = $(ROOT_DIR)/logger -OC_LOG_DIR = $(ROOT_DIR)/../oc_logger -OCRANDOM_DIR = $(ROOT_DIR)/ocrandom -OCTBSTACK_DIR = $(ROOT_DIR)/stack - -OC_LOG_INC = $(OC_LOG_DIR)/include -OC_LOG_LIB = $(OC_LOG_DIR)/lib/oc_logger.a - -OCLOGGER_INC = $(OCLOGGER_DIR)/include -OCRANDOM_INC = $(OCRANDOM_DIR)/include -OCTBSTACK_INC = $(OCTBSTACK_DIR)/include - -INC_DIRS := -I$(OCLOGGER_INC) -INC_DIRS += -I$(OC_LOG_INC) -INC_DIRS += -I$(OCRANDOM_INC) -INC_DIRS += -I$(OCTBSTACK_INC) - -CC_FLAGS.debug := -O0 -g3 -Wall -ffunction-sections -fdata-sections \ - -std=c99 $(INC_DIRS) -L$(ROOT_DIR)/$(PLATFORM)/$(BUILD) -DTB_LOG -CC_FLAGS.release := -Os -Wall -fdata-sections -Wl,--gc-sections -Wl,-s \ - -std=c99 $(INC_DIRS) -L$(ROOT_DIR)/$(PLATFORM)/$(BUILD) - -LDLIBS += $(OC_LOG_LIB) -loctbstack -lpthread -CPPFLAGS += $(CC_FLAGS.$(BUILD)) $(LDLIBS) - -SOURCES := test_logging.c - -OBJECTS:= $(patsubst %.c, $(OBJ_DIR)/%.o, $(SOURCES)) - -PROGRAMS += test_logging - -all: prep_dirs $(OBJECTS) $(PROGRAMS) - -prep_dirs: - -mkdir -p $(OUT_DIR) - -mkdir -p $(OBJ_DIR) - -$(OBJ_DIR)/%.o: %.c - $(CC) -c $(CPPFLAGS) $< -o $@ - -test_logging: $(OBJ_DIR)/test_logging.o - $(CC) $^ $(CPPFLAGS) -o $(OUT_DIR)/$(BUILD)/$@ - -.PHONY: clean - -clean: legacy_clean - -rm -rf release - -rm -rf debug - -legacy_clean: - rm -f *.o $(PROGRAMS) - diff --git a/resource/unittests/makefile b/resource/unittests/makefile deleted file mode 100644 index ba374af..0000000 --- a/resource/unittests/makefile +++ /dev/null @@ -1,90 +0,0 @@ -# //****************************************************************** -# // -# // 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. -# // -# //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# override with `make BUILD=debug` -# default to release build -BUILD := release -PLATFORM := linux -CXX := g++ - -ROOT_DIR = ./ - -GTEST_DIR= ../../extlibs/gtest-1.7.0 -MOCKS_DIR= ../../extlibs/hippomocks-master - -OUT_DIR := $(BUILD) - -ifeq ($(ROOT_DIR),) - ROOT_DIR:=$(PWD) -endif - -CONNECTIVITY_DIR= $(ROOT_DIR)/../csdk/connectivity - -INC_DIRS := -I../include/ -INC_DIRS += -I../oc_logger/include -INC_DIRS += -I../csdk/stack/include -INC_DIRS += -I../csdk/ocrandom/include -INC_DIRS += -I../csdk/logger/include -INC_DIRS += -I$(GTEST_DIR)/include -INC_DIRS += -I$(MOCKS_DIR)/HippoMocks -INC_DIRS += -I$(MOCKS_DIR)/HippoMocksTest - -LIB_OC_LOGGER := ../oc_logger/lib/oc_logger.a - -GTEST_LIBS := $(GTEST_DIR)/lib/.libs/libgtest.a $(GTEST_DIR)/lib/.libs/libgtest_main.a -CXX_LIBS := ../$(BUILD)/obj/liboc.a ../csdk/$(PLATFORM)/$(BUILD)/liboctbstack.a $(LIB_OC_LOGGER) -CXX_LIBS += $(GTEST_LIBS) -L$(CONNECTIVITY_DIR)/build/out -lconnectivity_abstraction - -CC_FLAGS.debug := -g -O0 -g3 -Wall -ffunction-sections -fdata-sections \ - -std=c++0x -pedantic $(INC_DIRS) -L$(ROOT_DIR)/$(BUILD) -DTB_LOG -CC_FLAGS.release := -Os -Wall -fdata-sections -Wl,--gc-sections -Wl,-s \ - -std=c++0x $(INC_DIRS) -L$(ROOT_DIR)/$(BUILD) - -CPPFLAGS += $(CC_FLAGS.$(BUILD)) $(CXX_LIBS) -lpthread - - - -all: prep_dirs $(MOCKS_DIR) unittests - -prep_dirs: - -mkdir -p $(OUT_DIR) - -unittests: OCPlatformTest.cpp OCResourceTest.cpp ConstructResourceTest.cpp OCRepresentationTest.cpp $(GTEST_LIBS) - $(CXX) $^ $(CPPFLAGS) -o $(OUT_DIR)/$@ - -$(GTEST_DIR): - cd ../../extlibs && \ - wget -q https://googletest.googlecode.com/files/gtest-1.7.0.zip && \ - unzip gtest-1.7.0.zip - -$(GTEST_LIBS): $(GTEST_DIR) - cd $(GTEST_DIR) && ./configure && make - -$(MOCKS_DIR): - cd ../../extlibs && \ - wget -q https://github.com/dascandy/hippomocks/archive/master.zip && \ - unzip master.zip - -.PHONY: clean - -clean: - -rm -rf release - -rm -rf debug - diff --git a/service/notification-manager/NotificationManager/build/linux/Makefile b/service/notification-manager/NotificationManager/build/linux/Makefile deleted file mode 100644 index 2c280f4..0000000 --- a/service/notification-manager/NotificationManager/build/linux/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -VPATH = ../../src:../../src/linux:../../../SampleApp/linux/sampleConsumer:../../../SampleApp/linux/sampleProvider - -OCPATH = ../../../../../resource -OCINCLUDE = $(OCPATH)/include -STACKINCLUDE = $(OCPATH)/csdk/stack/include -OCLOGGERINCLUDE = $(OCPATH)/oc_logger/include -NOTIFICATIONINCLUDE = ../../include -BOOSTPATH = ../../../../../boost_1_51_0 - -CXX=g++ -CXXFLAGS = -O2 -g -Wall -fmessage-length=0 -std=c++0x -I$(NOTIFICATIONINCLUDE) -I$(OCINCLUDE) -I$(STACKINCLUDE) -I$(SOCKETINCLUDE) -I$(OCLOGGERINCLUDE) -I$(BOOSTPATH) - -#OBJS = ResourceManager.o RegistrationManager.o VirtualRepresentation.o NotificationManager.o LinuxMain.o -OBJS = OICPlatformConfig.o HostingHandler.o HostingInterface.o ResourceManager.o RegistrationManager.o VirtualRepresentation.o NotificationManager.o main.o - -LIBS = $(OCPATH)/release/obj/liboc.a $(OCPATH)/csdk/linux/release/liboctbstack.a $(OCPATH)/oc_logger/lib/oc_logger.a - -all: NotificationManager SampleProvider SampleConsumer - -NotificationManager: $(OBJS) - $(CXX) -o NotificationManager $(OBJS) $(LIBS) -pthread - -SampleProvider: SampleProvider.o - $(CXX) -o SampleProvider SampleProvider.o $(LIBS) -pthread - -SampleConsumer: SampleConsumer.o - $(CXX) -o SampleConsumer SampleConsumer.o $(LIBS) -pthread - -clean: - rm -f $(OBJS) SampleConsumer.o SampleProvider.o NotificationManager SampleProvider SampleConsumer - diff --git a/service/protocol-plugin/build/linux/Makefile b/service/protocol-plugin/build/linux/Makefile deleted file mode 100644 index a3f6aa1..0000000 --- a/service/protocol-plugin/build/linux/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -PROTOCOL_ROOT = ../../ - -.PHONY:pre plugin-manager plugins sample-app - -all: .PHONY - -pre: - -mkdir release - -resource: - cd $(PROTOCOL_ROOT)../../resource && $(MAKE) - -plugin-manager: - cd $(PROTOCOL_ROOT)plugin-manager/build/linux && $(MAKE) - cp -Rdp $(PROTOCOL_ROOT)plugin-manager/build/linux/libppm.a release/ - cp -Rdp $(PROTOCOL_ROOT)plugin-manager/build/linux/libpmimpl.so release/ - -plugins: - cd $(PROTOCOL_ROOT)plugins/mqtt-fan/build/linux && $(MAKE) - cd $(PROTOCOL_ROOT)plugins/mqtt-light/build/linux && $(MAKE) - -sample-app: - cd $(PROTOCOL_ROOT)sample-app/linux/mqtt && $(MAKE) - cp -Rdp $(PROTOCOL_ROOT)plugin-manager/build/linux/libpmimpl.so $(PROTOCOL_ROOT)sample-app/linux/mqtt/ - cp -Rdp $(PROTOCOL_ROOT)sample-app/linux/mqtt/mqttclient release/ - cp -Rdp $(PROTOCOL_ROOT)sample-app/linux/mqtt/pluginmanager.xml release/ - -clean: - cd $(PROTOCOL_ROOT)plugin-manager/build/linux && $(MAKE) clean - cd $(PROTOCOL_ROOT)plugins/mqtt-fan/build/linux && $(MAKE) clean - cd $(PROTOCOL_ROOT)plugins/mqtt-light/build/linux && $(MAKE) clean - cd $(PROTOCOL_ROOT)sample-app/linux/mqtt && $(MAKE) clean - rm -rf release diff --git a/service/protocol-plugin/config.mk b/service/protocol-plugin/config.mk deleted file mode 100644 index 4ba23a2..0000000 --- a/service/protocol-plugin/config.mk +++ /dev/null @@ -1 +0,0 @@ -BOOST_DIR = /home/yh_.joo/Downloads/boost_1_51_0 diff --git a/service/protocol-plugin/plugins/mqtt-fan/build/linux/Makefile b/service/protocol-plugin/plugins/mqtt-fan/build/linux/Makefile deleted file mode 100644 index be886e9..0000000 --- a/service/protocol-plugin/plugins/mqtt-fan/build/linux/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -CXX = g++ - -CXX_FLAGS = -std=c++0x -Wall -pthread - -TOP_DIR = ../../../../../.. -LIB_DIR = ../../../../../../resource - -SRC_DIR = ../../src - -DEPEND_DIR:= $(LIB_DIR)/dependencies - -CXX_INC := -I$(LIB_DIR)/include/ -CXX_INC += -I$(LIB_DIR)/oc_logger/include/ -CXX_INC += -I$(LIB_DIR)/csdk/stack/include/ -CXX_INC += -I$(LIB_DIR)/csdk/ocrandom/include/ -CXX_INC += -I$(LIB_DIR)/csdk/logger/include/ -CXX_INC += -I$(BOOST_DIR) -CXX_INC += -I../../lib -CXX_INC += -I../../../../lib/cpluff/libcpluff -CXX_INC += -I../csdk/libcoap - -LIB_OC_LOGGER := $(LIB_DIR)/oc_logger/lib/oc_logger.a -CXX_LIBS := ../../../../lib/cpluff/libcpluff/.libs/libcpluff.a - -.PHONY: lib release_build ./release/fanserver_mqtt_plugin.so - -all: .PHONY - -lib: - cd ../../lib && $(MAKE) - -release_build: - -mkdir release - -mkdir release/obj - cp plugin.xml release - -./release/fanserver_mqtt_plugin.so: ./release/obj/fanserver_mqtt_plugin.o ./release/obj/fanserver.o - $(CXX) -shared -o ./release/fanserver_mqtt_plugin.so ./release/obj/fanserver_mqtt_plugin.o ./release/obj/fanserver.o $(CXX_LIBS) -L../../lib -L$(TOP_DIR)/out/linux/x86/release -lmosquitto -lssl -lrt -loc -loctbstack -loc_logger -lcoap - -./release/obj/fanserver_mqtt_plugin.o: $(SRC_DIR)/fanserver_mqtt_plugin.cpp - $(CXX) $(CXX_INC) -fPIC -o ./release/obj/fanserver_mqtt_plugin.o -c $(SRC_DIR)/fanserver_mqtt_plugin.cpp - -./release/obj/fanserver.o: $(SRC_DIR)/fanserver.cpp - $(CXX) $(CXX_FLAGS) -fPIC -o ./release/obj/fanserver.o -c $(SRC_DIR)/fanserver.cpp $(CXX_INC) - -clean: - cd ../../lib && $(MAKE) clean - rm -rf ./release/obj - cd ./release && rm -f *.so - diff --git a/service/protocol-plugin/plugins/mqtt-fan/lib/config.mk b/service/protocol-plugin/plugins/mqtt-fan/lib/config.mk deleted file mode 100644 index b199d20..0000000 --- a/service/protocol-plugin/plugins/mqtt-fan/lib/config.mk +++ /dev/null @@ -1,218 +0,0 @@ -# ============================================================================= -# User configuration section. -# -# Largely, these are options that are designed to make mosquitto run more -# easily in restrictive environments by removing features. -# -# Modify the variable below to enable/disable features. -# -# Can also be overriden at the command line, e.g.: -# -# make WITH_TLS=no -# ============================================================================= - -# Uncomment to compile the broker with tcpd/libwrap support. -#WITH_WRAP:=yes - -# Comment out to disable SSL/TLS support in the broker and client. -# Disabling this will also mean that passwords must be stored in plain text. It -# is strongly recommended that you only disable WITH_TLS if you are not using -# password authentication at all. -WITH_TLS:=yes - -# Comment out to disable TLS/PSK support in the broker and client. Requires -# WITH_TLS=yes. -# This must be disabled if using openssl < 1.0. -WITH_TLS_PSK:=yes - -# Comment out to disable client client threading support. -WITH_THREADING:=yes - -# Uncomment to compile the broker with strict protocol support. This means that -# both the client library and the broker will be very strict about protocol -# compliance on incoming data. Neither of them will return an error on -# incorrect "remaining length" values if this is commented out. The old -# behaviour (prior to 0.12) is equivalent to compiling with -# WITH_STRICT_PROTOCOL defined and means that clients will be immediately -# disconnected from the broker on non-compliance. -#WITH_STRICT_PROTOCOL:=yes - -# Comment out to remove bridge support from the broker. This allow the broker -# to connect to other brokers and subscribe/publish to topics. You probably -# want to leave this included unless you want to save a very small amount of -# memory size and CPU time. -WITH_BRIDGE:=yes - -# Comment out to remove persistent database support from the broker. This -# allows the broker to store retained messages and durable subscriptions to a -# file periodically and on shutdown. This is usually desirable (and is -# suggested by the MQTT spec), but it can be disabled if required. -WITH_PERSISTENCE:=yes - -# Comment out to remove memory tracking support from the broker. If disabled, -# mosquitto won't track heap memory usage nor export '$SYS/broker/heap/current -# size', but will use slightly less memory and CPU time. -WITH_MEMORY_TRACKING:=yes - -# Compile with database upgrading support? If disabled, mosquitto won't -# automatically upgrade old database versions. -# Not currently supported. -#WITH_DB_UPGRADE:=yes - -# Comment out to remove publishing of the $SYS topic hierarchy containing -# information about the broker state. -WITH_SYS_TREE:=yes - -# Build with Python module. Comment out if Python is not installed, or required -# Python modules are not available. -WITH_PYTHON:=yes - -# Build with SRV lookup support. -WITH_SRV:=no - -# ============================================================================= -# End of user configuration -# ============================================================================= - - -# Also bump lib/mosquitto.h, lib/python/setup.py, CMakeLists.txt, -# installer/mosquitto.nsi, installer/mosquitto-cygwin.nsi -VERSION=1.3.1 -TIMESTAMP:=$(shell date "+%F %T%z") - -# Client library SO version. Bump if incompatible API/ABI changes are made. -SOVERSION=1 - -# Man page generation requires xsltproc and docbook-xsl -XSLTPROC=xsltproc -# For html generation -DB_HTML_XSL=man/html.xsl - -#MANCOUNTRIES=en_GB - -UNAME:=$(shell uname -s) -ifeq ($(UNAME),SunOS) - ifeq ($(CC),cc) - CFLAGS?=-O - else - CFLAGS?=-Wall -ggdb -O2 - endif -else - CFLAGS?=-Wall -ggdb -O2 -endif - -LIB_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I. -I.. -I./lib -LIB_CXXFLAGS:=$(LIB_CFLAGS) ${CPPFLAGS} -LIB_LDFLAGS:=${LDFLAGS} - -BROKER_CFLAGS:=${LIB_CFLAGS} ${CPPFLAGS} -DVERSION="\"${VERSION}\"" -DTIMESTAMP="\"${TIMESTAMP}\"" -DWITH_BROKER -CLIENT_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I./lib -DVERSION="\"${VERSION}\"" - -ifeq ($(UNAME),FreeBSD) - BROKER_LIBS:=-lm -else - BROKER_LIBS:=-ldl -lm -endif -LIB_LIBS:= -PASSWD_LIBS:= - -ifeq ($(UNAME),Linux) - BROKER_LIBS:=$(BROKER_LIBS) -lrt - LIB_LIBS:=$(LIB_LIBS) -lrt -endif - -CLIENT_LDFLAGS:=$(LDFLAGS) -L./lib ./lib/libmosquitto.so.${SOVERSION} - -ifeq ($(UNAME),SunOS) - ifeq ($(CC),cc) - LIB_CFLAGS:=$(LIB_CFLAGS) -xc99 -KPIC - else - LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC - endif - - ifeq ($(CXX),CC) - LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -KPIC - else - LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -fPIC - endif -else - LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC - LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -fPIC -endif - -ifneq ($(UNAME),SunOS) - LIB_LDFLAGS:=$(LIB_LDFLAGS) -Wl,-soname,libmosquitto.so.$(SOVERSION) -endif - -ifeq ($(UNAME),QNX) - BROKER_LIBS:=$(BROKER_LIBS) -lsocket - LIB_LIBS:=$(LIB_LIBS) -lsocket -endif - -ifeq ($(WITH_WRAP),yes) - BROKER_LIBS:=$(BROKER_LIBS) -lwrap - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_WRAP -endif - -ifeq ($(WITH_TLS),yes) - BROKER_LIBS:=$(BROKER_LIBS) -lssl -lcrypto - LIB_LIBS:=$(LIB_LIBS) -lssl -lcrypto - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_TLS - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_TLS - PASSWD_LIBS:=-lcrypto - CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_TLS - - ifeq ($(WITH_TLS_PSK),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_TLS_PSK - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_TLS_PSK - CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_TLS_PSK - endif -endif - -ifeq ($(WITH_THREADING),yes) - LIB_LIBS:=$(LIB_LIBS) -lpthread - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_THREADING -endif - -ifeq ($(WITH_STRICT_PROTOCOL),yes) - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_STRICT_PROTOCOL - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_STRICT_PROTOCOL -endif - -ifeq ($(WITH_BRIDGE),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_BRIDGE -endif - -ifeq ($(WITH_PERSISTENCE),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_PERSISTENCE -endif - -ifeq ($(WITH_MEMORY_TRACKING),yes) - ifneq ($(UNAME),SunOS) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_MEMORY_TRACKING - endif -endif - -#ifeq ($(WITH_DB_UPGRADE),yes) -# BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_DB_UPGRADE -#endif - -ifeq ($(WITH_SYS_TREE),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYS_TREE -endif - -ifeq ($(WITH_SRV),yes) - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_SRV - LIB_LIBS:=$(LIB_LIBS) -lcares -endif - -ifeq ($(UNAME),SunOS) - BROKER_LIBS:=$(BROKER_LIBS) -lsocket -lnsl - LIB_LIBS:=$(LIB_LIBS) -lsocket -lnsl -endif - - -INSTALL?=install -prefix=/usr/local -mandir=${prefix}/share/man -localedir=${prefix}/share/locale diff --git a/service/protocol-plugin/plugins/mqtt-light/build/linux/Makefile b/service/protocol-plugin/plugins/mqtt-light/build/linux/Makefile deleted file mode 100644 index 18cc4ad..0000000 --- a/service/protocol-plugin/plugins/mqtt-light/build/linux/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -CXX = g++ - -CXX_FLAGS = -std=c++0x -Wall -pthread - -TOP_DIR = ../../../../../.. -LIB_DIR = ../../../../../../resource - -SRC_DIR = ../../src - -DEPEND_DIR:= $(LIB_DIR)/dependencies - -CXX_INC := -I$(LIB_DIR)/include/ -CXX_INC += -I$(LIB_DIR)/oc_logger/include/ -CXX_INC += -I$(LIB_DIR)/csdk/stack/include/ -CXX_INC += -I$(LIB_DIR)/csdk/ocrandom/include/ -CXX_INC += -I$(LIB_DIR)/csdk/logger/include/ -CXX_INC += -I$(BOOST_DIR) -CXX_INC += -I../../lib -CXX_INC += -I../../../../lib/cpluff/libcpluff -CXX_INC += -I../csdk/libcoap - -LIB_OC_LOGGER := $(LIB_DIR)/oc_logger/lib/oc_logger.a -CXX_LIBS := ../../../../lib/cpluff/libcpluff/.libs/libcpluff.a - -.PHONY: lib release_build ./release/lightserver_mqtt_plugin.so - -all: .PHONY - -lib: - cd ../../lib && $(MAKE) - -release_build: - -mkdir release - -mkdir release/obj - cp plugin.xml release - -./release/lightserver_mqtt_plugin.so: ./release/obj/lightserver_mqtt_plugin.o ./release/obj/lightserver.o - $(CXX) -shared -o ./release/lightserver_mqtt_plugin.so ./release/obj/lightserver_mqtt_plugin.o ./release/obj/lightserver.o $(CXX_LIBS) -L../../lib -L$(TOP_DIR)/out/linux/x86/release -lmosquitto -lssl -lrt -loc -loctbstack -loc_logger -lcoap - -./release/obj/lightserver_mqtt_plugin.o: $(SRC_DIR)/lightserver_mqtt_plugin.cpp - $(CXX) $(CXX_INC) -fPIC -o ./release/obj/lightserver_mqtt_plugin.o -c $(SRC_DIR)/lightserver_mqtt_plugin.cpp - -./release/obj/lightserver.o: $(SRC_DIR)/lightserver.cpp - $(CXX) $(CXX_FLAGS) -fPIC -o ./release/obj/lightserver.o -c $(SRC_DIR)/lightserver.cpp $(CXX_INC) - -clean: - cd ../../lib && $(MAKE) clean - rm -rf ./release/obj - cd ./release && rm -f *.so - diff --git a/service/protocol-plugin/plugins/mqtt-light/lib/config.mk b/service/protocol-plugin/plugins/mqtt-light/lib/config.mk deleted file mode 100644 index b199d20..0000000 --- a/service/protocol-plugin/plugins/mqtt-light/lib/config.mk +++ /dev/null @@ -1,218 +0,0 @@ -# ============================================================================= -# User configuration section. -# -# Largely, these are options that are designed to make mosquitto run more -# easily in restrictive environments by removing features. -# -# Modify the variable below to enable/disable features. -# -# Can also be overriden at the command line, e.g.: -# -# make WITH_TLS=no -# ============================================================================= - -# Uncomment to compile the broker with tcpd/libwrap support. -#WITH_WRAP:=yes - -# Comment out to disable SSL/TLS support in the broker and client. -# Disabling this will also mean that passwords must be stored in plain text. It -# is strongly recommended that you only disable WITH_TLS if you are not using -# password authentication at all. -WITH_TLS:=yes - -# Comment out to disable TLS/PSK support in the broker and client. Requires -# WITH_TLS=yes. -# This must be disabled if using openssl < 1.0. -WITH_TLS_PSK:=yes - -# Comment out to disable client client threading support. -WITH_THREADING:=yes - -# Uncomment to compile the broker with strict protocol support. This means that -# both the client library and the broker will be very strict about protocol -# compliance on incoming data. Neither of them will return an error on -# incorrect "remaining length" values if this is commented out. The old -# behaviour (prior to 0.12) is equivalent to compiling with -# WITH_STRICT_PROTOCOL defined and means that clients will be immediately -# disconnected from the broker on non-compliance. -#WITH_STRICT_PROTOCOL:=yes - -# Comment out to remove bridge support from the broker. This allow the broker -# to connect to other brokers and subscribe/publish to topics. You probably -# want to leave this included unless you want to save a very small amount of -# memory size and CPU time. -WITH_BRIDGE:=yes - -# Comment out to remove persistent database support from the broker. This -# allows the broker to store retained messages and durable subscriptions to a -# file periodically and on shutdown. This is usually desirable (and is -# suggested by the MQTT spec), but it can be disabled if required. -WITH_PERSISTENCE:=yes - -# Comment out to remove memory tracking support from the broker. If disabled, -# mosquitto won't track heap memory usage nor export '$SYS/broker/heap/current -# size', but will use slightly less memory and CPU time. -WITH_MEMORY_TRACKING:=yes - -# Compile with database upgrading support? If disabled, mosquitto won't -# automatically upgrade old database versions. -# Not currently supported. -#WITH_DB_UPGRADE:=yes - -# Comment out to remove publishing of the $SYS topic hierarchy containing -# information about the broker state. -WITH_SYS_TREE:=yes - -# Build with Python module. Comment out if Python is not installed, or required -# Python modules are not available. -WITH_PYTHON:=yes - -# Build with SRV lookup support. -WITH_SRV:=no - -# ============================================================================= -# End of user configuration -# ============================================================================= - - -# Also bump lib/mosquitto.h, lib/python/setup.py, CMakeLists.txt, -# installer/mosquitto.nsi, installer/mosquitto-cygwin.nsi -VERSION=1.3.1 -TIMESTAMP:=$(shell date "+%F %T%z") - -# Client library SO version. Bump if incompatible API/ABI changes are made. -SOVERSION=1 - -# Man page generation requires xsltproc and docbook-xsl -XSLTPROC=xsltproc -# For html generation -DB_HTML_XSL=man/html.xsl - -#MANCOUNTRIES=en_GB - -UNAME:=$(shell uname -s) -ifeq ($(UNAME),SunOS) - ifeq ($(CC),cc) - CFLAGS?=-O - else - CFLAGS?=-Wall -ggdb -O2 - endif -else - CFLAGS?=-Wall -ggdb -O2 -endif - -LIB_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I. -I.. -I./lib -LIB_CXXFLAGS:=$(LIB_CFLAGS) ${CPPFLAGS} -LIB_LDFLAGS:=${LDFLAGS} - -BROKER_CFLAGS:=${LIB_CFLAGS} ${CPPFLAGS} -DVERSION="\"${VERSION}\"" -DTIMESTAMP="\"${TIMESTAMP}\"" -DWITH_BROKER -CLIENT_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I./lib -DVERSION="\"${VERSION}\"" - -ifeq ($(UNAME),FreeBSD) - BROKER_LIBS:=-lm -else - BROKER_LIBS:=-ldl -lm -endif -LIB_LIBS:= -PASSWD_LIBS:= - -ifeq ($(UNAME),Linux) - BROKER_LIBS:=$(BROKER_LIBS) -lrt - LIB_LIBS:=$(LIB_LIBS) -lrt -endif - -CLIENT_LDFLAGS:=$(LDFLAGS) -L./lib ./lib/libmosquitto.so.${SOVERSION} - -ifeq ($(UNAME),SunOS) - ifeq ($(CC),cc) - LIB_CFLAGS:=$(LIB_CFLAGS) -xc99 -KPIC - else - LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC - endif - - ifeq ($(CXX),CC) - LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -KPIC - else - LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -fPIC - endif -else - LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC - LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -fPIC -endif - -ifneq ($(UNAME),SunOS) - LIB_LDFLAGS:=$(LIB_LDFLAGS) -Wl,-soname,libmosquitto.so.$(SOVERSION) -endif - -ifeq ($(UNAME),QNX) - BROKER_LIBS:=$(BROKER_LIBS) -lsocket - LIB_LIBS:=$(LIB_LIBS) -lsocket -endif - -ifeq ($(WITH_WRAP),yes) - BROKER_LIBS:=$(BROKER_LIBS) -lwrap - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_WRAP -endif - -ifeq ($(WITH_TLS),yes) - BROKER_LIBS:=$(BROKER_LIBS) -lssl -lcrypto - LIB_LIBS:=$(LIB_LIBS) -lssl -lcrypto - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_TLS - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_TLS - PASSWD_LIBS:=-lcrypto - CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_TLS - - ifeq ($(WITH_TLS_PSK),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_TLS_PSK - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_TLS_PSK - CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_TLS_PSK - endif -endif - -ifeq ($(WITH_THREADING),yes) - LIB_LIBS:=$(LIB_LIBS) -lpthread - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_THREADING -endif - -ifeq ($(WITH_STRICT_PROTOCOL),yes) - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_STRICT_PROTOCOL - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_STRICT_PROTOCOL -endif - -ifeq ($(WITH_BRIDGE),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_BRIDGE -endif - -ifeq ($(WITH_PERSISTENCE),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_PERSISTENCE -endif - -ifeq ($(WITH_MEMORY_TRACKING),yes) - ifneq ($(UNAME),SunOS) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_MEMORY_TRACKING - endif -endif - -#ifeq ($(WITH_DB_UPGRADE),yes) -# BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_DB_UPGRADE -#endif - -ifeq ($(WITH_SYS_TREE),yes) - BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYS_TREE -endif - -ifeq ($(WITH_SRV),yes) - LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_SRV - LIB_LIBS:=$(LIB_LIBS) -lcares -endif - -ifeq ($(UNAME),SunOS) - BROKER_LIBS:=$(BROKER_LIBS) -lsocket -lnsl - LIB_LIBS:=$(LIB_LIBS) -lsocket -lnsl -endif - - -INSTALL?=install -prefix=/usr/local -mandir=${prefix}/share/man -localedir=${prefix}/share/locale diff --git a/service/protocol-plugin/sample-app/linux/mqtt/Makefile b/service/protocol-plugin/sample-app/linux/mqtt/Makefile deleted file mode 100644 index 8078783..0000000 --- a/service/protocol-plugin/sample-app/linux/mqtt/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -CXX = g++ - -CXX_FLAGS = -std=c++0x -Wall -pthread - -TOP_DIR = ../../../../.. -LIB_DIR = ../../../../../resource - -DEPEND_DIR:= $(LIB_DIR)/dependencies - -CXX_INC := -I$(LIB_DIR)/include/ -CXX_INC += -I$(LIB_DIR)/oc_logger/include/ -CXX_INC += -I$(LIB_DIR)/csdk/stack/include/ -CXX_INC += -I$(LIB_DIR)/csdk/ocrandom/include/ -CXX_INC += -I$(LIB_DIR)/csdk/logger/include/ -CXX_INC += -I$(TOP_DIR)/extlibs/rapidxml/ -CXX_INC += -I$(BOOST_DIR) -CXX_INC += -I../../lib -CXX_INC += -I../../../lib/cpluff/libcpluff -CXX_INC += -I../../../plugin-manager/src -CXX_INC += -I../../../lib/rapidxml - -LIB_OC_LOGGER := $(LIB_DIR)/oc_logger/lib/oc_logger.a -CXX_LIBS := ../../../build/linux/release/libppm.a ../../../lib/cpluff/libcpluff/.libs/libcpluff.a -LINK_LIB = -lboost_system -ldl -lexpat -lboost_thread -L$(TOP_DIR)/out/linux/x86/release -loc -loctbstack -loc_logger -lcoap - -.PHONY: mqttclient - -all: .PHONY - -mqttclient: mqttclient.o - $(CXX) $(CXX_FLAGS) -o mqttclient mqttclient.o $(CXX_LIBS) $(LINK_LIB) - -mqttclient.o: mqttclient.cpp - $(CXX) $(CXX_FLAGS) -c mqttclient.cpp $(CXX_INC) - - -clean: - rm -f *.o - rm -f *.so - rm -f mqttclient - diff --git a/service/soft-sensor-manager/SDK/cpp/build/linux/Makefile b/service/soft-sensor-manager/SDK/cpp/build/linux/Makefile deleted file mode 100644 index 495c640..0000000 --- a/service/soft-sensor-manager/SDK/cpp/build/linux/Makefile +++ /dev/null @@ -1,54 +0,0 @@ --include ../../../../build/linux/root_path.inc --include ../../../../build/linux/environment.mk - -BOOST=${BOOST_BASE} -SRC_PATH=../../src -INC_PATH=../../include -RST_NAME=release - -GAR=ar - -# Insert your project name. -TARGET=${SSM_LIB} - -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -pthread -DLINUX -DNDEBUG -CXX_INC=-I../../ -I${INC_PATH}/ -I${FD_SSMCORE}/include -I${FD_SSMCORE}/src -I${BOOST} -CXX_LIB= - -SRCLIST=${wildcard ${SRC_PATH}/*.cpp} -OBJPATH=${SRCLIST:.cpp=.o} -OBJLIST=${notdir ${OBJPATH}} - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job ${TARGET} post_job - -pre_job: - @echo " " - @echo "--------- SDK Build Begin. ----------" - @mkdir -p ${RST_NAME} - @echo " " - -${TARGET}: ${OBJLIST} - ${GAR} -r ./${RST_NAME}/$@ ./*.o - @cp -Rdp ${INC_PATH}/*.h ./${RST_NAME}/ - @echo " " - -%.o : ${SRC_PATH}/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o $@ - @echo " " - -post_job: - @echo " " - @cp -Rdp ./${RST_NAME}/* ${OUTPUTS_DIR}/ - @echo "--------- SDK Build Successful. ---------" - @echo "Enter to ${RST_NAME} folder." - @echo " " - - -clean: - rm -f -v *.o ${TARGET} - rm -rf ./${RST_NAME} - diff --git a/service/soft-sensor-manager/SSMCore/build/linux/Makefile b/service/soft-sensor-manager/SSMCore/build/linux/Makefile deleted file mode 100644 index e49d755..0000000 --- a/service/soft-sensor-manager/SSMCore/build/linux/Makefile +++ /dev/null @@ -1,85 +0,0 @@ --include ../../../build/linux/root_path.inc --include ../../../build/linux/environment.mk - -BOOST=${BOOST_BASE} -SRC_PATH=../../src -INC_PATH=../../include -RST_NAME=release - -# Insert your project name. -TARGET=${SSMCORE_LIB} -EXCLUDE_LIST=SSMCore_JNI.cpp - -# C++ type Compile Flag define. -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -pthread -DLINUX -ldl -DNDEBUG -CXX_INC=-I${INC_PATH}/ -I${SRC_PATH}/ -I${IOT_BASE}/include/ -I${IOT_LOG_DIR}/include/ -I${IOT_BASE}/csdk/stack/include -I${IOT_BASE}/csdk/ocrandom/include -I${IOT_BASE}/csdk/logger/include -I${BOOST} -CXX_LIB=-L"" - -CXX_SRCPATH=${wildcard ${SRC_PATH}/**/*.cpp} -CXX_SRCPATH+=${wildcard ${SRC_PATH}/*.cpp} -CXX_SRCLIST=${notdir ${CXX_SRCPATH}} -CXX_USESRCS=${filter-out ${EXCLUDE_LIST}, ${CXX_SRCLIST}} -CXX_OBJLIST=${CXX_USESRCS:.cpp=.o} - -# C type Compile Flag define. -GCC=gcc -GCC_FLAGS=-Wall -pthread -DLINUX -ldl -DNDEBUG -GCC_INC=-I../../ -I${INC_PATH}/ -I${IOT_BASE}/include/ -I${IOT_BASE}/csdk/stack/include -I${IOT_BASE}/csdk/ocrandom/include -I${IOT_BASE}/csdk/logger/include -I${BOOST} -I${SRC_PATH} -I${SRC_PATH}/Common -I${SRC_PATH}/QueryProcessor -I${SRC_PATH}/SensorProcessor -I${SRC_PATH}/SSMInterface - -GCC_SRCPATH=${wildcard ${SRC_PATH}/**/*.c} -GCC_SRCLIST=${notdir ${GCC_SRCPATH}} -GCC_USESRCS=${filter-out ${EXCLUDE_LIST}, ${GCC_SRCLIST}} -GCC_OBJLIST=${GCC_USESRCS:.c=.o} - -# Linker FLAGS define. -LD_FLAGS=-std=c++0x -Wall -DLINUX -GAR=ar -# LD_LIB=${IOT_RELEASE}/${IOT_LIB} ${IOT_CSDK_RELEASE}/${IOT_CSDK_LIB} ${IOT_LOG_DIR}/lib/${IOT_LOG_LIB} -lpthread -ldl - - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job ${TARGET} post_job - -pre_job: - @echo " " - @echo "---------- SSMCore Build Begin. -------------" - @mkdir -p ${RST_NAME} - @echo " " - @echo "${MODEL_DIR}" - -${TARGET}: ${GCC_OBJLIST} ${CXX_OBJLIST} - # $(CXX) $(LD_FLAGS) -o ./${RST_NAME}/$@ $^ ${LD_LIB} - ${GAR} -r ./${RST_NAME}/$@ ./*.o - @echo " " - -%.o : ${SRC_PATH}/**/%.c - ${GCC} ${GCC_FLAGS} -c $< ${GCC_INC} -o $@ - @echo " " - -%.o : ${SRC_PATH}/**/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o $@ - @echo " " - -%.o : ${SRC_PATH}/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o $@ - @echo " " - -post_job: - @echo " " - cp -Rdp ${INC_PATH}/SSMInterface.h ${FD_SDK}/include/ - cp -Rdp ./${RST_NAME}/${TARGET} ${OUTPUTS_DIR}/ - cp -Rdp ${INC_PATH}/SSMInterface.h ${OUTPUTS_DIR}/ - cp -Rdp ${SRC_PATH}/SSMInterface/SSMModelDefinition.h ${OUTPUTS_DIR}/ - @echo "---------------- SSMCore Build Successful. ---------------" - @echo "Enter to ${RST_NAME} folder." - @echo " " - - -clean: - rm -f -v *.o ${TARGET} - rm -rf ./${RST_NAME} - - diff --git a/service/soft-sensor-manager/SampleApp/arduino/Reference_Thing/build/makefile b/service/soft-sensor-manager/SampleApp/arduino/Reference_Thing/build/makefile deleted file mode 100644 index dfa246b..0000000 --- a/service/soft-sensor-manager/SampleApp/arduino/Reference_Thing/build/makefile +++ /dev/null @@ -1,116 +0,0 @@ --include ../../../../build/arduino/root_path.inc --include ../../../../build/arduino/environment.mk - -ARDUINO_DIR = /usr/share/arduino -SRC_PATH=../src - -# override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield -ARDUINOWIFI := 0 - -APP_NAME := trackee - -BUILD := release -#BUILD := debug -PLATFORM := arduinomega -ARDUINO_PORT := /dev/ttyACM0 - -SRCLIST=${wildcard ${SRC_PATH}/*.cpp} -OBJPATH=${SRCLIST:.cpp=.o} -OBJLIST=${notdir ${OBJPATH}} - -TB_DIR = ${IOT_BASE}/csdk -OIC_BUILD_DIR = ${IOT_CSDK_MAKE_PATH} -LOGGER_DIR = $(TB_DIR)/logger -OC_LOG_DIR = $(TB_DIR)/../oc_logger -TBSTACK_DIR = $(TB_DIR)/stack -TBSOCKET_DIR = $(TB_DIR)/ocsocket - -include $(TB_DIR)/local.properties -include $(TB_DIR)/$(PLATFORM).properties - -VPATH := $(SDIR_ARD_PLATFORM) - -#include directories -OCSOCK_DIR = $(TB_DIR)/ocsocket -LOGGER_DIR = $(TB_DIR)/logger -STACK_DIR = $(TB_DIR)/stack -INC_DIRS = -I$(OCSOCK_DIR)/include/ -I$(OC_LOG_DIR)/include -I$(LOGGER_DIR)/include -I$(STACK_DIR)/include -I../include - -CC_FLAGS.debug := -O1 -g3 -Wall -c -fmessage-length=0 -pedantic -fpic -CC_FLAGS.release := -Os -Wall -c -fmessage-length=0 -fpic - -CFLAGS := $(CC_FLAGS.$(BUILD)) -DTB_LOG - -ifeq ($(ARDUINOWIFI),1) - CFLAGS += -DARDUINOWIFI - ARDUINO_SHIELD_TYPE := "/wifi_shield" - TRANSPORT_OBJS = $(WIFI_COBJ) -else - ARDUINO_SHIELD_TYPE := "/ethernet_shield" - TRANSPORT_OBJS = $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) -endif - -.PHONY: all install resource clean - -all: prep_dirs core.a $(APP_NAME).elf $(APP_NAME).hex - -OBJ_DIR := ./bin - -resource: preclean - @cd $(OIC_BUILD_DIR) && make PLATFORM=${PLATFORM} ARDUINOWIFI=${ARDUINOWIFI} - -preclean: - @cd $(OIC_BUILD_DIR) && make deepclean - -core.a: $(PLATFORM_OBJS) - @echo ">>>>>>>>>>> core.a build <<<<<<<<<<<<<<" - @cd $(OBJ_DIR) && $(AR) -x $(TB_DIR)/$(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD)/liboctbstack.a - $(AR) rcs $@ $^ $(OBJ_DIR)/*.o - $(RANLIB) $@ - -prep_dirs: - -mkdir -p $(OBJ_DIR) - -%.o: %.c - $(CC) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $@ -%.o: %.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $@ -%.o: ${SRC_PATH}/%.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $@ - -$(APP_NAME).elf: $(OBJLIST) core.a -ifeq ($(PLATFORM),arduinomega) - $(CC) -Os -Wl,--gc-sections,--relax $(CFLAGS_PLATFORM) $^ -lm -o $@ -else ifeq ($(PLATFORM),arduinodue) -# $(CXX) -Os -Wl,--gc-sections -mcpu=cortex-m3 -T/$(SDIR_ARD_CORE_3)/linker_scripts/gcc/flash.ld -Wl,-Map,$(APP_NAME).map -o $(OBJ_DIR)/$@ -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group $(foreach obj, $(APP_NAME).o $(SYSCALLS_SAM3_OBJ) $(SPI_OBJ) $(TRANSPORT_OBJS) $(VARIANT_OBJ) core.a, $(OBJ_DIR)/$(obj)) $(SDIR_ARD_CORE_3)/libsam_sam3x8e_gcc_rel.a -Wl,--end-group - $(error Not yet Supported !! ) -else - $(error Wrong value for PLATFORM !!) -endif - -$(APP_NAME).hex: $(APP_NAME).elf -ifeq ($(PLATFORM),arduinomega) - $(AVR_OBJCOPY) -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $< $(APP_NAME).eep - $(AVR_OBJCOPY) -O ihex -R .eeprom $< $@ -else ifeq ($(PLATFORM),arduinodue) - $(ARDUINO_TOOLS_DIR)/arm-none-eabi-objcopy -O binary $< $@ -else - $(error Wrong value for PLATFORM !!) -endif - -install: -ifeq ($(PLATFORM),arduinomega) - $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(APP_NAME).hex:i -else ifeq ($(PLATFORM),arduinodue) - stty -F /dev/$(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb - $(ARDUINO_DIR)/hardware/tools/bossac -i -d --port=$(ARDUINO_PORT) -U false -e -w -v -b $(APP_NAME).hex -R -else - $(error Wrong value for PLATFORM !!) -endif - - - -clean: - @rm -f *.o *.d *.elf *.eep *.a *.hex *.bin *.map *- - @rm -rf $(OBJ_DIR) - diff --git a/service/soft-sensor-manager/SampleApp/arduino/THSensorApp/build/makefile b/service/soft-sensor-manager/SampleApp/arduino/THSensorApp/build/makefile deleted file mode 100644 index e3203bc..0000000 --- a/service/soft-sensor-manager/SampleApp/arduino/THSensorApp/build/makefile +++ /dev/null @@ -1,106 +0,0 @@ --include ../../../../build/arduino/environment.mk -ARDUINO_DIR = /usr/share/arduino - -BUILD := release -PLATFORM := arduinomega -ARDUINO_PORT := ttyACM0 - -SRC_PATH=../src -# override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield -ARDUINOWIFI := 0 - -APP_NAME := thserver - -TB_DIR = ../../../../../../resource/csdk -LOGGER_DIR = $(TB_DIR)/logger -OC_LOG_DIR = $(TB_DIR)/../oc_logger -TBSTACK_DIR = $(TB_DIR)/stack -TBSOCKET_DIR = $(TB_DIR)/ocsocket - -include $(TB_DIR)/local.properties -include $(TB_DIR)/$(PLATFORM).properties - -VPATH := $(SDIR_ARD_PLATFORM) - -#include directories -OCSOCK_DIR = $(TB_DIR)/ocsocket -LOGGER_DIR = $(TB_DIR)/logger -STACK_DIR = $(TB_DIR)/stack -INC_DIRS = -I$(OCSOCK_DIR)/include/ -I$(OC_LOG_DIR)/include -I$(LOGGER_DIR)/include -I$(STACK_DIR)/include - -CC_FLAGS.debug := -O1 -g3 -Wall -c -fmessage-length=0 -pedantic -fpic -CC_FLAGS.release := -Os -Wall -c -fmessage-length=0 -fpic - -CFLAGS := $(CC_FLAGS.$(BUILD)) -DTB_LOG - -ifeq ($(ARDUINOWIFI),1) - CFLAGS += -DARDUINOWIFI - ARDUINO_SHIELD_TYPE := "/wifi_shield" - TRANSPORT_OBJS = $(WIFI_COBJ) -else - ARDUINO_SHIELD_TYPE := "/ethernet_shield" - TRANSPORT_OBJS = $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) -endif - -OUT_DIR := $(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD) - -OBJ_DIR := $(OUT_DIR)/bin - -all: prep_dirs core.a $(APP_NAME).o $(APP_NAME).elf $(APP_NAME).hex - -core.a: $(PLATFORM_OBJS) - @cd $(OBJ_DIR) && $(AR) -x ../../../../$(TB_DIR)/$(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD)/liboctbstack.a - $(AR) rcs $(OBJ_DIR)/$@ $(foreach obj, $^, $(OBJ_DIR)/$(obj)) $(OBJ_DIR)/*.o - @cd $(OBJ_DIR) && $(RANLIB) $@ - -prep_dirs: - -mkdir $(PLATFORM) - -mkdir $(PLATFORM)/$(ARDUINO_SHIELD_TYPE) - -mkdir $(OUT_DIR) - -mkdir $(OBJ_DIR) - -%.o: %.c - $(CC) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ -%.o: %.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ -%.o: ${SRC_PATH}/%.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ - -$(APP_NAME).elf: $(APP_NAME).o core.a -ifeq ($(PLATFORM),arduinomega) - $(CC) -Os -Wl,--gc-sections,--relax $(CFLAGS_PLATFORM) $(foreach obj, $^, $(OBJ_DIR)/$(obj)) -lm -o $(OBJ_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(CXX) -Os -Wl,--gc-sections -mcpu=cortex-m3 -T/$(SDIR_ARD_CORE_3)/linker_scripts/gcc/flash.ld -Wl,-Map,$(APP_NAME).map -o $(OBJ_DIR)/$@ -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group $(foreach obj, $(APP_NAME).o $(SYSCALLS_SAM3_OBJ) $(SPI_OBJ) $(TRANSPORT_OBJS) $(VARIANT_OBJ) core.a, $(OBJ_DIR)/$(obj)) $(SDIR_ARD_CORE_3)/libsam_sam3x8e_gcc_rel.a -Wl,--end-group -else - $(error Wrong value for PLATFORM !!) -endif - -$(APP_NAME).hex: $(APP_NAME).elf -ifeq ($(PLATFORM),arduinomega) - $(AVR_OBJCOPY) -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $(OBJ_DIR)/$< $(OBJ_DIR)/$(APP_NAME).eep - $(AVR_OBJCOPY) -O ihex -R .eeprom $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(ARDUINO_TOOLS_DIR)/arm-none-eabi-objcopy -O binary $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else - $(error Wrong value for PLATFORM !!) -endif - -install: all -ifeq ($(PLATFORM),arduinomega) - $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i -else ifeq ($(PLATFORM),arduinodue) - stty -F /dev/$(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb - $(ARDUINO_DIR)/hardware/tools/bossac -i -d --port=$(ARDUINO_PORT) -U false -e -w -v -b $(OUT_DIR)/$(APP_NAME).hex -R -else - $(error Wrong value for PLATFORM !!) -endif - -.PHONY: clean - -clean: legacy_clean - rm -rf arduinomega - rm -rf arduinodue - -legacy_clean: - @rm -rf bin - @rm -f *.o *.d *.elf *.eep *.a *.hex *.bin *.map *- diff --git a/service/soft-sensor-manager/SampleApp/arduino/THSensorApp1/build/makefile b/service/soft-sensor-manager/SampleApp/arduino/THSensorApp1/build/makefile deleted file mode 100644 index e3203bc..0000000 --- a/service/soft-sensor-manager/SampleApp/arduino/THSensorApp1/build/makefile +++ /dev/null @@ -1,106 +0,0 @@ --include ../../../../build/arduino/environment.mk -ARDUINO_DIR = /usr/share/arduino - -BUILD := release -PLATFORM := arduinomega -ARDUINO_PORT := ttyACM0 - -SRC_PATH=../src -# override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield -ARDUINOWIFI := 0 - -APP_NAME := thserver - -TB_DIR = ../../../../../../resource/csdk -LOGGER_DIR = $(TB_DIR)/logger -OC_LOG_DIR = $(TB_DIR)/../oc_logger -TBSTACK_DIR = $(TB_DIR)/stack -TBSOCKET_DIR = $(TB_DIR)/ocsocket - -include $(TB_DIR)/local.properties -include $(TB_DIR)/$(PLATFORM).properties - -VPATH := $(SDIR_ARD_PLATFORM) - -#include directories -OCSOCK_DIR = $(TB_DIR)/ocsocket -LOGGER_DIR = $(TB_DIR)/logger -STACK_DIR = $(TB_DIR)/stack -INC_DIRS = -I$(OCSOCK_DIR)/include/ -I$(OC_LOG_DIR)/include -I$(LOGGER_DIR)/include -I$(STACK_DIR)/include - -CC_FLAGS.debug := -O1 -g3 -Wall -c -fmessage-length=0 -pedantic -fpic -CC_FLAGS.release := -Os -Wall -c -fmessage-length=0 -fpic - -CFLAGS := $(CC_FLAGS.$(BUILD)) -DTB_LOG - -ifeq ($(ARDUINOWIFI),1) - CFLAGS += -DARDUINOWIFI - ARDUINO_SHIELD_TYPE := "/wifi_shield" - TRANSPORT_OBJS = $(WIFI_COBJ) -else - ARDUINO_SHIELD_TYPE := "/ethernet_shield" - TRANSPORT_OBJS = $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) -endif - -OUT_DIR := $(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD) - -OBJ_DIR := $(OUT_DIR)/bin - -all: prep_dirs core.a $(APP_NAME).o $(APP_NAME).elf $(APP_NAME).hex - -core.a: $(PLATFORM_OBJS) - @cd $(OBJ_DIR) && $(AR) -x ../../../../$(TB_DIR)/$(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD)/liboctbstack.a - $(AR) rcs $(OBJ_DIR)/$@ $(foreach obj, $^, $(OBJ_DIR)/$(obj)) $(OBJ_DIR)/*.o - @cd $(OBJ_DIR) && $(RANLIB) $@ - -prep_dirs: - -mkdir $(PLATFORM) - -mkdir $(PLATFORM)/$(ARDUINO_SHIELD_TYPE) - -mkdir $(OUT_DIR) - -mkdir $(OBJ_DIR) - -%.o: %.c - $(CC) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ -%.o: %.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ -%.o: ${SRC_PATH}/%.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ - -$(APP_NAME).elf: $(APP_NAME).o core.a -ifeq ($(PLATFORM),arduinomega) - $(CC) -Os -Wl,--gc-sections,--relax $(CFLAGS_PLATFORM) $(foreach obj, $^, $(OBJ_DIR)/$(obj)) -lm -o $(OBJ_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(CXX) -Os -Wl,--gc-sections -mcpu=cortex-m3 -T/$(SDIR_ARD_CORE_3)/linker_scripts/gcc/flash.ld -Wl,-Map,$(APP_NAME).map -o $(OBJ_DIR)/$@ -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group $(foreach obj, $(APP_NAME).o $(SYSCALLS_SAM3_OBJ) $(SPI_OBJ) $(TRANSPORT_OBJS) $(VARIANT_OBJ) core.a, $(OBJ_DIR)/$(obj)) $(SDIR_ARD_CORE_3)/libsam_sam3x8e_gcc_rel.a -Wl,--end-group -else - $(error Wrong value for PLATFORM !!) -endif - -$(APP_NAME).hex: $(APP_NAME).elf -ifeq ($(PLATFORM),arduinomega) - $(AVR_OBJCOPY) -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $(OBJ_DIR)/$< $(OBJ_DIR)/$(APP_NAME).eep - $(AVR_OBJCOPY) -O ihex -R .eeprom $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(ARDUINO_TOOLS_DIR)/arm-none-eabi-objcopy -O binary $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else - $(error Wrong value for PLATFORM !!) -endif - -install: all -ifeq ($(PLATFORM),arduinomega) - $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i -else ifeq ($(PLATFORM),arduinodue) - stty -F /dev/$(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb - $(ARDUINO_DIR)/hardware/tools/bossac -i -d --port=$(ARDUINO_PORT) -U false -e -w -v -b $(OUT_DIR)/$(APP_NAME).hex -R -else - $(error Wrong value for PLATFORM !!) -endif - -.PHONY: clean - -clean: legacy_clean - rm -rf arduinomega - rm -rf arduinodue - -legacy_clean: - @rm -rf bin - @rm -f *.o *.d *.elf *.eep *.a *.hex *.bin *.map *- diff --git a/service/soft-sensor-manager/SampleApp/arduino/Trackee_Thing/build/makefile b/service/soft-sensor-manager/SampleApp/arduino/Trackee_Thing/build/makefile deleted file mode 100644 index 9f79050..0000000 --- a/service/soft-sensor-manager/SampleApp/arduino/Trackee_Thing/build/makefile +++ /dev/null @@ -1,110 +0,0 @@ --include ../../../../build/arduino/environment.mk -ARDUINO_DIR = /usr/share/arduino - -BUILD := release -PLATFORM := arduinomega -ARDUINO_PORT := ttyACM0 - -SRCLIST=${wildcard ${SRC_PATH}/*.cpp} -OBJPATH=${SRCLIST:.cpp=.o} -OBJLIST=${notdir ${OBJPATH}} - -SRC_PATH=../src -# override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield -ARDUINOWIFI := 0 - -APP_NAME := trackee - -TB_DIR = ../../../../../../resource/csdk -LOGGER_DIR = $(TB_DIR)/logger -OC_LOG_DIR = $(TB_DIR)/../oc_logger -TBSTACK_DIR = $(TB_DIR)/stack -TBSOCKET_DIR = $(TB_DIR)/ocsocket - -include $(TB_DIR)/local.properties -include $(TB_DIR)/$(PLATFORM).properties - -VPATH := $(SDIR_ARD_PLATFORM) - -#include directories -OCSOCK_DIR = $(TB_DIR)/ocsocket -LOGGER_DIR = $(TB_DIR)/logger -STACK_DIR = $(TB_DIR)/stack -INC_DIRS = -I$(OCSOCK_DIR)/include/ -I$(OC_LOG_DIR)/include -I$(LOGGER_DIR)/include -I$(STACK_DIR)/include -I../include - -CC_FLAGS.debug := -O1 -g3 -Wall -c -fmessage-length=0 -pedantic -fpic -CC_FLAGS.release := -Os -Wall -c -fmessage-length=0 -fpic - -CFLAGS := $(CC_FLAGS.$(BUILD)) -DTB_LOG - -ifeq ($(ARDUINOWIFI),1) - CFLAGS += -DARDUINOWIFI - ARDUINO_SHIELD_TYPE := "/wifi_shield" - TRANSPORT_OBJS = $(WIFI_COBJ) -else - ARDUINO_SHIELD_TYPE := "/ethernet_shield" - TRANSPORT_OBJS = $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) -endif - -OUT_DIR := $(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD) - -OBJ_DIR := $(OUT_DIR)/bin - -all: prep_dirs core.a $(APP_NAME).o $(APP_NAME).elf $(APP_NAME).hex - -core.a: $(PLATFORM_OBJS) - @cd $(OBJ_DIR) && $(AR) -x ../../../../$(TB_DIR)/$(PLATFORM)$(ARDUINO_SHIELD_TYPE)/$(BUILD)/liboctbstack.a - $(AR) rcs $(OBJ_DIR)/$@ $(foreach obj, $^, $(OBJ_DIR)/$(obj)) $(OBJ_DIR)/*.o - @cd $(OBJ_DIR) && $(RANLIB) $@ - -prep_dirs: - -mkdir $(PLATFORM) - -mkdir $(PLATFORM)/$(ARDUINO_SHIELD_TYPE) - -mkdir $(OUT_DIR) - -mkdir $(OBJ_DIR) - -%.o: %.c - $(CC) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ -%.o: %.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ -%.o: ${SRC_PATH}/%.cpp - $(CXX) $(CFLAGS) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@ - -$(APP_NAME).elf: $(OBJLIST) core.a -ifeq ($(PLATFORM),arduinomega) - $(CC) -Os -Wl,--gc-sections,--relax $(CFLAGS_PLATFORM) $(foreach obj, $^, $(OBJ_DIR)/$(obj)) -lm -o $(OBJ_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(CXX) -Os -Wl,--gc-sections -mcpu=cortex-m3 -T/$(SDIR_ARD_CORE_3)/linker_scripts/gcc/flash.ld -Wl,-Map,$(APP_NAME).map -o $(OBJ_DIR)/$@ -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group $(foreach obj, $(APP_NAME).o $(SYSCALLS_SAM3_OBJ) $(SPI_OBJ) $(TRANSPORT_OBJS) $(VARIANT_OBJ) core.a, $(OBJ_DIR)/$(obj)) $(SDIR_ARD_CORE_3)/libsam_sam3x8e_gcc_rel.a -Wl,--end-group -else - $(error Wrong value for PLATFORM !!) -endif - -$(APP_NAME).hex: $(APP_NAME).elf -ifeq ($(PLATFORM),arduinomega) - $(AVR_OBJCOPY) -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 $(OBJ_DIR)/$< $(OBJ_DIR)/$(APP_NAME).eep - $(AVR_OBJCOPY) -O ihex -R .eeprom $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else ifeq ($(PLATFORM),arduinodue) - $(ARDUINO_TOOLS_DIR)/arm-none-eabi-objcopy -O binary $(OBJ_DIR)/$< $(OUT_DIR)/$@ -else - $(error Wrong value for PLATFORM !!) -endif - -install: all -ifeq ($(PLATFORM),arduinomega) - $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i -else ifeq ($(PLATFORM),arduinodue) - stty -F /dev/$(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb - $(ARDUINO_DIR)/hardware/tools/bossac -i -d --port=$(ARDUINO_PORT) -U false -e -w -v -b $(OUT_DIR)/$(APP_NAME).hex -R -else - $(error Wrong value for PLATFORM !!) -endif - -.PHONY: clean - -clean: legacy_clean - rm -rf arduinomega - rm -rf arduinodue - -legacy_clean: - @rm -rf bin - @rm -f *.o *.d *.elf *.eep *.a *.hex *.bin *.map *- diff --git a/service/soft-sensor-manager/SampleApp/arduino/environment.mk b/service/soft-sensor-manager/SampleApp/arduino/environment.mk deleted file mode 100644 index 4599f82..0000000 --- a/service/soft-sensor-manager/SampleApp/arduino/environment.mk +++ /dev/null @@ -1,3 +0,0 @@ - -BOOST_DIR=/home/choi/devel/boost_1_56_0 - diff --git a/service/soft-sensor-manager/SampleApp/linux/SSMTesterApp/build/Makefile b/service/soft-sensor-manager/SampleApp/linux/SSMTesterApp/build/Makefile deleted file mode 100644 index aa3b797..0000000 --- a/service/soft-sensor-manager/SampleApp/linux/SSMTesterApp/build/Makefile +++ /dev/null @@ -1,58 +0,0 @@ --include ../../../../build/linux/root_path.inc --include ../../../../build/linux/environment.mk - -BOOST=${BOOST_BASE} -SRC_PATH=../src -INC_PATH=../include -RST_NAME=release - -# Insert your project name. -TARGET=SSMTesterApp - -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -DLINUX -DNDEBUG -CXX_INC=-I${SRC_PATH}/ -I${INC_PATH}/ -I${OUTPUTS_DIR} -I${BOOST} - - -CXX_LIB+=${OUTPUTS_DIR}/${SSM_LIB} -CXX_LIB+=${OUTPUTS_DIR}/${SSMCORE_LIB} -CXX_LIB+=${IOT_RELEASE}/${IOT_LIB} -CXX_LIB+=${IOT_CSDK_RELEASE}/${IOT_CSDK_LIB} -CXX_LIB+=${IOT_LOG_DIR}/lib/${IOT_LOG_LIB} -CXX_LIB+=-lpthread -ldl - -SRCLIST=${wildcard ${SRC_PATH}/*.cpp} -OBJPATH=${SRCLIST:.cpp=.o} -OBJLIST=${notdir ${OBJPATH}} - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job ${TARGET} post_job - -pre_job: - @echo " " - @echo "--------- ${TARGET} Build Begin. -----------" - @mkdir -p ${RST_NAME} - @echo " " - -${TARGET}: ${OBJLIST} - $(CXX) $(CXX_FLAGS) -o ./${RST_NAME}/$@ $^ ${CXX_LIB} - @echo " " - -%.o : ${SRC_PATH}/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o $@ - @echo " " - -post_job: - @echo " " - cp -Rdp ./${RST_NAME}/${TARGET} ${OUTPUTS_DIR}/ - @echo "----------- ${TARGET} Build Successful. ------------" - @echo "Enter to ${RST_NAME} folder." - @echo " " - - -clean: - rm -f -v *.o ${TARGET} - rm -rf ./${RST_NAME} - diff --git a/service/soft-sensor-manager/SampleApp/linux/THSensorApp/build/Makefile b/service/soft-sensor-manager/SampleApp/linux/THSensorApp/build/Makefile deleted file mode 100644 index 358064e..0000000 --- a/service/soft-sensor-manager/SampleApp/linux/THSensorApp/build/Makefile +++ /dev/null @@ -1,56 +0,0 @@ --include ../../../../build/linux/root_path.inc --include ../../../../build/linux/environment.mk - -BOOST=${BOOST_BASE} -SRC_PATH=../src -INC_PATH=../include -RST_NAME=release - -# Insert your project name. -TARGET=THSensorApp - -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -DLINUX -CXX_INC=-I${INC_PATH}/ -I${IOT_BASE}/include/ -I${IOT_LOG_DIR}/include/ -I${IOT_BASE}/csdk/stack/include -I${IOT_BASE}/csdk/ocrandom/include -I${IOT_BASE}/csdk/logger/include -I${BOOST} - -CXX_LIB+=${IOT_RELEASE}/${IOT_LIB} -CXX_LIB+=${IOT_CSDK_RELEASE}/${IOT_CSDK_LIB} -CXX_LIB+=${IOT_LOG_DIR}/lib/${IOT_LOG_LIB} -CXX_LIB+=-lpthread - -SRCLIST=${wildcard ${SRC_PATH}/*.cpp} -OBJPATH=${SRCLIST:.cpp=.o} -OBJLIST=${notdir ${OBJPATH}} - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job ${TARGET} post_job - -pre_job: - @echo " " - @echo "---------- ${TARGET} Build Begin. ------------" - @mkdir -p ${RST_NAME} - @echo " " - -${TARGET}: ${OBJLIST} - $(CXX) -o ./${RST_NAME}/$@ $^ ${CXX_LIB} - @echo " " - -%.o : ${SRC_PATH}/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o $@ - @echo " " - -post_job: - @echo " " - cp -Rdp ./${RST_NAME}/* ${OUTPUTS_DIR}/ - @echo "----------- ${TARGET} Build Successful. -------------" - @echo "Enter to ${RST_NAME} folder." - @echo " " - - -clean: - rm -f -v *.o ${TARGET} - rm -rf ./${RST_NAME} - - diff --git a/service/soft-sensor-manager/SampleApp/linux/THSensorApp1/build/Makefile b/service/soft-sensor-manager/SampleApp/linux/THSensorApp1/build/Makefile deleted file mode 100644 index df6b6f8..0000000 --- a/service/soft-sensor-manager/SampleApp/linux/THSensorApp1/build/Makefile +++ /dev/null @@ -1,56 +0,0 @@ --include ../../../../build/linux/root_path.inc --include ../../../../build/linux/environment.mk - -BOOST=${BOOST_BASE} -SRC_PATH=../src -INC_PATH=../include -RST_NAME=release - -# Insert your project name. -TARGET=THSensorApp1 - -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -DLINUX -CXX_INC=-I${INC_PATH}/ -I${IOT_BASE}/include/ -I${IOT_LOG_DIR}/include/ -I${IOT_BASE}/csdk/stack/include -I${IOT_BASE}/csdk/ocrandom/include -I${IOT_BASE}/csdk/logger/include -I${BOOST} - -CXX_LIB+=${IOT_RELEASE}/${IOT_LIB} -CXX_LIB+=${IOT_CSDK_RELEASE}/${IOT_CSDK_LIB} -CXX_LIB+=${IOT_LOG_DIR}/lib/${IOT_LOG_LIB} -CXX_LIB+=-lpthread - -SRCLIST=${wildcard ${SRC_PATH}/*.cpp} -OBJPATH=${SRCLIST:.cpp=.o} -OBJLIST=${notdir ${OBJPATH}} - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job ${TARGET} post_job - -pre_job: - @echo " " - @echo "---------- ${TARGET} Build Begin. ------------" - @mkdir -p ${RST_NAME} - @echo " " - -${TARGET}: ${OBJLIST} - $(CXX) -o ./${RST_NAME}/$@ $^ ${CXX_LIB} - @echo " " - -%.o : ${SRC_PATH}/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o $@ - @echo " " - -post_job: - @echo " " - cp -Rdp ./${RST_NAME}/* ${OUTPUTS_DIR}/ - @echo "----------- ${TARGET} Build Successful. -------------" - @echo "Enter to ${RST_NAME} folder." - @echo " " - - -clean: - rm -f -v *.o ${TARGET} - rm -rf ./${RST_NAME} - - diff --git a/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/build/linux/Makefile b/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/build/linux/Makefile deleted file mode 100644 index d87e604..0000000 --- a/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/build/linux/Makefile +++ /dev/null @@ -1,50 +0,0 @@ --include ../../../../build/linux/root_path.inc --include ../../../../build/linux/environment.mk - -SRC_PATH=../../src -INC_PATH=../../include -RST_NAME=release - -# Insert your project name. -TARGET=DiscomfortIndexSensor - -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -DLINUX -CXX_INC=-I${INC_PATH} -I${OUTPUTS_DIR} - -SRCLIST=${wildcard ${SRC_PATH}/*.cpp} -OBJPATH=${SRCLIST:.cpp=.o} -OBJLIST=${notdir ${OBJPATH}} - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job ${TARGET} post_job - -pre_job: - @echo " " - @echo "---------- ${TARGET} Build Begin. ------------" - @mkdir -p ${RST_NAME} - @echo " " - -${TARGET}: ${OBJLIST} - $(CXX) -shared -o ./${RST_NAME}/lib$@.so $^ - @echo " " - -%.o : ${SRC_PATH}/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o $@ - @echo " " - -post_job: - @echo " " - cp -Rdp ./${RST_NAME}/lib${TARGET}.so ${OUTPUTS_DIR}/ - cp -Rdp ../../../${SSXML_NAME} ${OUTPUTS_DIR}/ - @echo "-------------- ${TARGET} Build Successful. -------------" - @echo "Enter to ${RST_NAME} folder." - @echo " " - - -clean: - rm -f -v *.o ${TARGET} - rm -rf ./${RST_NAME} - diff --git a/service/soft-sensor-manager/build/arduino/Makefile b/service/soft-sensor-manager/build/arduino/Makefile deleted file mode 100644 index 1c3ae15..0000000 --- a/service/soft-sensor-manager/build/arduino/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -IOTIVITY_DIR=${shell cd ../../../../ && pwd} -${shell echo "ROOT_DIR=${IOTIVITY_DIR}" > ./root_path.inc} - --include ./root_path.inc --include ./environment.mk - -MAKE=make -RST_NAME=release -CUR_DIR=${PWD} - - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job build post_job - -pre_job: - @echo " " - @echo "*********************************************************" - @echo "* Samsung Electronics. Open Source. *" - @echo "* *" - @echo "* It's build script for SoftSensorManagement system. *" - @echo "* Before build, Open the environment.mk file. *" - @echo "* And, Modify ROOT_DIR path, which depend on your PC. *" - @echo "* And, Modify BOOST_BASE path, which depend on your PC. *" - @echo "* *" - @echo "*********************************************************" - @mkdir -p ${RST_NAME} - @echo " " - - -build: - @for subdir in ${MAKE_LIST} ; do \ - echo ">>>>>>>>>>>> $${subdir}/Makefile run <<<<<<<<<<<<<" ; \ - cd $${subdir} && ${MAKE} ${OPTION} ; \ - echo " " ; \ - done - @echo " " - -post_job: - @echo " " - @echo "*********************************************************" - @echo "* *" - @echo "* Success. build script. *" - @echo "* - End - *" - @echo "*********************************************************" - @echo "Enter to ${RST_NAME} folder." - @echo " " - -clean: - - rm -rf ./${RST_NAME} - @for subdir in ${MAKE_LIST} ; do \ - echo ">>>>>>>>>>>> $${subdir}/Makefile clean run <<<<<<<<<<<<<<" ; \ - ${MAKE} clean -C $${subdir} ; \ - echo " " ; \ - done diff --git a/service/soft-sensor-manager/build/arduino/environment.mk b/service/soft-sensor-manager/build/arduino/environment.mk deleted file mode 100644 index 2d8949e..0000000 --- a/service/soft-sensor-manager/build/arduino/environment.mk +++ /dev/null @@ -1,25 +0,0 @@ - -# ioc-resource folder path. -IOT_BASE=${ROOT_DIR}/resource -IOT_MAKE_PATH=${IOT_BASE} -IOT_RELEASE=${IOT_BASE}/release/obj -IOT_CSDK_LINUX_RELEASE=${IOT_BASE}/csdk/linux/release -IOT_CSDK_ARDUINOMEGA_RELEASE=${IOT_BASE}/csdk/arduinomega/release - -# oic-service folder path. -FD_SSM=${ROOT_DIR}/service/soft-sensor-manager -FD_SAMPLEAPP=${FD_SSM}/SampleApp -FD_BUILD=${FD_SSM}/build - -# outputs directory path. -OUTPUTS_DIR=${FD_BUILD}/arduino/release - -#OPTION=PLATFORM=arduinomega ARDUINOWIFI=1 -# SoftSensorManager makefile path -MAKE_00=${FD_SAMPLEAPP}/arduino -MAKE_01=${FD_SAMPLEAPP}/arduino/THSensorApp/build -MAKE_03=${FD_SAMPLEAPP}/arduino/Trackee_Thing/build -MAKE_04=${FD_SAMPLEAPP}/arduino/Reference_Thing/build - -MAKE_LIST=${MAKE_01} ${MAKE_03} ${MAKE_04} - diff --git a/service/soft-sensor-manager/build/linux/environment.mk b/service/soft-sensor-manager/build/linux/environment.mk deleted file mode 100644 index 500f7d1..0000000 --- a/service/soft-sensor-manager/build/linux/environment.mk +++ /dev/null @@ -1,38 +0,0 @@ -# boost folder path. -BOOST_BASE=/usr/include - -# ioc-resource folder path. -IOT_BASE=${ROOT_DIR}/resource -IOT_MAKE_PATH=${IOT_BASE} -IOT_RELEASE=${IOT_MAKE_PATH}/release/obj -IOT_CSDK_RELEASE=${IOT_BASE}/csdk/linux/release -IOT_LOG_DIR=${IOT_BASE}/oc_logger -IOT_LIB=liboc.a -IOT_CSDK_LIB=liboctbstack.a -IOT_LOG_LIB=oc_logger.a - -# service folder path. -FD_SSM=${ROOT_DIR}/service/soft-sensor-manager -FD_SDK=${FD_SSM}/SDK/cpp -FD_SSMCORE=${FD_SSM}/SSMCore -FD_SAMPLEAPP=${FD_SSM}/SampleApp -FD_SOFTSENSOR=${FD_SSM}/SoftSensorPlugin -FD_BUILD=${FD_SSM}/build - -# outputs directory path. -OUTPUTS_DIR=${FD_BUILD}/linux/release -EXEC_DIR=${OUTPUTS_DIR} -SSXML_NAME="SoftSensorDescription.xml" -SSM_LIB = libSSMSDK.a -SSMCORE_LIB=libSSMCore.a - -# SoftSensorManager makefile path -MAKE_01=${FD_SSMCORE}/build/linux -MAKE_02=${FD_SDK}/build/linux -MAKE_03=${FD_SAMPLEAPP}/linux -MAKE_04=${FD_SAMPLEAPP}/arduino -MAKE_05=${FD_SOFTSENSOR}/DiscomfortIndexSensor/build/linux -MAKE_06=${FD_SOFTSENSOR}/IndoorTrajectorySensor/build/linux - - -MAKE_LIST=${MAKE_01} ${MAKE_02} ${MAKE_03} ${MAKE_05} ${MAKE_06} \ No newline at end of file diff --git a/service/things-manager/build/linux/makefile b/service/things-manager/build/linux/makefile deleted file mode 100644 index 4fc7d7e..0000000 --- a/service/things-manager/build/linux/makefile +++ /dev/null @@ -1,32 +0,0 @@ -.PHONY : pre resource sdk sampleapp -#.PHONY : lib tgm sdk sampleapp -all: .PHONY - -pre: - -mkdir release - -resource: - cd ../../../../resource && $(MAKE) - - -sdk: - cd ../../sdk/build/linux && $(MAKE) - cp -Rdp ../../sdk/build/linux/*.a release/ - -sampleapp: - cd ../../sampleapp/linux && $(MAKE) - cp -Rdp ../../sampleapp/linux/configuration/con-server release/ - cp -Rdp ../../sampleapp/linux/configuration/con-client release/ - cp -Rdp ../../sampleapp/linux/configuration/bootstrapserver release/ - cp -Rdp ../../sampleapp/linux/groupaction/groupserver release/ - cp -Rdp ../../sampleapp/linux/groupaction/bookmark release/ - cp -Rdp ../../sampleapp/linux/groupaction/lightserver release/ - cp -Rdp ../../sampleapp/linux/groupsyncaction/group release/ - cp -Rdp ../../sampleapp/linux/groupsyncaction/musicplayer release/ - cp -Rdp ../../sampleapp/linux/groupsyncaction/phone release/ - cp -Rdp ../../sampleapp/linux/groupsyncaction/speaker release/ - -clean: - cd ../../sdk/build/linux && $(MAKE) clean - cd ../../sampleapp/linux && $(MAKE) clean - rm -rf ./release diff --git a/service/things-manager/sampleapp/linux/configuration/makefile b/service/things-manager/sampleapp/linux/configuration/makefile deleted file mode 100644 index c08ef06..0000000 --- a/service/things-manager/sampleapp/linux/configuration/makefile +++ /dev/null @@ -1,70 +0,0 @@ -TGMROOT=../../../ -IOT_BASE=${TGMROOT}../../resource -RST_NAME=. -TARGET1=con-server -TARGET2=con-client -TARGET3=bootstrapserver - -OBJS = ConfigurationCollection.o DiagnosticsCollection.o FactorySetCollection.o con-server.o -SRCS = $(OBJS:.o=.c) - -# C++ type Compile Flag define. -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -pthread -DLINUX -ldl - -CXX_INC := -I../../ -I../../inc/ -I../../../sdk/inc/ -I../../../sdk/src/ -CXX_INC += -I${IOT_BASE}/include/ -CXX_INC += -I${IOT_BASE}/oc_logger/include -CXX_INC += -I${IOT_BASE}/csdk/stack/include -CXX_INC += -I${IOT_BASE}/csdk/ocrandom/include -CXX_INC += -I${IOT_BASE}/csdk/logger/include - -CXX_LIB=-L"" - -CXX_SRCPATH=${wildcard ../../src/*.cpp} -CXX_SRCLIST=${notdir ${CXX_SRCPATH}} -CXX_USESRCS=${filter-out ${EXCLUDE_LIST}, ${CXX_SRCLIST}} -CXX_OBJLIST=${CXX_USESRCS:.cpp=.o} - - -TGM = ../../ -SDK = ${TGMROOT}sdk -TGM_INC = -I${TGMROOT}sdk/inc -SDK_LIB = ${TGMROOT}sdk/build/linux/libTGMSDKLibrary.a - -LIB_OC_LOGGER := $(IOT_BASE)/oc_logger/lib/oc_logger.a - -LD_LIB := $(IOT_BASE)/release/obj/liboc.a -LD_LIB += $(IOT_BASE)/csdk/linux/release/liboctbstack.a -LD_LIB += $(LIB_OC_LOGGER) - - -# Force metatargets to build: -.PHONY: all clean - -all: ${TARGET1} ${TARGET2} ${TARGET3} - -.cpp.o: - $(CXX) $(CXX_FLAGS) -c -o $@ $< $(CXX_INC) $(TGM_INC) - -$(TARGET1): $(OBJS) - $(CXX) $(CXX_FLAGS) -o $@ ${OBJS} $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -${TARGET2}: con-client.cpp - $(CXX) $(CXX_FLAGS) -o ${TARGET2} $< $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -${TARGET3}: bootstrapserver.cpp - $(CXX) $(CXX_FLAGS) -o ${TARGET3} $< $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - - -dep: - gccmakedep $(SRCS) - -clean: - rm -f -v *.o con-client - rm -f -v *.o con-server - rm -f -v *.o bootstrapserver - -#dep: -# gccmakedep $(SRCS) - diff --git a/service/things-manager/sampleapp/linux/groupaction/makefile b/service/things-manager/sampleapp/linux/groupaction/makefile deleted file mode 100644 index 5c209e4..0000000 --- a/service/things-manager/sampleapp/linux/groupaction/makefile +++ /dev/null @@ -1,68 +0,0 @@ - -TGMROOT=../../../ -IOT_BASE=${TGMROOT}../../resource -RST_NAME=. - - - -# C++ type Compile Flag define. -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -pthread -DLINUX -ldl - -DEPEND_DIR:= ../../../../../resource/dependencies/ - -CXX_INC := -I../../ -I../../inc/ -CXX_INC += -I${IOT_BASE}/include/ -CXX_INC += -I${IOT_BASE}/oc_logger/include -CXX_INC += -I${IOT_BASE}/csdk/stack/include -CXX_INC += -I${IOT_BASE}/csdk/ocrandom/include -CXX_INC += -I${IOT_BASE}/csdk/logger/include -CXX_INC += -I../../../sdk/inc -CXX_INC += -I../../../sdk/src - - -CXX_LIB=-L"" - -CXX_SRCPATH=${wildcard ../../src/*.cpp} -CXX_SRCLIST=${notdir ${CXX_SRCPATH}} -CXX_USESRCS=${filter-out ${EXCLUDE_LIST}, ${CXX_SRCLIST}} -CXX_OBJLIST=${CXX_USESRCS:.cpp=.o} - - -TGM = ../../ -SDK = ${TGMROOT}sdk -TGM_INC = -I${TGMROOT}sdk/inc -SDK_LIB = ${TGMROOT}sdk/build/linux/libTGMSDKLibrary.a - -LIB_OC_LOGGER := $(IOT_BASE)/oc_logger/lib/oc_logger.a - -LD_LIB := $(IOT_BASE)/release/obj/liboc.a -LD_LIB += $(IOT_BASE)/csdk/linux/release/liboctbstack.a -LD_LIB += $(LIB_OC_LOGGER) - - -# Force metatargets to build: -.PHONY: all clean - -all: bookmark lightserver groupserver - -#groupclient -bookmark: ./bookmark.cpp - $(CXX) $(CXX_FLAGS) -o bookmark ./bookmark.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -lightserver: ./lightserver.cpp - $(CXX) $(CXX_FLAGS) -o lightserver ./lightserver.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -groupserver: ./groupserver.cpp - $(CXX) $(CXX_FLAGS) -o groupserver ./groupserver.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -# groupclient: ./groupclient.cpp -# $(CXX) $(CXX_FLAGS) -o groupclient ./groupclient.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -clean: - rm -f -v *.o ${TARGET} - rm -f groupserver - rm -f groupclient - rm -f lightserver - rm -f bookmark - diff --git a/service/things-manager/sampleapp/linux/groupsyncaction/makefile b/service/things-manager/sampleapp/linux/groupsyncaction/makefile deleted file mode 100644 index 0c077f9..0000000 --- a/service/things-manager/sampleapp/linux/groupsyncaction/makefile +++ /dev/null @@ -1,64 +0,0 @@ - -TGMROOT=../../../ -IOT_BASE=${TGMROOT}../../resource -RST_NAME=. -TARGET1=group -TARGET2=phone -TARGET3=musicplayer -TARGET4=speaker -BUILD:=release - -# C++ type Compile Flag define. -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -pthread -DLINUX -ldl - -CXX_INC := -I../../ -I../../inc/ -I../../../sdk/inc/ -I../../../sdk/src/ -CXX_INC += -I${IOT_BASE}/include/ -CXX_INC += -I${IOT_BASE}/oc_logger/include -CXX_INC += -I${IOT_BASE}/csdk/stack/include -CXX_INC += -I${IOT_BASE}/csdk/ocrandom/include -CXX_INC += -I${IOT_BASE}/csdk/logger/include - -CXX_LIB=-L"" - -CXX_SRCPATH=${wildcard ../../src/*.cpp} -CXX_SRCLIST=${notdir ${CXX_SRCPATH}} -CXX_USESRCS=${filter-out ${EXCLUDE_LIST}, ${CXX_SRCLIST}} -CXX_OBJLIST=${CXX_USESRCS:.cpp=.o} - - -TGM = ../../ -SDK = ${TGMROOT}sdk -TGM_INC = -I${TGMROOT}sdk/inc -SDK_LIB = ${TGMROOT}sdk/build/linux/libTGMSDKLibrary.a - -LIB_OC_LOGGER := $(IOT_BASE)/oc_logger/lib/oc_logger.a - -LD_LIB := $(IOT_BASE)/$(BUILD)/obj/liboc.a -LD_LIB += $(IOT_BASE)/csdk/linux/$(BUILD)/liboctbstack.a -LD_LIB += $(LIB_OC_LOGGER) - - -# Force metatargets to build: -.PHONY: all clean - -all: ${TARGET1} ${TARGET2} ${TARGET3} ${TARGET4} - -${TARGET1}: ./group.cpp - $(CXX) $(CXX_FLAGS) -o ${TARGET1} ./group.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -${TARGET2}: ./phone.cpp - $(CXX) $(CXX_FLAGS) -o ${TARGET2} ./phone.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -${TARGET3}: ./musicplayer.cpp - $(CXX) $(CXX_FLAGS) -o ${TARGET3} ./musicplayer.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -${TARGET4}: ./speaker.cpp - $(CXX) $(CXX_FLAGS) -o ${TARGET4} ./speaker.cpp $(CXX_INC) ${LD_LIB} $(TGM_INC) $(SDK_LIB) - -clean: - rm -f -v *.o ${TARGET1} - rm -f -v *.o ${TARGET2} - rm -f -v *.o ${TARGET3} - rm -f -v *.o ${TARGET4} - diff --git a/service/things-manager/sampleapp/linux/makefile b/service/things-manager/sampleapp/linux/makefile deleted file mode 100644 index 092d768..0000000 --- a/service/things-manager/sampleapp/linux/makefile +++ /dev/null @@ -1,21 +0,0 @@ -MAKE=make - -DIRLIST=configuration groupaction groupsyncaction - -# Force metatargets to build: -.PHONY: all clean - -all: build - -build: - @for subdir in ${DIRLIST} ; do \ - ${MAKE} -C $${subdir} ; \ - echo " " ; \ - done - @echo " " - -clean: - @for subdir in ${DIRLIST} ; do \ - ${MAKE} clean -C $${subdir} ; \ - echo " " ; \ - done diff --git a/service/things-manager/sdk/build/linux/Makefile b/service/things-manager/sdk/build/linux/Makefile deleted file mode 100644 index 6118464..0000000 --- a/service/things-manager/sdk/build/linux/Makefile +++ /dev/null @@ -1,81 +0,0 @@ - - -#OIC_ROOT=../../../resource/ -IOT_BASE=../../../../../resource -#BOOST=${BOOST_DIR} -RST_NAME=. - - -# Insert your project name. -TARGET=libTGMSDKLibrary.a -EXCLUDE_LIST= - -# C++ type Compile Flag define. -CXX=g++ -CXX_FLAGS=-std=c++0x -Wall -pthread -DLINUX -ldl - - -CXX_INC := -I../../ -I../../inc/ -I../../src/ -CXX_INC += -I${IOT_BASE}/include/ -CXX_INC += -I${IOT_BASE}/oc_logger/include -CXX_INC += -I${IOT_BASE}/csdk/stack/include -CXX_INC += -I${IOT_BASE}/csdk/ocrandom/include -CXX_INC += -I${IOT_BASE}/csdk/logger/include - -CXX_LIB=-L"" - -CXX_SRCPATH=${wildcard ../../src/*.cpp} -CXX_SRCLIST=${notdir ${CXX_SRCPATH}} -CXX_USESRCS=${filter-out ${EXCLUDE_LIST}, ${CXX_SRCLIST}} -CXX_OBJLIST=${CXX_USESRCS:.cpp=.o} - - - - - - -# Linker FLAGS define. -# LIBS=-lajdaemon -lalljoyn -lssl -lcrypto -ldl -llog -lz -lm -lc -lstdc++ -lgcc -lgnustl_static -# LD_FLAGS=-std=c++11 -Wall -shared -lpthread -ldl -GAR=ar -#LD_LIB=${IOT_BASE}/OCLib.a ${IOT_BASE}/csdk/liboctbstack.a $(JSONLIB)/libjsoncpp.a - - -# Force metatargets to build: -.PHONY: all clean - -all: pre_job ${TARGET} post_job - -pre_job: - @echo " " - @echo "Build Begin." - @echo " " - -${TARGET}: ${CXX_OBJLIST} - #$(CXX) $(LD_FLAGS) -o ./${RST_NAME}/$@ $^ ${LD_LIB} // shared object. - @for sublib in ${LD_LIB} ; do \ - echo "${GAR} -x $${sublib}" ; \ - cd ./${RST_NAME} ; \ - ${GAR} -x ../$${sublib} ; \ - cd ../ ; \ - done - ${GAR} -r ./${RST_NAME}/$@ ./${RST_NAME}/*.o - @echo " " - - - - -%.o : ../../src/%.cpp - ${CXX} ${CXX_FLAGS} -c $< ${CXX_INC} -o ./${RST_NAME}/$@ - @echo " " - -post_job: - @echo " " - @echo "Build Successful." - @echo " " - - -clean: - rm -f -v *.o ${TARGET} - - -- 2.7.4