apenwarr-redo/docs/cookbook/c/flagtest.o.od
Avery Pennarun 1a3c11f220 redoconf: a stub rc_include() now sources ./redoconf.rc automatically.
This lets us remove the awkward ". ./redoconf.rc" line from zillions
of .od scripts, without paying the price of *always* including that
whole file every time default.do.sh is used.
2019-03-02 04:24:58 -05:00

8 lines
283 B
Text

# Demonstrate how to compile .o files using nonstandard
# compiler flags. You could also do this for a whole
# directory using default.o.od.
rc_include all.rc
src="$S/${1%.o}.c"
redo-ifchange "_compile" "$src"
CC="$CC" CPPFLAGS="-DFLAGTEST_SET=42" ./_compile "$3" "$1.deps" "$src"