3 # mkdep 1.1 - Generate Makefile dependencies. Author: Kees J. Bot
5 # Does what 'cc -M' should do, but no compiler gets it right, they all
6 # strip the leading path of the '.o' file.)
8 # Added option to generate .depend files in subdirectories of given dir.
17 echo "Usage: mkdep 'cpp command' file ..." >&2
18 echo " mkdep directory" >&2
21 # Create .depend files ...
23 echo "Creating .depend files in $1"
24 for dir
in `find $1 -type d ! -name CVS ! -name .svn`
32 # Get dependencies ...
40 o
=`expr "$f" : '\(.*\)\..*'`.o
49 -e '/^<built-in>$/d' \
50 -e '/^<command line>$/d' \
59 # $PchId: mkdep.sh,v 1.3 1998/07/23 21:24:38 philip Exp $