mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
79bd6af7e7
Inspired by Github #27 and related "gotchas" with keeping submodules up to date.
24 lines
688 B
Makefile
24 lines
688 B
Makefile
#
|
|
# Component Makefile
|
|
#
|
|
|
|
#COMPONENT_ADD_INCLUDEDIRS :=
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
|
|
|
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)
|
|
|
|
include $(IDF_PATH)/make/component_common.mk
|
|
|
|
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
|
|
$(COMPONENT_LIBRARY): $(ALL_LIB_FILES)
|
|
|
|
# automatically trigger a git submodule update if BT library is missing
|
|
$(eval $(call SubmoduleCheck,$(ALL_LIB_FILES),$(COMPONENT_PATH)/lib))
|