1 Star 0 Fork 0

有事烧纸/w600_sdk_thingsturn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
#############################################################
# Required variables for each makefile
# Discard this section from all parent makefiles
# Expected variables (with automatic defaults):
# CSRCS (all "C" files in the dir)
# SUBDIRS (all subdirs with a Makefile)
# GEN_LIBS - list of libs to be generated ()
# GEN_IMAGES - list of object file images to be generated ()
# GEN_BINS - list of binaries to be generated ()
# COMPONENTS_xxx - a list of libs/objs in the form
# subdir/lib to be extracted and rolled up into
# a generated lib/image xxx.a ()
#
TOP_DIR:=./
sinclude $(TOP_DIR)/tools/tool_chain.def
TARGET = w600
USE_LIB=1
#EXTRA_CCFLAGS += -u
ifndef PDIR # {
GEN_IMAGES= $(TARGET).out
GEN_BINS = $(TARGET).bin
SUBDIRS = \
$(TOP_DIR)/app \
$(TOP_DIR)/demo \
$(TOP_DIR)/platform/boot/$(COMPILE)
endif # } PDIR
ifndef PDIR # {
ifeq ($(USE_LIB), 0)
SUBDIRS += \
$(TOP_DIR)/platform/common \
$(TOP_DIR)/platform/drivers \
$(TOP_DIR)/platform/sys \
$(TOP_DIR)/src/network \
$(TOP_DIR)/src/os \
$(TOP_DIR)/src/app
endif
endif
COMPONENTS_$(TARGET) = \
$(TOP_DIR)/platform/boot/$(COMPILE)/startup.o \
$(TOP_DIR)/platform/boot/$(COMPILE)/misc.o \
$(TOP_DIR)/platform/boot/$(COMPILE)/retarget.o \
$(TOP_DIR)/app/libuser$(LIB_EXT) \
$(TOP_DIR)/demo/libdemo$(LIB_EXT)
ifeq ($(USE_LIB), 0)
COMPONENTS_$(TARGET) += \
$(TOP_DIR)/platform/common/libcommon$(LIB_EXT) \
$(TOP_DIR)/platform/drivers/libdrivers$(LIB_EXT) \
$(TOP_DIR)/platform/sys/libsys$(LIB_EXT) \
$(TOP_DIR)/src/network/libnetwork$(LIB_EXT) \
$(TOP_DIR)/src/os/libos$(LIB_EXT) \
$(TOP_DIR)/src/app/libapp$(LIB_EXT)
endif
LINKLIB = \
$(TOP_DIR)/lib/libwlan$(LIB_EXT) \
$(TOP_DIR)/lib/libairkiss_log$(LIB_EXT)
ifeq ($(USE_LIB), 1)
LINKLIB += \
$(TOP_DIR)/lib/libcommon$(LIB_EXT) \
$(TOP_DIR)/lib/libdrivers$(LIB_EXT) \
$(TOP_DIR)/lib/libsys$(LIB_EXT) \
$(TOP_DIR)/lib/libnetwork$(LIB_EXT) \
$(TOP_DIR)/lib/libos$(LIB_EXT) \
$(TOP_DIR)/lib/libapp$(LIB_EXT)
endif
ifeq ($(COMPILE), gcc)
LINKFLAGS_$(TARGET) = \
$(LINKLIB) \
-T$(LD_FILE) \
-Wl,-warn-common
else
LINKFLAGS_$(TARGET) = \
--library_type=microlib \
$(LINKLIB) \
--strict --scatter $(LD_FILE)
endif
#############################################################
# Configuration i.e. compile options etc.
# Target specific stuff (defines etc.) goes in here!
# Generally values applying to a tree are captured in the
# makefile at its root level - these are then overridden
# for a subtree within the makefile rooted therein
#
CONFIGURATION_DEFINES = -DWM_W600
DEFINES += \
$(CONFIGURATION_DEFINES)
DDEFINES += \
$(CONFIGURATION_DEFINES)
#############################################################
# Recursion Magic - Don't touch this!!
#
# Each subtree potentially has an include directory
# corresponding to the common APIs applicable to modules
# rooted at that subtree. Accordingly, the INCLUDE PATH
# of a module can only contain the include directories up
# its parent path, and not its siblings
#
# Required for each makefile to inherit from the parent
#
INCLUDES := $(INCLUDES) -I$(PDIR)include
INCLUDES += -I ./
#PDIR := ../$(PDIR)
#sinclude $(PDIR)Makefile
sinclude $(TOP_DIR)/tools/rules.mk
.PHONY: FORCE
FORCE:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/cmheia/w600_sdk_thingsturn.git
git@gitee.com:cmheia/w600_sdk_thingsturn.git
cmheia
w600_sdk_thingsturn
w600_sdk_thingsturn
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385