Commit 4f188f88874830c1fdca6144938ac0db1cbc540a
1 parent
3aa892d7
Make make output quieter (Avi Kivity)
Spew out less noise when compiling. This helps review make output for information such as compilation warnings, rather than extra long compiler invocations. The full output can be generated by supplying a 'V=1' parameter to make. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6380 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
7 additions
and
5 deletions
Makefile
... | ... | @@ -39,7 +39,7 @@ all: $(TOOLS) $(DOCS) recurse-all |
39 | 39 | SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) |
40 | 40 | |
41 | 41 | subdir-%: |
42 | - $(MAKE) -C $(subst subdir-,,$@) all | |
42 | + $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all | |
43 | 43 | |
44 | 44 | $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a |
45 | 45 | $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a | ... | ... |
rules.mak
1 | 1 | |
2 | 2 | %.o: %.c |
3 | - $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< | |
3 | + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,CC $@) | |
4 | 4 | |
5 | 5 | %.o: %.S |
6 | - $(CC) $(CPPFLAGS) -c -o $@ $< | |
6 | + $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,AS $@) | |
7 | 7 | |
8 | 8 | %.o: %.m |
9 | - $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< | |
9 | + $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<,OBJC $@) | |
10 | 10 | |
11 | -LINK = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) | |
11 | +LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $@) | |
12 | 12 | |
13 | 13 | %$(EXESUF): %.o |
14 | 14 | $(LINK) |
15 | + | |
16 | +quiet-command = $(if $(V),$1,@echo $2 && $1) | ... | ... |