aboutsummaryrefslogtreecommitdiffstats
path: root/out/CC.do
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-04-08 09:19:33 +0200
committerxRamses <tharre3@gmail.com>2014-04-08 09:19:33 +0200
commitc766f073e60c3aa51a3cc1555af87ded5823e5a0 (patch)
tree43595070e833b251b3f7ac7e94e5e992918194ef /out/CC.do
downloadredo-c766f073e60c3aa51a3cc1555af87ded5823e5a0.tar.gz
redo-c766f073e60c3aa51a3cc1555af87ded5823e5a0.tar.xz
redo-c766f073e60c3aa51a3cc1555af87ded5823e5a0.zip
Initial codebase
Diffstat (limited to 'out/CC.do')
-rw-r--r--out/CC.do12
1 files changed, 12 insertions, 0 deletions
diff --git a/out/CC.do b/out/CC.do
new file mode 100644
index 0000000..f18177a
--- /dev/null
+++ b/out/CC.do
@@ -0,0 +1,12 @@
+redo-ifchange config.sh
+. ./config.sh
+
+exec >$3
+cat <<-EOF
+ redo-ifchange \$SRCDIR/\$2.c
+ $CC $CFLAGS -MD -MF \$3.deps -o \$3 -c \$SRCDIR/\$2.c
+ read DEPS <\$3.deps
+ rm -f \$3.deps
+ redo-ifchange \${DEPS#*:}
+EOF
+chmod +x $3