cxx := gccarm #~ file_cpp := $(wildcard *.cpp) file_cpp := ./test_turn.cpp #~ file_cpp := ./test_run.cpp #~ file_cpp := ./test_psd.cpp #~ file_o := /home/pi/usr/move.x file_o := /home/pi/usr/turn.x #~ file_o := /home/pi/usr/psd.x $(file_o) : $(file_cpp) @$(cxx) $^ -o $@ maze : $(file_o) clean : @rm -rf $(file_o) debug : @echo $(cxx) @echo $(file_cpp) @echo $(file_o) .PHONY : maze clean debug