BugID:16976928:fix linkkit_gateway@mk3080 compile error
NAME := linkkit_gateway
-$(NAME)_SOURCES := app_entry.c
+$(NAME)_SOURCES := linkkit_example_gateway.c \
+ app_entry.c
+
$(NAME)_COMPONENTS += network/netmgr \
middleware/common \
+ middleware/uagent/uota \
utility/cjson
-##ifeq ($(COMPILER),iar)
-###$(NAME)_COMPONENTS += feature.linkkit-gateway-nouota
-##else
$(NAME)_COMPONENTS += feature.linkkit-gateway
-$(NAME)_INCLUDES += ../../../middleware/uagent/uota/src/service
-$(NAME)_COMPONENTS += middleware/uagent/uota
-##endif
+
+$(NAME)_INCLUDES += \
+ ../../../middleware/uagent/uota/src/service
GLOBAL_CFLAGS += -DCONFIG_DM_DEVTYPE_GATEWAY \
-DMQTT_DIRECT \
+ -DDEPRECATED_LINKKIT
ifeq ($(LWIP),1)
$(NAME)_COMPONENTS += protocols.net
no_with_lwip := 0
endif
-ifeq ($(newapi),1)
-$(NAME)_SOURCES += newapi/gateway.c
-else
-$(NAME)_SOURCES += linkkit_example_gateway.c
-GLOBAL_CFLAGS += -DDEPRECATED_LINKKIT
-endif
-
ifeq ($(print_heap),1)
$(NAME)_DEFINES += CONFIG_PRINT_HEAP
endif
@@ -41,8 +35,8 @@ GLOBAL_DEFINES += ESP8266_CHIPSET
endif
#for test command
-#GLOBAL_CFLAGS += -DLINKKIT_GATEWAY_TEST_CMD
-#$(NAME)_SOURCES += simulate_subdev/testcmd.c simulate_subdev/testcmd_lock.c
+GLOBAL_CFLAGS += -DLINKKIT_GATEWAY_TEST_CMD
+$(NAME)_SOURCES += simulate_subdev/testcmd.c simulate_subdev/testcmd_lock.c
#end
GLOBAL_INCLUDES += ./
