From 51e58b89dc3a3624b3de459f45c8efdc9c6e5255 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 19 Dec 2002 05:28:16 +0000 Subject: Allow dependencies to be generated by something other than GCC. This allows Sun's cpp to generate valid .deps dependencies. (This is a similar patch as applied to APR.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98035 13f79535-47bb-0310-9956-ffa450edef68 --- build/rules.mk.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/rules.mk.in b/build/rules.mk.in index e598f46d14..b2f3eaff49 100644 --- a/build/rules.mk.in +++ b/build/rules.mk.in @@ -179,7 +179,11 @@ local-shared-build: $(SHARED_TARGETS) local-depend: x-local-depend if test -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \ - $(CC) -MM $(ALL_CPPFLAGS) $(ALL_INCLUDES) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true; \ + rm -f .deps; \ + list='$(srcdir)/*.c'; \ + for i in $$list; do \ + $(MKDEP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) $$i | sed 's/\.o:/.lo:/' >> .deps; \ + done; \ fi local-clean: x-local-clean -- cgit v1.2.3