cxx := gccarm file_cpp := $(wildcard *.cpp) file_o := maze.x $(file_o) : $(file_cpp) @$(cxx) $^ -O $@ maze : $(file_o) debug : @echo $(cxx) @echo $(file_cpp) @echo $(file_o) .PHONY : maze debug