mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Support for verbose builds with make V=1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6190 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d48fa643bf
commit
1ab51e7635
1 changed files with 11 additions and 7 deletions
|
@ -1,20 +1,24 @@
|
||||||
# -*- Makefile -*-
|
# -*- Makefile -*-
|
||||||
|
|
||||||
|
ifndef V
|
||||||
|
SILENT=@
|
||||||
|
endif
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
$(OBJDIR)/%.o: %.c
|
||||||
@mkdir -p `dirname $@`
|
$(SILENT)mkdir -p `dirname $@`
|
||||||
@echo "CC $<"
|
@echo "CC $<"
|
||||||
@$(CC) $(CFLAGS) -c $< -o $@
|
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.S
|
$(OBJDIR)/%.o: %.S
|
||||||
@mkdir -p `dirname $@`
|
$(SILENT)mkdir -p `dirname $@`
|
||||||
@echo "CC $<"
|
@echo "CC $<"
|
||||||
@$(CC) $(CFLAGS) -c $< -o $@
|
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
# the lame echo stuff down here is to prevent any compiler errors/warnings
|
# 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
|
# to cause an error code to get returned and thus stop the build
|
||||||
$(DEPFILE): $(SOURCES)
|
$(DEPFILE): $(SOURCES)
|
||||||
@rm -f $(DEPFILE)
|
$(SILENT)rm -f $(DEPFILE)
|
||||||
@(for each in $(SOURCES) x; do \
|
$(SILENT)(for each in $(SOURCES) x; do \
|
||||||
if test "x" != "$$each"; then \
|
if test "x" != "$$each"; then \
|
||||||
obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
|
obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
|
||||||
$(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
|
$(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
|
||||||
|
@ -23,6 +27,6 @@ $(DEPFILE): $(SOURCES)
|
||||||
echo "oo" >/dev/null )
|
echo "oo" >/dev/null )
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
@(for d in $(DIRS); do \
|
$(SILENT)(for d in $(DIRS); do \
|
||||||
etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \
|
etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \
|
||||||
done)
|
done)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue