2016-09-22 04:40:31 -04:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
#COMPONENT_ADD_INCLUDEDIRS :=
|
|
|
|
|
2016-09-25 13:45:12 -04:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
2016-09-22 04:40:31 -04:00
|
|
|
|
|
|
|
CFLAGS += -Wno-error=unused-label -Wno-error=return-type -Wno-error=missing-braces -Wno-error=pointer-sign -Wno-error=parentheses
|
|
|
|
|
|
|
|
LIBS := btdm_app
|
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS := -lbt -L$(abspath lib) \
|
|
|
|
$(addprefix -l,$(LIBS)) \
|
|
|
|
$(LINKER_SCRIPTS)
|
|
|
|
|
2016-09-26 01:59:39 -04:00
|
|
|
include $(IDF_PATH)/make/component_common.mk
|
2016-09-22 04:40:31 -04:00
|
|
|
|
|
|
|
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
|
|
|
|
$(COMPONENT_LIBRARY): $(ALL_LIB_FILES)
|
|
|
|
|
2016-09-26 01:59:39 -04:00
|
|
|
# automatically trigger a git submodule update if BT library is missing
|
2016-10-04 01:33:18 -04:00
|
|
|
$(eval $(call SubmoduleCheck,$(ALL_LIB_FILES),$(COMPONENT_PATH)/lib))
|