加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.67 KB
一键复制 编辑 原始数据 按行查看 历史
isme 提交于 2023-03-08 14:59 . lvgl_8.3.5
TOP_DIR := .
sinclude $(TOP_DIR)/tools/w800/conf.mk
ifndef PDIR # {
GEN_IMAGES= $(TARGET).elf
GEN_BINS = $(TARGET).bin
SUBDIRS = \
$(TOP_DIR)/app \
$(TOP_DIR)/demo \
$(TOP_DIR)/components
endif # } PDIR
ifndef PDIR # {
ifeq ($(USE_LIB), 0)
SUBDIRS += \
$(TOP_DIR)/platform/arch \
$(TOP_DIR)/platform/common \
$(TOP_DIR)/platform/drivers \
$(TOP_DIR)/platform/sys \
$(TOP_DIR)/src/network \
$(TOP_DIR)/src/os \
$(TOP_DIR)/src/app
ifeq ($(USE_NIMBLE), 1)
SUBDIRS += \
$(TOP_DIR)/src/bt/blehost
else
SUBDIRS += \
$(TOP_DIR)/src/bt/host
endif
endif
endif
COMPONENTS_$(TARGET) = \
$(TOP_DIR)/app/libuser$(LIB_EXT) \
$(TOP_DIR)/demo/libdemo$(LIB_EXT) \
$(TOP_DIR)/components/libcomponents$(LIB_EXT)
ifeq ($(USE_LIB), 0)
COMPONENTS_$(TARGET) += \
$(TOP_DIR)/platform/boot/libwmarch$(LIB_EXT) \
$(TOP_DIR)/platform/common/libwmcommon$(LIB_EXT) \
$(TOP_DIR)/platform/drivers/libdrivers$(LIB_EXT) \
$(TOP_DIR)/platform/sys/libwmsys$(LIB_EXT) \
$(TOP_DIR)/src/network/libnetwork$(LIB_EXT) \
$(TOP_DIR)/src/os/libos$(LIB_EXT)
ifeq ($(USE_NIMBLE), 1)
COMPONENTS_$(TARGET) += \
$(TOP_DIR)/src/bt/libblehost$(LIB_EXT) \
$(TOP_DIR)/src/app/libapp$(LIB_EXT)
else
COMPONENTS_$(TARGET) += \
$(TOP_DIR)/src/bt/libbthost_br_edr$(LIB_EXT) \
$(TOP_DIR)/src/app/libapp_br_edr$(LIB_EXT)
endif
endif
LINKLIB = \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwlan$(LIB_EXT) \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libdsp$(LIB_EXT)
ifeq ($(USE_NIMBLE), 1)
LINKLIB +=$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbtcontroller$(LIB_EXT)
else
LINKLIB +=$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbtcontroller_br_edr$(LIB_EXT)
endif
ifeq ($(USE_LIB), 1)
LINKLIB += \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmarch$(LIB_EXT) \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmcommon$(LIB_EXT) \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libdrivers$(LIB_EXT) \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libnetwork$(LIB_EXT) \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libos$(LIB_EXT) \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmsys$(LIB_EXT)
ifeq ($(USE_NIMBLE), 1)
LINKLIB += \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libblehost$(LIB_EXT) \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libapp$(LIB_EXT)
else
LINKLIB += \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbthost_br_edr$(LIB_EXT)\
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libapp_br_edr$(LIB_EXT)
endif
endif
LINKFLAGS_$(TARGET) = \
$(LINKLIB)
CONFIGURATION_DEFINES =
DEFINES += \
$(CONFIGURATION_DEFINES)
DDEFINES += \
$(CONFIGURATION_DEFINES)
INCLUDES := $(INCLUDES) -I$(PDIR)include
INCLUDES += -I ./
sinclude $(TOP_DIR)/tools/$(CONFIG_ARCH_TYPE)/rules.mk
.PHONY: FORCE
FORCE:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化