From 05d46ab6cd8fa46d4920888feaefeac0ecd68477 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 4 Apr 2014 22:31:32 +0000 Subject: [PATCH] make V=1 no longer spews linker garbage collection make V=99 will, if you realllly want it. --- README | 8 ++++++++ examples/Makefile.rules | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README b/README index 950a078..cb0e2d7 100644 --- a/README +++ b/README @@ -18,6 +18,14 @@ preferably via a github pull request. Usage ----- +You _must_ run "make" in the top level directory first. This builds the +library and all examples. If you're simply hacking on a single example after +that, you can type "make clean; make" in any of the individual project +directories later. + +For more verbose output, to see compiler command lines, use "make V=1" +For insanity levels of verboseness, use "make V=99" + The makefiles are generally useable for your own projects with only minimal changes for the libopencm3 install path (See Reuse) diff --git a/examples/Makefile.rules b/examples/Makefile.rules index 293ed84..9cd41f5 100644 --- a/examples/Makefile.rules +++ b/examples/Makefile.rules @@ -105,7 +105,7 @@ LDFLAGS += -L$(LIB_DIR) LDFLAGS += -T$(LDSCRIPT) LDFLAGS += -Wl,-Map=$(*).map LDFLAGS += -Wl,--gc-sections -ifeq ($(V),1) +ifeq ($(V),99) LDFLAGS += -Wl,--print-gc-sections endif