From 1c459b8c48c9a7369ecc88691c7a7f63cf89b325 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 16 Jul 2009 14:59:06 +0200 Subject: [PATCH] Add 'make V=1' support for the example blink code. --- example/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/example/Makefile b/example/Makefile index b6f4f9a8..28a42455 100644 --- a/example/Makefile +++ b/example/Makefile @@ -29,14 +29,19 @@ CFLAGS = -Os -g -Wall -Wextra -I../include -fno-common \ LDFLAGS = -L../lib -T$(BINARY).ld -nostartfiles OBJS = $(BINARY).o +# Be silent per default, but 'make V=1' will show all compiler calls. +ifneq ($(V),1) +Q := @ +endif + all: $(BINARY) $(BINARY): $(OBJS) $(BINARY).ld - $(LD) $(LDFLAGS) -o $(BINARY) $(OBJS) -lopenstm32 + $(Q)$(LD) $(LDFLAGS) -o $(BINARY) $(OBJS) -lopenstm32 $(BINARY).o: $(BINARY).c - $(CC) $(CFLAGS) -c $(BINARY).c + $(Q)$(CC) $(CFLAGS) -c $(BINARY).c clean: - rm -f *.o $(BINARY) + $(Q)rm -f *.o $(BINARY)