aboutsummaryrefslogtreecommitdiffstats
path: root/.compile.do
blob: 310ddd55220b401456be6cfd556235d30206f8c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -e
redo-ifchange .config.rc
. ./.config.rc
exec >"$3"
echo "# generated by $0"
echo "CC=$CC"
echo "CFLAGS=(${CFLAGS[@]@Q})"
echo "CPPFLAGS=(${CPPFLAGS[@]@Q})"
echo '"$CC" -MMD -MF "${1%.o}.d" "${CFLAGS[@]}" "${CPPFLAGS[@]}" -c -o "$3" "${1%.o}.c"'
command -v redo-stamp >/dev/null 2>&1 && redo-stamp <"$3"
if command -v redo-stamp >/dev/null 2>&1; then
	redo-stamp <"$3"
fi