Changes between Version 12 and Version 13 of Attic/Building/BuildSystem
- Timestamp:
- 10/09/06 06:51:38 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Attic/Building/BuildSystem
v12 v13 196 196 tell {{{make}}} how to construct one file 197 197 from another. 198 [[br]] 199 {{{boilerplate.mk}}} needs to be200 {{{include}}}d at the ''top''201 of each {{{Makefile}}}, so that the user can202 replace the boilerplate definitions or pattern rules by203 simply giving a new definition or pattern rule in the204 {{{Makefile}}}. {{{make}}}205 simply takes the last definition as the definitive one.206 [[br]][[br]]207 Instead of ''replacing'' boilerplate208 definitions, it is also quite common to209 ''augment'' them. For example, a210 {{{Makefile}}} might say:211 {{{198 199 {{{boilerplate.mk}}} needs to be 200 {{{include}}}d at the ''top'' 201 of each {{{Makefile}}}, so that the user can 202 replace the boilerplate definitions or pattern rules by 203 simply giving a new definition or pattern rule in the 204 {{{Makefile}}}. {{{make}}} 205 simply takes the last definition as the definitive one. 206 [[br]][[br]] 207 Instead of ''replacing'' boilerplate 208 definitions, it is also quite common to 209 ''augment'' them. For example, a 210 {{{Makefile}}} might say: 211 {{{ 212 212 SRC_HC_OPTS += -O 213 213 }}} 214 thereby adding "{{{-O}}}" to215 the end of216 {{{SRC_HC_OPTS}}}.214 thereby adding "{{{-O}}}" to 215 the end of 216 {{{SRC_HC_OPTS}}}. 217 217 218 218 * {{{target.mk}}} contains … … 274 274 275 275 is the build configuration file we discussed at 276 length in <xref linkend="sec-build-config"/>.276 length in [wiki:Building/Using#Gettingthebuildyouwant getting the build you want]. 277 277 278 278 … … 406 406 {{{HC_OPTS}}}, 407 407 the option strings to pass to the Haskell compiler. See 408 <xref linkend="sec-suffix"/>.408 [[ref(Pattern rules and options)]]. 409 409 410 410 411 411 === {{{suffix.mk}}} === 412 412 413 defines standard pattern rules--see <xref 414 linkend="sec-suffix"/>. 413 defines standard pattern rules--see [[ref(Pattern rules and options)]]. 415 414 416 415 … … 456 455 which will generate intermediate .hc files to port to the target 457 456 architecture for bootstrapping. The libraries and stage 2 compiler 458 will be built as HC files for the target system (see <xref 459 linkend="sec-porting-ghc" /> for details. 457 will be built as HC files for the target system (see [wiki:Building/Porting Porting GHC] for details). 460 458 461 459 More details on when to use BUILD, HOST or TARGET can be found in … … 530 528 {{{WAY_CC_OPTS}}} holds 531 529 options to pass to the C compiler when compiling the 532 standard way. ( <xref linkend="sec-ways"/>dicusses530 standard way. ([[ref(Way management)]] dicusses 533 531 multi-way compilation.) 534 532 … … 713 711 want these targets built for. The mechanism here is very 714 712 much like the recursive invocation of 715 {{{make}}} in sub-directories ( <xref716 linkend="sec-subdirs"/>).It is up to you to set713 {{{make}}} in sub-directories ([[ref(Recursion)]]). 714 It is up to you to set 717 715 {{{WAYS}}} in your 718 716 {{{Makefile}}}; this is how you control what
