2019-02-03 01:14:51 -05:00
|
|
|
# See compile.od for more explanation.
|
|
|
|
|
cat >$3 <<-EOF
|
|
|
|
|
#!/bin/sh -e
|
|
|
|
|
# Run the C/C++ compiler.
|
|
|
|
|
# Assumes config variables (CFLAGS, etc) are already set.
|
|
|
|
|
t="\$1" d="\$2" i="\$3"
|
|
|
|
|
IFS="$NL"
|
|
|
|
|
set -f
|
2019-02-25 13:09:11 +00:00
|
|
|
\$CC -o "\$t" \\
|
2019-02-03 01:14:51 -05:00
|
|
|
-MMD -MF "\$d" \\
|
2019-02-25 13:09:11 +00:00
|
|
|
\$CPPFLAGS \$CFLAGS \$CXXFLAGS \$FLAGS_PCH \$xCFLAGS \$OPTFLAGS \\
|
|
|
|
|
-c "\$i"
|
2019-02-03 01:14:51 -05:00
|
|
|
EOF
|
|
|
|
|
chmod a+x "$3"
|
|
|
|
|
redo-stamp <$3
|