[問題] makefile的使用

看板Linux作者 (LJ)時間17年前 (2009/03/25 23:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
If there are three directory A, B, and C. There are three files in the directory A: A1.c, A2.c, and A3.c. There are two files in the directory B: B1.c and B2.c. There is one file in the directory C: C1.c. It is noted that all the files are needed for compile the program. How to write a Makefile in the situation like this? 簡單來說,如何撰寫makefile裡面的指令 把不同資料夾下的c檔編譯成同一個執行檔 請求高手幫忙 謝謝 -- 2009 PTT Baseball Classic台灣夢幻宅隊 SP RP CP 監督 第一棒 SS 蝴蝶姐姐 第六棒 3B 天 心 桂綸鎂 林嘉欣 林志玲 徐裴翊 第二棒 2B 卓文萱 第七棒 LF 白歆惠 張鈞甯 林立雯 洋將 領隊 第三棒 1B 楊謹華 第八棒 RF 侯佩岑 楊丞琳 王怡仁 千田愛紗 吳怡霈 第四棒 DH 艾莉絲 第九棒 C 陳怡蓉 林依晨 薇 如 佐藤麻衣 永久欠番 第五棒 CF 賴雅妍 練習生 瑤 瑤 徐若瑄 馮媛甄 瑞莎 許瑋倫 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.149.119
文章代碼(AID): #19oaU8M1 (Linux)
文章代碼(AID): #19oaU8M1 (Linux)