Permalink
Browse files

libfpvm/x86-linux/Makefile: support silent builds as well

  • Loading branch information...
wpwrak committed Jan 13, 2012
1 parent 3e056a9 commit 9f8e94702f6ec5c26b6405a9a238e7cfcddff472
Showing with 18 additions and 3 deletions.
  1. +18 −3 software/libfpvm/x86-linux/Makefile
@@ -1,9 +1,24 @@
MMDIR?=../../../
-CC=clang
+CC_normal = clang
+AR_normal = ar
+RANLIB_normal = ranlib
+
+CC_quiet = @echo " CC " $@ && $(CC_normal)
+AR_quiet = @echo " AR " $@ && $(AR_normal)
+RANLIB_quiet = @echo " RANLIB " $@ && $(RANLIB_normal)
+
+ifeq ($(V),1)
+ CC = $(CC_normal)
+ AR = $(AR_normal)
+ RANLIB = $(RANLIB_normal)
+else
+ CC = $(CC_quiet)
+ AR = $(AR_quiet)
+ RANLIB = $(RANLIB_quiet)
+endif
+
CFLAGS=-O2 -DPRINTF_FLOAT -I$(MMDIR)/software/include
-AR=ar
-RANLIB=ranlib
include ../subdir.mak

0 comments on commit 9f8e947

Please sign in to comment.