aboutsummaryrefslogtreecommitdiffstats
path: root/out/CC.do
blob: 3191b61c1e9b4ca4c0a6bab49017a6debf49ae98 (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