如何修改make的預設資料? - Linux

Adele avatar
By Adele
at 2011-04-29T11:43

Table of Contents

不是針對特定Makefile修改
是想要對make本身的預設資料作修改
(如CC等)

我平常編譯習慣打make -j
但是在一台cpu為e8400的電腦上(雙核心,無HT)
打make -j卻超出他的核心數
正常來說應該只會開2個jobs..他卻開了五六個

導致每次打make -j時loading會飆到2xx以上
(接近當機orz)

我知道可以打make -j 2 來限制就好
但想問有沒有辦法直接改make的預設資料呢?

make -p可以查他目前的設定,但我找不到設定檔

感謝

--
Tags: Linux

All Comments

Emma avatar
By Emma
at 2011-05-01T08:48
我看make的manpage,他的意思好像是:-j =>他會開無限多...
Carolina Franco avatar
By Carolina Franco
at 2011-05-04T21:11
在那一台上alias make => make -j 2 如何?
Puput avatar
By Puput
at 2011-05-07T23:07
還是把make改成一個bash script?
Ingrid avatar
By Ingrid
at 2011-05-11T05:10
make CC=mips-linux-gcc 像這樣?
Isabella avatar
By Isabella
at 2011-05-13T20:34
嗯..我找不到比較好的解orz..還是乖乖打-j 2好了
有時候不需要加上-j,設定alias反而造成困擾XDDD

shell argument 特殊符號

Zanna avatar
By Zanna
at 2011-04-29T06:20
因為要argument會讀取到一些特殊符號,但是在讀取後 往往特殊符號會被忽略。 例如: a.sh內容 echo $1 執行 ./a.sh and#39; 輸出卻會是空白 除了在特殊符號前加上\之外 是否有別的方式? - ...

DeSmuMe 存檔備份

Edwina avatar
By Edwina
at 2011-04-29T01:19
因為Ubuntu 11.04出了,想重灌 我習慣把整個系統重灌,所以要先行備份 但我不知到DeSmuMe資料是存在那裡 google and#34;linux desmume 存檔 備份and#34; 也不是我要的主題 (可能我關鍵字太爛) 有用過DeSmuMe的過來人可以告訴我嗎,謝謝 - ...

無法直接更新上11.04

David avatar
By David
at 2011-04-29T00:13
用內建的upgrade 好幾次都卡在Setting up new software channels 沒法升級。請問我該怎麼做呢?謝謝 錯誤訊息如下: Could not calculate the upgrade An unresolvable problem occurred while calcu ...

如何擷取 iBus 輸入法面板的 window class?

Noah avatar
By Noah
at 2011-04-28T23:37
大家平安, 前一陣子因為 SCIM bug 變多, 決定毅然改用 iBus(並買了嘸蝦米的官版,可合法下載 iBus 參考表) 今天就從 SCIM switch 到 iBus。 不過有個問題,我用 Compiz 時平常視窗動畫都是設 random, 但為了效能和順眼,輸入法的蹦現選字或組字框我都會設 No ...

11.04beta2會自動更新成正式版嗎?

Rachel avatar
By Rachel
at 2011-04-28T23:28
因為今天我開更新 他一動也不動 害我不知道要不要重新下載11.04版 如果重慣的話 可以用更新的方式就好嗎 不然好多東西又要重新設定(我的無線網卡驅動Q) - ...