aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorUwe Hermann2009-07-16 14:55:22 +0200
committerUwe Hermann2009-07-16 14:55:22 +0200
commitf0661cb343976d752f512644dc117125d102f89f (patch)
treef8bcc88f830d2086bc959a31f29e94997c79326f /lib
parent0efee48451d7eff92b7e6bd455aa0ef04b9afe17 (diff)
Make default build silent, use 'make V=1' for verbose build.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 8a56abf..d3eb2c4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -26,14 +26,23 @@ CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../include -fno-common \
-mcpu=cortex-m3 -mthumb
-ARFLAGS = rcsv
+# ARFLAGS = rcsv
+ARFLAGS = rcs
OBJS = gpio.o
+# Be silent per default, but 'make V=1' will show all compiler calls.
+ifneq ($(V),1)
+Q := @
+endif
+
all: $(LIBNAME).a
$(LIBNAME).a: $(OBJS)
- $(AR) $(ARFLAGS) $@ $^
+ $(Q)$(AR) $(ARFLAGS) $@ $^
+
+%.o: %.c
+ $(Q)$(CC) $(CFLAGS) -o $@ -c $<
clean:
- rm -f *.o $(LIBNAME).a
+ $(Q)rm -f *.o $(LIBNAME).a