Z3Gateway 子 Makefile

本文主要介绍如何将ZigBee项目Z3Gateway中新增的C/C++/H文件通过Makefile进行编译。环境为gecko_sdk_4.0.2和Simplicity Studio v5。通过设定BasePath为msming,可以遍历并编译该目录下的所有子目录文件。
摘要由CSDN通过智能技术生成

目的

将新增加的文件( * .c,* .cpp, * .h)通过Makefile追加至“Z3Gateway.Makefile”,使用工程定义规则编译。

1. 环境

SDK: gecko_sdk_4.0.2
IDE: Simplicity Studio v5

2. BasePath

设定 BasePath=msming 即可递归msming下的所有子目录。

####################################################################
# Module    Makefile                                               #
####################################################################
# 目录/文件, cfile/src/a.c
#FilePath = $(abspath $(lastword $(MAKEFILE_LIST)))
# 目录/, cfile/src/
#FileDir = $(dir $(FilePath))
# 文件, a.c
#FileName = $(notdir $(FilePath))

#$(info FilePath: $(FilePath))
#$(info FileDir: $(FileDir))
#$(info FileName: $(FileName))	

#WorkDir = $(shell pwd)

####################################################################
#子模块名称
BasePath = msming
#包含BasePath的路经,最大10层
SourcePaths := $(shell find $(BasePath) -maxdepth 10 -type d)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值