This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/components/xz/xz.mk
2021-06-04 18:15:20 +08:00

17 lines
555 B
Makefile

SUB_MODULE_DIR:= $(MODULE_DIR)/xz
SUB_MODULE_OUT_DIR:= $(MODULE_OUT_DIR)/xz
SUB_MODULE_SRC_DIR := $(SUB_MODULE_DIR)
COMMON_INCLUDE += -I $(MODULE_DIR)/xz
xz_sources := xz_crc32.c xz_dec_lzma2.c xz_dec_stream.c xz_decompress.c xz_port.c
xz_objs := $(addprefix $(SUB_MODULE_OUT_DIR)/, $(subst .c,.o,$(xz_sources)))
bsp_common_objs_target += $(xz_objs)
$(SUB_MODULE_OUT_DIR)/%.o:$(SUB_MODULE_SRC_DIR)/%.c
@mkdir -p $(dir $@)
@echo "cc $<"
$(AT)$(CC) -c $(GLOBAL_CFLAGS) $(COMMON_CFLAGS) $(GLOBAL_INCLUDE) $(COMMON_INCLUDE) $< -o $@