1 | #####
|
---|
2 | #
|
---|
3 | # optimization configuration file
|
---|
4 | #
|
---|
5 | #####
|
---|
6 | #
|
---|
7 | #$Id$
|
---|
8 | #
|
---|
9 |
|
---|
10 | #--- Extra flags passed to the packages make commands
|
---|
11 | # "unset" will cause the variable to be not set
|
---|
12 | # instead of just set to null.
|
---|
13 | MAKEFLAGS="-j3"
|
---|
14 |
|
---|
15 | #--- Default optimization mode
|
---|
16 | # This level is overridden by definitions in opt_override;
|
---|
17 | # in this way, packages can be tuned independently. For example,
|
---|
18 | # if you have trouble building a package in mode defOpt, add
|
---|
19 | # the package to opt_override with a different mode.
|
---|
20 | DEF_OPT_LVL=defOpt
|
---|
21 |
|
---|
22 |
|
---|
23 | #--- Active optimization variables
|
---|
24 | # Variables listed here will be set as defined in the appropriate
|
---|
25 | # file in opt_config.d/; others will be ignored.
|
---|
26 | ACTIVE_OPT_VARS="CFLAGS CXXFLAGS LDFLAGS \
|
---|
27 | OTHER_CFLAGS OTHER_CXXFLAGS OTHER_LDFLAGS"
|
---|
28 |
|
---|
29 | #--- Load optimization modes
|
---|
30 | # To add modes, create a working template..
|
---|
31 | # cp opt_config.d/defOpt opt_config.d/newMode
|
---|
32 | # ..and edit it as desired.
|
---|
33 | #
|
---|
34 | # To inherit another mode and add to it, see opt_config.d/defOpt_march
|
---|
35 | # as an example. Given opt_config.d/modeA_modeB_modeC, modeB inherits
|
---|
36 | # the optimizations of modeA by sourcing it, and modeC inherits those
|
---|
37 | # of modeB (which includes those of modeA).
|
---|
38 | #
|
---|
39 | # Add packages that are to use this mode to opt_override with:
|
---|
40 | # echo 'myPkg newMode' >> opt_override
|
---|
41 | for mode in optimize/opt_config.d/* ; do
|
---|
42 | source $mode
|
---|
43 | done
|
---|