From 09b6ef759adeeb6cf4f3a45017cf27143922280a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=A7=E5=8E=9F=E5=AD=90?= Date: Wed, 14 May 2025 13:00:41 +0800 Subject: [PATCH] =?UTF-8?q?2025.5.14=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=EF=BC=8C=E7=BC=96=E5=86=99=E5=AE=8C=E6=88=90makefile?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maze_code/makefile | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/maze_code/makefile b/maze_code/makefile index 300ce18..ad24b53 100644 --- a/maze_code/makefile +++ b/maze_code/makefile @@ -1,19 +1,30 @@ -cxx := gccarm +cxx_pi := gccarm +cxx_sim := g++sim + 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 : - @echo $(cxx) + @echo $(cxx_pi) + @echo $(cxx_sim) @echo $(file_cpp) - @echo $(file_o) + @echo $(file_o_pi) + @echo $(file_o_sim) - - -.PHONY : maze debug \ No newline at end of file +.PHONY : mazepi mazesim clean debug \ No newline at end of file