seindal@diku.UUCP (Rene Seindal) (07/09/87)
I've made a small hack in the CC script to make it make make dependencies. If called like CC -M file ... it will generate make dependencies just as cc -M does. I guess it is rather BSD specific, but its nice anyway. Rene' Seindal (seindal@diku.UUCP). The Computer Department, Institute of Datalogy, U. of Copenhagen. ---- CUT HERE --------------------------------------------------------- *** /tmp/,RCSt1020415 Mon May 25 10:23:24 1987 --- /tmp/,RCSt2020415 Mon May 25 10:23:25 1987 *************** *** 8,13 **** --- 8,14 ---- C= EE=0 FON= XON= O= PON= R= SUF= X= Y= DASHR= PLUSI= + MON= # seindal, May 18 1987. Z= E=0 OF= CF= SF= IF= *************** *** 40,45 **** --- 41,48 ---- -Fc) FON=1 O="$O +L" ;; + -M) MON=1 + ;; -C) Y="$Y $A" O="$O +C" ;; *************** *** 103,108 **** --- 106,127 ---- E=$? else $cppC -C $Y $CPLUS -I$I $A | $cfrontC +L +f$A $O + E=$? + fi + case $E in + 0) ;; + *) G=0; break + ;; + esac + elif test $MON # seindal, May 18, 1987 + then + if test $SUF + then + #echo "$cppC -M $O $A > $B$SUF:" 1>&2 + $cppC -M $Y $CPLUS -I$I $A >$B$SUF + E=$? + else + $cppC -M $Y $CPLUS -I$I $A E=$? fi case $E in