【发布时间】:2014-08-29 19:28:09
【问题描述】:
这里是 Makefile(Unix Shell)
main : mainFunc.c
gcc -c -o main.o mainFunc.c
other : otherSum.c
gcc -c -o other.o otherSum.c
link : other.o main.o
gcc -o main.out other.o main.o
如何在另一个新目标中调用它们
我试过这样:
doAll :
make main
make other
make link
确实 main.out 已经构建完成
但还有更多类似“make[1]:离开/进入目录……”的行
我想知道为什么
【问题讨论】: