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
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