You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.4 KiB
63 lines
1.4 KiB
TARGET_CFLAGS += -I$(lib_dir)
|
|
|
|
lib_srcs += \
|
|
$(lib_dir)/gcc_stubs.c \
|
|
$(lib_dir)/tick.c \
|
|
$(lib_dir)/fifo.c \
|
|
$(lib_dir)/cmd.c \
|
|
$(lib_dir)/commands.c \
|
|
$(lib_dir)/gpio.c \
|
|
$(lib_dir)/serial.c \
|
|
$(lib_dir)/vrom.c \
|
|
$(lib_dir)/utils.c \
|
|
$(lib_dir)/sdram.c \
|
|
$(lib_dir)/is42s32800g.c \
|
|
$(lib_dir)/timer.c \
|
|
$(lib_dir)/timer_list.c \
|
|
$(lib_dir)/ymodem.c \
|
|
$(lib_dir)/iic.c \
|
|
$(lib_dir)/i2c.c \
|
|
$(lib_dir)/iis.c \
|
|
$(lib_dir)/spi.c \
|
|
$(lib_dir)/can.c \
|
|
$(lib_dir)/spi_flash.c \
|
|
$(lib_dir)/at24c256_i2c.c \
|
|
$(lib_dir)/at24c256_iic.c \
|
|
$(lib_dir)/eeprom.c \
|
|
$(lib_dir)/bkp_sram.c \
|
|
$(lib_dir)/flash_if.c \
|
|
$(lib_dir)/iwdg.c \
|
|
$(lib_dir)/serial_ymodem.c \
|
|
$(lib_dir)/stdio_ymodem.c \
|
|
$(lib_dir)/sdio_sd.c \
|
|
|
|
ifeq ($(TARGET_USE_PRINTF), y)
|
|
lib_srcs += $(lib_dir)/printf.c
|
|
else
|
|
# LDFLAGS += -u_printf_float
|
|
endif
|
|
|
|
ifeq ($(TARGET_USE_WM8978), y)
|
|
lib_srcs += $(lib_dir)/wm8978.c
|
|
endif
|
|
|
|
ifeq ($(TARGET_USE_JS), y)
|
|
lib_srcs += $(lib_dir)/jscore/duktape.c \
|
|
|
|
TARGET_CFLAGS += -I$(lib_dir)/jscore
|
|
endif
|
|
|
|
ifeq ($(TARGET_USE_EFS), y)
|
|
lib_srcs += \
|
|
$(lib_dir)/efs/spiffs_cache.c \
|
|
$(lib_dir)/efs/spiffs_check.c \
|
|
$(lib_dir)/efs/spiffs_hydrogen.c \
|
|
$(lib_dir)/efs/spiffs_nucleus.c\
|
|
$(lib_dir)/efs/spiffs_gc.c\
|
|
$(lib_dir)/efs/efs.c\
|
|
|
|
TARGET_CFLAGS += -I$(lib_dir)/efs
|
|
endif
|
|
|
|
lib_objs = $(lib_srcs:.c=.o)
|
|
|
|
|