[問題] makefile的使用
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
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章