Add ability to disable silent builds.
Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
This commit is contained in:
parent
676e7ea488
commit
e50d8afe32
10
makefile
10
makefile
@ -2,9 +2,17 @@
|
|||||||
#
|
#
|
||||||
#Tom St Denis
|
#Tom St Denis
|
||||||
|
|
||||||
|
ifeq ($V,1)
|
||||||
|
silent=
|
||||||
|
else
|
||||||
|
silent=@
|
||||||
|
endif
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
|
ifneq ($V,1)
|
||||||
@echo " * ${CC} $@"
|
@echo " * ${CC} $@"
|
||||||
@${CC} -c ${CFLAGS} $^ -o $@
|
endif
|
||||||
|
${silent} ${CC} -c ${CFLAGS} $^ -o $@
|
||||||
|
|
||||||
#version of library
|
#version of library
|
||||||
VERSION=0.42.0
|
VERSION=0.42.0
|
||||||
|
@ -18,7 +18,7 @@ ifndef MAKE
|
|||||||
MAKE=make
|
MAKE=make
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -I./ -W -Wall -Wsign-compare -Wextra -Wshadow
|
CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
|
||||||
|
|
||||||
ifndef NO_ADDTL_WARNINGS
|
ifndef NO_ADDTL_WARNINGS
|
||||||
# additional warnings
|
# additional warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user