Commit 7c9de6b9 authored by Kishen Maloor's avatar Kishen Maloor

port/linux:add new build options MNT=1, CREATE=1

Change-Id: Ia82d9040669a27a448c745544415ce63a8c7ff33
Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 8b667303
......@@ -113,6 +113,14 @@ LIBS?= -lm -pthread -lrt
SAMPLES = server client temp_sensor simpleserver simpleserver_pki simpleclient client_collections_linux \
server_collections_linux server_block_linux client_block_linux smart_home_server_linux multi_device_server multi_device_client smart_lock server_multithread_linux client_multithread_linux
ifeq ($(CREATE),1)
EXTRA_CFLAGS += -DOC_COLLECTIONS_IF_CREATE
endif
ifeq ($(MNT),1)
EXTRA_CFLAGS += -DOC_MNT
endif
ifeq ($(SWUPDATE),1)
SAMPLES += smart_home_server_with_mock_swupdate
endif
......
......@@ -26,15 +26,16 @@ typedef uint64_t oc_clock_time_t;
#define OC_SESSION_EVENTS
/* Add support for software update */
//#define OC_SOFTWARE_UPDATE
//#define OC_SOFTWARE_UPDATE or run "make" with SWUPDATE=1
/* Add support for the oic.if.create interface in Collections */
//#define OC_COLLECTIONS_IF_CREATE or run "make" with CREATE=1
/* Add support for the maintenance resource */
//#define OC_MNT or run "make" with MNT=1
/* Add support for dns lookup to the endpoint */
#define OC_DNS_LOOKUP
#define OC_DNS_LOOKUP_IPV6
/* Add support for the oic.if.create interface in Collections */
#define OC_COLLECTIONS_IF_CREATE
/* Add support for the maintenance resource */
#define OC_MNT
/* If we selected support for dynamic memory allocation */
#ifdef OC_DYNAMIC_ALLOCATION
#define OC_COLLECTIONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment