diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-04 18:26:51 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-04 18:26:51 +0200 |
commit | d638473cd4b8aad1da630762fe0228f93e15c30a (patch) | |
tree | 3cf93d17646f030ac6dfc3c857daddc0bbbfa1ee /Makefile | |
parent | 659a02d3aa2b1b4e16982a3bb87aaf4d7c16ae5a (diff) | |
download | cv-d638473cd4b8aad1da630762fe0228f93e15c30a.tar.gz cv-d638473cd4b8aad1da630762fe0228f93e15c30a.tar.bz2 cv-d638473cd4b8aad1da630762fe0228f93e15c30a.zip |
Makefile: Be silent by default
Like automake silent build rules.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -28,12 +28,23 @@ capture: capture.o .PHONY: clean all +DEFAULT_VERBOSITY=0 + +# verbosity stuff +V_CC = $(v_cc_$(V)) +v_cc_ = $(v_cc_$(DEFAULT_VERBOSITY)) +v_cc_0 = @echo " CC " $@; + +V_CCLD = $(v_ccld_$(V)) +v_ccld_ = $(v_ccld_$(DEFAULT_VERBOSITY)) +v_ccld_0 = @echo " CCLD " $@; + define cc - $(CC) $(CFLAGS) $($(@:.o=)_CFLAGS) -c -o $@ $< + $(V_CC)$(CC) $(CFLAGS) $($(@:.o=)_CFLAGS) -c -o $@ $< endef %: - $(CC) -o $@ $+ $(LDFLAGS) $($@_LIBS) + $(V_CCLD)$(CC) -o $@ $+ $(LDFLAGS) $($@_LIBS) %.o: %.c $(call cc) %.o: %.c %.h |