看板 EE_DSnP 關於我們 聯絡資訊
回答一下最常被問的 Makefile 問題... Q: 當我打 make 的時候 Linux 怎麼知道要找哪個 makefile 呢? A: 如果執行 make 不加參數, by default 它會去找名字叫 "Makefile" 或 "makefile" 的檔案. 當然 makefile 可以不用叫 "Makefile" or "makefile", 假設你的 makefile 叫 "myMake.txt", 你必須將他以參數傳進去, that is, "make -f myMake.txt". Note: 在 Linux 底下, 檔案的屬性不是用副檔名來決定的. 比方說, 你可以有個執行檔 叫 "forFun.txt". -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.21.240