summaryrefslogtreecommitdiff
path: root/depend.sh
blob: e640888428e1d30ef5309d2cb5ea8adb863f3414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# $Id$

CC=$1
shift

# $CC -M -MG $* | \

( $CC -MM $* || exit 1 ) | \
sed \
	-e 's@^\(.*\)\.o:@\1.d \1.o:@'