Boton's Note
標籤
C++
(12)
Linux
(6)
MacOSX
(4)
Makefile
(3)
Matlab
(3)
Ubuntu
(3)
Android
(2)
C
(1)
Refactoring
(1)
2013年3月15日 星期五
[Makefile] Rules & Implicit Rules
%.o : %.cpp
$(CC) -o ...
這種寫法只有"當前目錄下"的.o檔才會使用這條rule
如果要把*.o放到obj/下的話
就得寫成
obj/%.o: %.cpp
$(CC) -o ...
這樣才找得到
另外可以在terminal下輸入make -p
來看到整個make的流程
沒有留言:
張貼留言
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言