#!/bin/sh -
+# Copyright 1998,1999 The OpenLDAP Foundation
+# COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
+# of this package for details.
#
+# Portions
# Copyright (c) 1987 Regents of the University of California.
# All rights reserved.
#
MAKE=Makefile # default makefile name is "Makefile"
NOSLASH="no" # by default, / dependencies are included
CC=${CC-cc} # default compiler is cc
+: ${CC_MKDEP_FLAGS="-M"} # cc -M usually produces dependencies
SRCDIR=""
SED=cat
#
# files: $*
-# command: $CC -M $files
+# command: $CC $CC_MKDEP_FLAGS $files
#
_EOF_
-$CC -M $files | \
+$CC $CC_MKDEP_FLAGS $files | \
sed -e 's; \./; ;g' | \
$SED | \
awk '