Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (11 sloc) 226 Bytes
#!/bin/sh
DIR="$1"
shift 1
case "$DIR" in
"" | "." )
$CC -MM -MG "$@" | sed -e 's@^\(.*\)\.o:@\1.d \1.o:@'
;;
*)
$CC -MM -MG "$@" | sed -e 's@^\(.*\)\.o:@$DIR/\1.d $DIR/\1.o:@'
;;
esac