From 02c712c437eb6e8b1f17106a429d51a1c52f5244 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 24 Apr 2016 18:38:28 +0200 Subject: [PATCH] add silent compilation as in ltc and ltm --- makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/makefile b/makefile index 3b3197d..8550650 100644 --- a/makefile +++ b/makefile @@ -21,6 +21,18 @@ ifndef MAKE MAKE=make endif +ifeq ($V,1) +silent= +else +silent=@ +endif + +%.o: %.c +ifneq ($V,1) + @echo " * ${CC} $@" +endif + ${silent} ${CC} ${CFLAGS} -c $< -o $@ + ifndef IGNORE_SPEED CFLAGS += -O3 -funroll-loops