#!/bin/bash . ./functions.sh touch config.omk-default echo "CFLAGS=-DNUMBER=123" > config.omk needs_valid_CC make||error "Can't compile" if [ $OMK_RULES = linux ]; then # The following should work only with Linux rules _compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output" fi