#!/bin/sh -
#
-# $OpenBSD: mkdep.append,v 1.4 1997/01/25 08:47:55 deraadt Exp $
+# $OpenBSD: mkdep.append,v 1.5 1997/01/25 14:27:43 niklas Exp $
# $NetBSD: mkdep.append,v 1.2 1994/12/23 07:34:57 jtc Exp $
#
# Copyright (c) 1991, 1993
# egrep '^#include[ ]*".*"' /dev/null $* |
# sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' -e 's/\.c/.o/' |
-cc -M $* |
+${CC:-cc} -M $* |
sed "
s; \./; ;g
$SED" |
#!/bin/sh -
#
-# $OpenBSD: mkdep.gcc.sh,v 1.5 1997/01/25 08:47:56 deraadt Exp $
+# $OpenBSD: mkdep.gcc.sh,v 1.6 1997/01/25 14:27:44 niklas Exp $
# $NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $
#
# Copyright (c) 1991, 1993
trap 'rm -rf $DTMP ; exit 1' 1 2 3 13 15
if [ x$pflag = x ]; then
- cc -M "$@" | sed -e 's; \./; ;g' > $TMP
+ ${CC:-cc} -M "$@" | sed -e 's; \./; ;g' > $TMP
else
- cc -M "$@" | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP
+ ${CC:-cc} -M "$@" | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP
fi
if [ $? != 0 ]; then
#!/bin/sh -
#
-# $OpenBSD: mkdep.sh,v 1.5 1997/01/25 08:47:58 deraadt Exp $
+# $OpenBSD: mkdep.sh,v 1.6 1997/01/25 14:27:44 niklas Exp $
# $NetBSD: mkdep.sh,v 1.3 1994/12/23 07:35:02 jtc Exp $
#
# Copyright (c) 1991, 1993
umask $um
trap 'rm -rf $DTMP ; exit 1' 1 2 3 13 15
-cc -M $* |
+${CC:-cc} -M $* |
sed "
s; \./; ;g
/\.c:$/d
#!/bin/sh -
#
-# $OpenBSD: mkdep.ultrix,v 1.4 1997/01/25 08:47:58 deraadt Exp $
+# $OpenBSD: mkdep.ultrix,v 1.5 1997/01/25 14:27:45 niklas Exp $
# $NetBSD: mkdep.ultrix,v 1.2 1994/12/23 07:35:04 jtc Exp $
#
# Copyright (c) 1991, 1993
# sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' -e 's/\.c/.o/' |
# Ultrix has already used -M for something else.
-cc -Em $* |
+${CC:-cc} -Em $* |
sed "
s; \./; ;g
$SED" |