summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/make.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make.inc b/tools/make.inc
index 1c7b762..25173ae 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -13,8 +13,8 @@ $(OBJDIR)/%.o: %.S
$(DEPFILE): $(SOURCES)
@rm -f $(DEPFILE)
@(for each in $(SOURCES); do \
- obj=`echo $$each | sed -e 's/\.c/.o/'`; \
- $(CC) -MM -MT "$(OBJDIR)/$$obj.o" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
+ obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
+ $(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
done; \
echo "oo" >/dev/null )