mirror of
https://gitee.com/yyz_o/bk_bishe_pi.git
synced 2025-09-07 23:21:26 +00:00
2025.5.14第一次提交,编写完成makefile文件
This commit is contained in:
@@ -1,19 +1,30 @@
|
|||||||
|
|
||||||
cxx := gccarm
|
cxx_pi := gccarm
|
||||||
|
cxx_sim := g++sim
|
||||||
|
|
||||||
file_cpp := $(wildcard *.cpp)
|
file_cpp := $(wildcard *.cpp)
|
||||||
file_o := maze.x
|
file_o_pi := maze.x
|
||||||
|
file_o_sim := maze.x
|
||||||
|
|
||||||
$(file_o) : $(file_cpp)
|
|
||||||
@$(cxx) $^ -O $@
|
|
||||||
|
|
||||||
maze : $(file_o)
|
$(file_o_pi) : $(file_cpp)
|
||||||
|
@$(cxx_pi) $^ -O $@
|
||||||
|
|
||||||
|
$(file_o_sim) : $(file_cpp)
|
||||||
|
@$(cxx_sim) $^ -O $@
|
||||||
|
|
||||||
|
mazepi : $(file_o_pi)
|
||||||
|
|
||||||
|
mazesim : $(file_o_sim)
|
||||||
|
|
||||||
|
clean :
|
||||||
|
@rm -rf $(file_o_pi)
|
||||||
|
|
||||||
debug :
|
debug :
|
||||||
@echo $(cxx)
|
@echo $(cxx_pi)
|
||||||
|
@echo $(cxx_sim)
|
||||||
@echo $(file_cpp)
|
@echo $(file_cpp)
|
||||||
@echo $(file_o)
|
@echo $(file_o_pi)
|
||||||
|
@echo $(file_o_sim)
|
||||||
|
|
||||||
|
.PHONY : mazepi mazesim clean debug
|
||||||
|
|
||||||
.PHONY : maze debug
|
|
||||||
Reference in New Issue
Block a user