forked from espressif/esp-iot-solution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component.mk
executable file
·37 lines (32 loc) · 966 Bytes
/
component.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Component Makefile
#
# componet standalone mode
ifndef CONFIG_IOT_SOLUTION_EMBED
COMPONENT_ADD_INCLUDEDIRS := esp32-alink/include esp32-alink/adaptation/include
COMPONENT_SRCDIRS := adaptation esp32-alink/application
ifdef CONFIG_ALINK_VERSION_EMBED
LIBS := alink_agent tfspal
endif
ifdef CONFIG_ALINK_VERSION_SDS
LIBS := alink_agent_sds tfspal
endif
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH)/esp32-alink/lib \
$(addprefix -l,$(LIBS))
else
ifdef CONFIG_IOT_ALINK_ENABLE
COMPONENT_ADD_INCLUDEDIRS := esp32-alink/include esp32-alink/adaptation/include
COMPONENT_SRCDIRS := adaptation esp32-alink/application
ifdef CONFIG_ALINK_VERSION_EMBED
LIBS := alink_agent tfspal
endif
ifdef CONFIG_ALINK_VERSION_SDS
LIBS := alink_agent_sds tfspal
endif
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH)/esp32-alink/lib \
$(addprefix -l,$(LIBS))
else
COMPONENT_ADD_INCLUDEDIRS :=
COMPONENT_SRCDIRS :=
endif
endif