.PHONY:all
all:test2 myload
test2:test2.c
gcc -o $@ $^
myload:myload.c
gcc -o $@ $^
.PHONY:clean
clean:
rm -rf test2 myload
之后每加一个文件,就在all后面添加一个
.PHONY:all
all:test2 myload
test2:test2.c
gcc -o $@ $^
myload:myload.c
gcc -o $@ $^
.PHONY:clean
clean:
rm -rf test2 myload
之后每加一个文件,就在all后面添加一个