#ifdef CONFIG_SYSTEM_NETDB
extern int netdb_main(int argc, char *argv[]);
#endif
-#ifdef CONFIG_EXTERNAL_WAKAAMA_EXAMPLE
-#ifdef CONFIG_LWM2M_CLIENT_MODE
-extern int lwm2m_client_main(int argc, char *argv[]);
-#endif
-#ifdef CONFIG_LWM2M_SERVER_MODE
-extern int lwm2m_server_main(int argc, char *argv[]);
-#endif
-#endif
#if defined(CONFIG_NETUTILS_TFTPC)
struct tftpc_args_s {
#ifdef CONFIG_SYSTEM_NETDB
{"netdb", netdb_main, TASH_EXECMD_SYNC},
#endif
-#ifdef CONFIG_EXTERNAL_WAKAAMA_EXAMPLE
-#ifdef CONFIG_LWM2M_CLIENT_MODE
- {"lwm2mclient", lwm2m_client_main, TASH_EXECMD_SYNC},
-#endif
-#ifdef CONFIG_LWM2M_SERVER_MODE
- {"lwm2mserver", lwm2m_server_main, TASH_EXECMD_SYNC},
-#endif
-#endif
{NULL, NULL, 0}
};
enable LWM2M WAKAAMA server mode
endchoice
-config EXTERNAL_WAKAAMA_EXAMPLE
- bool "EXTERNAL_WAKAAMA_EXAMPLE"
- depends on LWM2M_CLIENT_MODE || LWM2M_SERVER_MODE
- default n
- ---help---
- enable LWM2M WAKAAMA server or client example
-
config LWM2M_LITTLE_ENDIAN
bool "LITTLE_ENDIAN"
default y
CSRCS =
VPATH = .
-
-ifneq ($(CONFIG_DM)$(CONFIG_EXTERNAL_WAKAAMA_EXAMPLE),)
+ifeq ($(CONFIG_LWM2M_WAKAAMA),y)
include wakaama/core/Make.defs
-include wakaama/core/er-coap-13/Make.defs
-include wakaama/examples/shared/Make.defs
+include wakaama/core/er-coap-13/Make.defs
+endif
+
+ifeq ($(CONFIG_DM),y)
ifeq ($(CONFIG_LWM2M_CLIENT_MODE),y)
-include wakaama/examples/client/Make.defs
+ include wakaama/examples/shared/Make.defs
+ include wakaama/examples/client/Make.defs
endif
ifeq ($(CONFIG_LWM2M_SERVER_MODE),y)
-include wakaama/examples/server/Make.defs
-endif
-ifeq ($(CONFIG_DM),y)
-CFLAGS+=-I$(TOPDIR)/../framework/include/dm
+ include wakaama/examples/shared/Make.defs
+ include wakaama/examples/server/Make.defs
endif
+ CFLAGS+=-I$(TOPDIR)/../framework/include/dm
endif
ifeq ($(CONFIG_ENABLE_IOTIVITY),y)