summaryrefslogtreecommitdiffstats
path: root/tools/make.inc
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-03-11 09:50:32 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-03-11 09:50:32 +0000
commit1ab51e763575ba01e23468b84e81ddfa2a776022 (patch)
treec7faeb765f8e3baf28a14f0cecc8a0cca51a0b72 /tools/make.inc
parentd48fa643bf471cfd3c64b09595d73bc0ca9c5011 (diff)
downloadrockbox-1ab51e763575ba01e23468b84e81ddfa2a776022.tar.gz
rockbox-1ab51e763575ba01e23468b84e81ddfa2a776022.zip
Support for verbose builds with make V=1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6190 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/make.inc')
-rw-r--r--tools/make.inc18
1 files changed, 11 insertions, 7 deletions
diff --git a/tools/make.inc b/tools/make.inc
index 0da7a8b17c..9e6600f77a 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -1,20 +1,24 @@
# -*- Makefile -*-
+ifndef V
+SILENT=@
+endif
+
$(OBJDIR)/%.o: %.c
- @mkdir -p `dirname $@`
+ $(SILENT)mkdir -p `dirname $@`
@echo "CC $<"
- @$(CC) $(CFLAGS) -c $< -o $@
+ $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR)/%.o: %.S
- @mkdir -p `dirname $@`
+ $(SILENT)mkdir -p `dirname $@`
@echo "CC $<"
- @$(CC) $(CFLAGS) -c $< -o $@
+ $(SILENT)$(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) x; do \
+ $(SILENT)rm -f $(DEPFILE)
+ $(SILENT)(for each in $(SOURCES) x; do \
if test "x" != "$$each"; then \
obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
$(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
@@ -23,6 +27,6 @@ $(DEPFILE): $(SOURCES)
echo "oo" >/dev/null )
tags:
- @(for d in $(DIRS); do \
+ $(SILENT)(for d in $(DIRS); do \
etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \
done)