Remove status_ member
[Arachnida.git] / project / gnu / depend.sh
blobf7d1634614232a32ba2ba88e131cd150838ea847
1 #! /bin/bash
2 case "$1" in
3 -c)
4 CC=gcc
5 shift 1
6 ;;
7 -cxx)
8 CC=g++
9 shift 1
12 CC=gcc
14 esac
15 DIR="$1"
16 shift 1
17 case "$DIR" in
18 "" | ".")
19 $CC -M -MP "$@" | sed -e 's@^\(.*\)\.o:@\1.d \1.lo:@'
22 $CC -M -MP "$@" | sed -e "s@^\(.*\)\.o:@$DIR/\1.d $DIR/\1.lo:@"
24 esac