-a --args $arg |
Adds $arg to the compile command if compile/build, passes arguments to application if run |
-A --add $arg |
CSV list of additional sources to compile/link, disable recursive finding with "<dir>\, 0" |
-b --binc $s |
Add include directories to back of compile command, separated by standard system PATH environment win=; others=: |
-B --bpath $s |
Add library search directory to back of link command, separated by standard system PATH environment win=; others=: |
-C --directory $d |
Execute on directory $d rather than current directory |
-d --dependencies |
See dependency build rules |
-D --dump |
Write command logs to ./.mkn/logs/$PROFILE |
-E --env $e |
CSV key=value environment variables override format -E "k1=v1,k2=v2", can be used with run/dbg, backslash escapes , and = |
-f --finc $s |
Add include directories to front of compile command, separated by standard system PATH environment win=; others=: |
-F --fpath $s |
Add library search directory to front of link command, separated by standard system PATH environment win=; others=: |
-g --debug [0-9] |
Add compiler/linker debug flags for chosen compiler - 0 = off / 9 = full - number missing = 9 / no default |
-G --get $k |
Returns string value for property K in either local yaml or settings.yaml, failure is no string 0 exit code |
-h --help |
Print help |
-j --jargs $j |
Takes JSON in the form of {"c": "-DC_ARG1 -DC_ARG2", "cpp": "-DCXX_ARG1 -DCXX_ARG2"} passing file-type specific args to compiler |
-l --linker $t |
Adds $t to linking of root project |
-K --static |
Links projects without mode as static |
-L --all-linker $t |
Adds $t to linking of all projects |
-m --mod $str |
Add module(s), see modules |
-M --main $f |
Set main file as $f, overrides yaml main tag |
-n --nodes [$n] |
Activate distributed compilation with $n nodes from chosen settings.yaml (-x) |
-o --out $f |
Set output binary/lib name to be $f, overrides yaml out tag |
-O --optimize [0-9] |
Add compiler/linker optimisation flags for chosen compiler - 0 = off / 9 = full - number missing = 9 / no default |
-p --profile $p |
Activate profile p |
-P --property $p |
A project's properties override, CSV key=value -P "k1=v1,k2=v2", backslash escapes , and =. Settings files' properties are -X |
-q --quiet |
Suppress "stale build" notice when compiling without build/compile |
-r --run-args $a |
Passes $a to running binary as arguments, supersedes -a. Arguments after -- are appended |
-R --dry-run |
Print commands without executing them. |
-s --scm-status |
Display SCM status of project, allows -d |
-S --shared |
Links projects without mode as shared |
-t --threads $n |
Consume $n threads while compiling source files where $n > 0, If $n is missing optimal resolution attempted. |
-T --without $CSV |
Remove profile or dependency on the command line, see with/out |
-u --scm-update |
Update project from SCM when permitted, allows -d |
-U --scm-force-update |
Force update project from SCM, allows -d |
-v --version |
Displays the current maiken version number |
-V --verbose [0-5] |
Set log level, same values as KLOG, number missing = 1 |
-w --with |
Add profile or dependency on the command line, see with/out |
-W --warn |
Add compiler warning flags for chosen compiler - 0 = off / 9 = full - number missing = 8 / no default |
-x --settings $f |
Sets settings.yaml in use to $f, see settings.yaml location |
-X --settings-property $p |
Settings files' properties override, as -P: used before a settings file's property: of the same name, also in its env:, inc:, path: and file: entries and maiken's mkn.* properties, see settings.yaml |