linux 编译C应用程序的Makefile

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

posted @ 2015-03-06 13:14  luxiaolai  阅读(342)  评论(0编辑  收藏  举报