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.
8 lines
283 B
Text
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"
|