summaryrefslogtreecommitdiffstats
path: root/tools/make.inc
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-22 21:39:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-22 21:39:41 +0000
commitc2e887c5f740aa32acaa2524a940de4413e71282 (patch)
treed9a7e622dc2ef00a373c57b280897e60a0cd4275 /tools/make.inc
parentdc96989d14b7f6bda88c19f4d7e2bba0a592a959 (diff)
downloadrockbox-c2e887c5f740aa32acaa2524a940de4413e71282.tar.gz
rockbox-c2e887c5f740aa32acaa2524a940de4413e71282.zip
prevent missing include files from making the dependency generation to fail
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5107 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/make.inc')
-rw-r--r--tools/make.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/make.inc b/tools/make.inc
index f83be7990a..1c7b762493 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -8,12 +8,15 @@ $(OBJDIR)/%.o: %.S
@echo "CC $<"
@$(CC) $(CFLAGS) -c $< -o $@
+# the lame echo stuff down here is to prevent any compiler errors/warnings
+# to cause an error code to get returned and thus stop the build
$(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; \
- done )
+ done; \
+ echo "oo" >/dev/null )
tags:
@(for d in $(DIRS); do \