From 9fa064ebe6ac5dd3f847c2b67e3cb9f3195a89ed Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 26 Mar 1999 19:22:42 +0000 Subject: [PATCH] Update mkdep with CC_MKDEP_FLAGS from devel. --- build/mkdep | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build/mkdep b/build/mkdep index 6620fbfe8f..07fd779a90 100755 --- a/build/mkdep +++ b/build/mkdep @@ -1,5 +1,9 @@ #!/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. # @@ -26,6 +30,7 @@ set -e # exit immediately if any errors occur 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 @@ -122,12 +127,12 @@ cat << _EOF_ >> $TMP # # 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 ' -- 2.39.2