summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/make.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/make.inc b/tools/make.inc
index 25173ae7e0..471d98a9de 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -12,9 +12,11 @@ $(OBJDIR)/%.o: %.S
12# to cause an error code to get returned and thus stop the build 12# to cause an error code to get returned and thus stop the build
13$(DEPFILE): $(SOURCES) 13$(DEPFILE): $(SOURCES)
14 @rm -f $(DEPFILE) 14 @rm -f $(DEPFILE)
15 @(for each in $(SOURCES); do \ 15 @(for each in $(SOURCES) x; do \
16 obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \ 16 if test "x" != "$$each"; then \
17 $(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \ 17 obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
18 $(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
19 fi; \
18 done; \ 20 done; \
19 echo "oo" >/dev/null ) 21 echo "oo" >/dev/null )
20 22