linux 编译C应用程序的Makefile

CC=arm-linux-gcc
target=test
source=test.c
all: $(target)
$(target): $(source)
 $(CC) -o $@  $<
.PHONY:clean
clean:
 rm -f ~.* test

原文地址:https://www.cnblogs.com/luxiaolai/p/4317963.html