Commit e50d8afe327a72950251023b69e000b0febc8ce2

Tom St Denis 2015-10-30T17:45:34

Add ability to disable silent builds. Signed-off-by: Tom St Denis <tstdenis82@gmail.com>

diff --git a/makefile b/makefile
index 75a2bfe..93e86c9 100644
--- a/makefile
+++ b/makefile
@@ -2,9 +2,17 @@
 #
 #Tom St Denis
 
+ifeq ($V,1)
+silent=
+else
+silent=@
+endif
+
 %.o: %.c
+ifneq ($V,1)
 	@echo "   * ${CC} $@"
-	@${CC} -c ${CFLAGS} $^ -o $@
+endif
+	${silent} ${CC} -c ${CFLAGS} $^ -o $@
 
 #version of library
 VERSION=0.42.0
diff --git a/makefile.include b/makefile.include
index 143a1ce..edb39c5 100644
--- a/makefile.include
+++ b/makefile.include
@@ -18,7 +18,7 @@ ifndef MAKE
    MAKE=make
 endif
 
-CFLAGS += -I./ -W -Wall -Wsign-compare -Wextra -Wshadow
+CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
 
 ifndef NO_ADDTL_WARNINGS
 # additional warnings