diff --git a/core/Makefile b/core/Makefile index 0bc22fed7..6a2f8e9b3 100644 --- a/core/Makefile +++ b/core/Makefile @@ -145,6 +145,14 @@ ifdef DAISYSP_DIR C_INCLUDES += -I$(DAISYSP_DIR)/Source endif +ifeq ($(USE_DAISYSP_LGPL),1) +C_INCLUDES += -I$(DAISYSP_DIR)/DaisySP-LGPL/Source + +C_DEFS += \ +-DUSE_DAISYSP_LGPL +endif + + # Include FATFS files # This does not include the additional option files # for Japanese, Simplified/Traditional Chinese, or Korean @@ -246,6 +254,12 @@ LIBS += -ldaisysp LIBDIR += -L $(DAISYSP_DIR)/build endif + +ifeq ($(USE_DAISYSP_LGPL),1) +LIBS += -ldaisysp-lgpl +LIBDIR += -L $(DAISYSP_DIR)/DaisySP-LGPL/build +endif + LDFLAGS ?= LDFLAGS += $(MCU) --specs=nano.specs --specs=nosys.specs -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections -Wl,--print-memory-usage