加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
golden 提交于 2020-02-17 16:56 . fix node mk file issue
#CROSS_COMPILER = KEILCC
$(info ****************************************************************)
$(info * OPEN ROBOT SYSTEM)
$(info * Version 1.0)
$(info * Date 2020-01-22)
$(info ****************************************************************)
RM = del
RMDIR = rmdir /s /q
CP = copy /y
BUILD=pio run
BURN=pio run --target upload
CLEAN=pio run -t clean
TOP_DIR=$(shell chdir)
OUTDIR = out
include build/macro.mk
include build/robot.mk
##### all robot host node file ###################
ROBOT_NODE_SUBDIR = robot
define all-makefiles-under-robot-node
$(wildcard $(1)/$(RBT)/node/*/*.mk)
endef
include $(call all-makefiles-under-robot-node,$(ROBOT_NODE_SUBDIR))
##### all robot node host file ###################
ROBOT_HOST_SUBDIR = robot
define all-makefiles-under-robot-host
$(wildcard $(1)/$(RBT)/host/*/*.mk)
endef
include $(call all-makefiles-under-robot-host,$(ROBOT_HOST_SUBDIR))
##### all middleware makefile ###################
MIDDLEWARE_SUBDIR = middleware
define all-makefiles-under-middleware
$(wildcard $(1)/*/*/Makefile)
endef
include $(call all-makefiles-under-middleware,$(MIDDLEWARE_SUBDIR))
.PHONY:clean-all
clean-all:
$(RMDIR) $(OUTDIR)
$(RM) ./platformio.ini
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化