Skip to content

Commit

Permalink
Merge pull request #305 from frtos-wpan/pull-verbosity
Browse files Browse the repository at this point in the history
Makefile.include: add verbosity control (make V=1 for old behaviour)
  • Loading branch information
adamdunkels committed Jul 28, 2013
2 parents e13d69c + a3facaa commit 231e772
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile.include
Expand Up @@ -131,6 +131,21 @@ ifdef PLATFORMAPPS
APPDS += $(PLATFORMAPPDS)
endif

### Verbosity control. Use make V=1 to get verbose builds.

CC_normal := $(CC)
AR_normal := $(AR)

CC_quiet = @echo " CC " $< && $(CC_normal)
AR_quiet = @echo " AR " $@ && $(AR_normal)

ifeq ($(V),1)
CC = $(CC_normal)
AR = $(AR_normal)
else
CC = $(CC_quiet)
AR = $(AR_quiet)
endif

### Forward comma-separated list of arbitrary defines to the compiler

Expand Down

0 comments on commit 231e772

Please sign in to comment.