mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
Merge pull request #17 from HengYongChao/bugfix/component_mk_issue_in_GNU_make
fix component.mk issue in legacy GNU make
This commit is contained in:
commit
dac18afe09
19
component.mk
19
component.mk
@ -1,15 +1,17 @@
|
||||
COMPONENT_ADD_INCLUDEDIRS := lib/include \
|
||||
wake_word_engine/include \
|
||||
speech_command_recognition/include \
|
||||
acoustic_algorithm/include \
|
||||
speech_command_recognition/include \
|
||||
acoustic_algorithm/include \
|
||||
esp-tts/esp_tts_chinese/include \
|
||||
|
||||
COMPONENT_SRCDIRS := speech_command_recognition
|
||||
|
||||
COMPONENT_SRCDIRS := speech_command_recognition
|
||||
|
||||
|
||||
LIB_FILES := $(shell ls $(COMPONENT_PATH)/wake_word_engine/lib*.a) \
|
||||
$(shell ls $(COMPONENT_PATH)/lib/lib*.a) \
|
||||
$(shell ls $(COMPONENT_PATH)/acoustic_algorithm/lib*.a) \
|
||||
$(shell ls $(COMPONENT_PATH)/speech_command_recognition/lib*.a) \
|
||||
$(shell ls $(COMPONENT_PATH)/lib/lib*.a) \
|
||||
$(shell ls $(COMPONENT_PATH)/acoustic_algorithm/lib*.a) \
|
||||
$(shell ls $(COMPONENT_PATH)/speech_command_recognition/lib*.a) \
|
||||
$(shell ls $(COMPONENT_PATH)/esp-tts/esp_tts_chinese/lib*.a) \
|
||||
|
||||
LIBS := $(patsubst lib%.a,-l%,$(LIB_FILES))
|
||||
|
||||
@ -17,5 +19,6 @@ COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/lib \
|
||||
-L$(COMPONENT_PATH)/wake_word_engine \
|
||||
-L$(COMPONENT_PATH)/speech_command_recognition \
|
||||
-L$(COMPONENT_PATH)/acoustic_algorithm \
|
||||
$(LIBS)
|
||||
-L$(COMPONENT_PATH)/esp-tts \
|
||||
$(LIBS)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user