From 27b513cda4b6317f62cfcea64bbc399002dbd6a2 Mon Sep 17 00:00:00 2001 From: Bogomil Vasilev Date: Tue, 22 Aug 2017 14:29:08 +0300 Subject: [PATCH] Support verbosity in Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8de0fdf..bf2b071 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ CCFLAGS += -pipe \ # Use this to store compile flags and debug info. # You may simply check the flags later with: # $ readelf -p .GCC.command.line rmpsd -ifeq "$(DEBUG)" "yes" +ifeq ($(DEBUG), yes) CCFLAGS += -frecord-gcc-switches -g endif @@ -39,9 +39,14 @@ $(EXECUTABLE): $(OBJECTS) @echo ' LD $@' @$(CC) $(LDFLAGS) $(SQLLDFLAGS) $(OBJECTS) -o $@ +#ifeq "$(VERBOSE)" "yes" .c.o: +ifeq ($(VERBOSE), yes) + $(CC) $(CCFLAGS) $(WFLAGS) $(SQLCCFLAGS) $(OLEVEL) -c $< -o $@ +else @echo ' CC $@' @$(CC) $(CCFLAGS) $(WFLAGS) $(SQLCCFLAGS) $(OLEVEL) -c $< -o $@ +endif clean: rm -f $(OBJECTS) $(EXECUTABLE)