Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:makefile-system [2009/04/24 10:08] miconda |
tutorials:makefile-system [2011/12/09 23:25] (current) 208.86.215.38 old revision restored |
||
---|---|---|---|
Line 5: | Line 5: | ||
< | < | ||
make | make | ||
+ | </ | ||
+ | |||
+ | ===== Compile Everything ===== | ||
+ | |||
+ | < | ||
+ | make all | ||
+ | </ | ||
+ | |||
+ | ===== Install Everything ===== | ||
+ | |||
+ | < | ||
+ | make install | ||
+ | </ | ||
+ | |||
+ | ===== Clean Source Tree ===== | ||
+ | |||
+ | * clean object files | ||
+ | |||
+ | < | ||
+ | make clean | ||
+ | </ | ||
+ | |||
+ | * clean all generated files | ||
+ | |||
+ | < | ||
+ | make proper | ||
</ | </ | ||
Line 13: | Line 39: | ||
make modules_k | make modules_k | ||
make modules_s | make modules_s | ||
+ | </ | ||
+ | |||
+ | ===== Generate Config for Makefile ===== | ||
+ | |||
+ | < | ||
+ | make cfg | ||
+ | </ | ||
+ | |||
+ | * add extra defines in makefile config | ||
+ | |||
+ | < | ||
+ | make EXTRA_DEFS=" | ||
+ | </ | ||
+ | |||
+ | * cfg for Makefile is config.mak | ||
+ | * you can edit it and tune as you wish before compilation | ||
+ | |||
+ | ===== Enable Module ===== | ||
+ | |||
+ | If the module is not compiled by default: | ||
+ | |||
+ | * edit **modules.lst** | ||
+ | * remove the name of the module from **exclude_modules** variable | ||
+ | |||
+ | or type: < | ||
+ | |||
+ | The same can be accomplished with < | ||
+ | , but this will remake the whole config. | ||
+ | |||
+ | ===== Combined Parameters ===== | ||
+ | |||
+ | Various parameters can be given to make command, an example: | ||
+ | |||
+ | <code c> | ||
+ | make prefix=/ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | all | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | or you can save them in the config (they will be used by future make invocations) by givin the same parameters to make cfg: | ||
+ | <code c> | ||
+ | make cfg prefix=/ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
</ | </ | ||