]> rtime.felk.cvut.cz Git - omk.git/blob - tests/programs-cflags-cmdline
Document AM_*FLAGS and relation to *FLAGS
[omk.git] / tests / programs-cflags-cmdline
1 #!/bin/bash
2
3 . ./functions.sh
4
5 touch config.omk-default
6 needs_valid_CC
7 make CFLAGS="-DNONSENSE=abc -DNUMBER=123"||error "Can't compile"
8 if [ $OMK_RULES = linux ]; then
9     # The following should work only with Linux rules
10     _compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
11 fi