From 4c3ecec4160909d7eba4acf1a07a8a0cd36a6365 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 1 Mar 2008 16:20:13 +0100 Subject: [PATCH 1/1] Enable quiet build mode, enable by default Add V=1 to make flags to force a verbose build. Signed-off-by: Jens Axboe --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c2e75dda..090cf615 100644 --- a/Makefile +++ b/Makefile @@ -29,15 +29,25 @@ OBJS += engines/net.o OBJS += engines/syslet-rw.o OBJS += engines/guasi.o +ifneq ($(findstring $(MAKEFLAGS),s),s) +ifndef V + QUIET_CC = @echo ' ' CC $@; + QUIET_AR = @echo ' ' AR $@; + QUIET_LINK = @echo ' ' LINK $@; +endif +endif + INSTALL = install prefix = /usr/local bindir = $(prefix)/bin mandir = $(prefix)/man -all: $(PROGS) $(SCRIPTS) - +%.o: %.c + $(QUIET_CC)$(CC) -o $*.o -c $(CFLAGS) $< fio: $(OBJS) - $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt + $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt + +all: $(PROGS) $(SCRIPTS) clean: -rm -f *.o .depend cscope.out $(PROGS) engines/*.o crc/*.o core.* core -- 2.25.1