# Copyright (c) 1991 The Regents of the University of California.
# %sccs.include.redist.sh%
# @(#)mkdep.gcc.sh 5.4 (Berkeley) %G%
PATH
=/bin
:/usr
/bin
:/usr
/ucb
D
=.depend
# default dependency file is .depend
# -a appends to the depend file
# -f allows you to select a makefile name
# the -p flag produces "program: program.c" style dependencies
# so .o's don't get produced
echo 'usage: mkdep [-p] [-f depend_file] [cc_flags] file ...'
trap 'rm -f $TMP ; exit 1' 1 2 3 13 15
cpp
-M $
* |
sed 's;\.o :; :;' > $TMP
echo 'mkdep: compile failed.'