aboutsummaryrefslogtreecommitdiffstats
path: root/out/CC.do
blob: bf1a46f1898f6ee780e1263ed09df4da5128a19b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
redo-ifchange config.sh
. ./config.sh

exec >$3
cat <<-EOF
	redo-ifchange \$SRCDIR/\$2.c
	temp=\$($CC $CFLAGS -MD -MF /dev/fd/1 -o \$3 -c \$SRCDIR/\$2.c)
	echo $temp | sed 's/^[^:]*://g' | sed 's/ \\\\$//g' | xargs redo-ifchange
EOF
chmod +x $3