diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-08 10:52:32 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-08 10:52:32 -0800 |
commit | 1143e5e72a9dd52d9f4d9b76876f297d15f5c50f (patch) | |
tree | 547e9c224b949f79b62b998b69c6d2ee9e4a2dd1 /py | |
parent | 93a9b5b64d8c26ed1df739a59e6eabcfe1c64aa7 (diff) | |
parent | 4646801181a6e12e36352fa874089ffeb9474eb3 (diff) | |
download | micropython-1143e5e72a9dd52d9f4d9b76876f297d15f5c50f.tar.gz micropython-1143e5e72a9dd52d9f4d9b76876f297d15f5c50f.zip |
Merge pull request #120 from dhylands/make-build-quieter
Make build output quieter.
Diffstat (limited to 'py')
-rw-r--r-- | py/py.mk | 45 |
1 files changed, 38 insertions, 7 deletions
@@ -1,3 +1,28 @@ +########## +# The following should eventually go into a more central location +# when a reorg is done. +# +# Turn on increased build verbosity by defining BUILD_VERBOSE in your main +# Makefile or in your environment. You can also use V=1 on the make command +# line. +ifeq ("$(origin V)", "command line") +BUILD_VERBOSE=$(V) +endif +ifndef BUILD_VERBOSE +BUILD_VERBOSE = 0 +endif +ifeq ($(BUILD_VERBOSE),0) +Q = @ +else +Q = +endif +# Since this is a new feature, advertise it +ifeq ($(BUILD_VERBOSE),0) +$(info Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.) +endif +# +######### + # default settings; can be overriden in main Makefile ifndef PY_SRC @@ -11,7 +36,7 @@ endif # to create the build directory $(BUILD): - mkdir -p $@ + $(Q)mkdir -p $@ # where py object files go (they have a name prefix to prevent filename clashes) @@ -80,24 +105,30 @@ PY_O_BASENAME = \ PY_O = $(addprefix $(PY_BUILD), $(PY_O_BASENAME)) $(PY_BUILD)emitnx64.o: $(PY_SRC)/emitnative.c $(PY_SRC)/emit.h mpconfigport.h - $(CC) $(CFLAGS) -DN_X64 -c -o $@ $< + $(ECHO) "CC $<" + $(Q)$(CC) $(CFLAGS) -DN_X64 -c -o $@ $< $(PY_BUILD)emitnthumb.o: $(PY_SRC)/emitnative.c $(PY_SRC)/emit.h mpconfigport.h - $(CC) $(CFLAGS) -DN_THUMB -c -o $@ $< + $(ECHO) "CC $<" + $(Q)$(CC) $(CFLAGS) -DN_THUMB -c -o $@ $< $(PY_BUILD)%.o: $(PY_SRC)/%.S - $(CC) $(CFLAGS) -c -o $@ $< + $(ECHO) "CC $<" + $(Q)$(CC) $(CFLAGS) -c -o $@ $< $(PY_BUILD)%.o: $(PY_SRC)/%.c mpconfigport.h - $(CC) $(CFLAGS) -c -o $@ $< + $(ECHO) "CC $<" + $(Q)$(CC) $(CFLAGS) -c -o $@ $< # optimising gc for speed; 5ms down to 4ms on pybv2 $(PY_BUILD)gc.o: $(PY_SRC)/gc.c - $(CC) $(CFLAGS) -O3 -c -o $@ $< + $(ECHO) "CC $<" + $(Q)$(CC) $(CFLAGS) -O3 -c -o $@ $< # optimising vm for speed, adds only a small amount to code size but makes a huge difference to speed (20% faster) $(PY_BUILD)vm.o: $(PY_SRC)/vm.c - $(CC) $(CFLAGS) -O3 -c -o $@ $< + $(ECHO) "CC $<" + $(Q)$(CC) $(CFLAGS) -O3 -c -o $@ $< # header dependencies |