5 cat > 'test.cc' <<'EOF'
11 printf("NUMBER is %d\n", NUMBER);
13 # error No NUMBER defined
19 cat > 'Makefile.omk' <<'EOF'
22 test_SOURCES = test.cc
26 WVPASS make CXXFLAGS=-DNUMBER=123
28 if [ $OMK_RULES = linux ]; then
29 # The following should work only with Linux rules
30 _compiled/bin/test|grep 123 || error "Custom CXXFLAGS didn't influence the output"