summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-09-22 10:09:48 -0600
committerJens Axboe <axboe@kernel.dk>2019-09-22 10:10:33 -0600
commit1cff0db7bc315c02774e3345243a21763d73dada (patch)
tree4548bafe1feaf30ce7214b0a577fd69633b8eb01 /src
parent95b3b9bec78fcfb7b1a3dcecedccab5becb1e416 (diff)
downloadliburing-1cff0db7bc315c02774e3345243a21763d73dada.tar.gz
liburing-1cff0db7bc315c02774e3345243a21763d73dada.tar.bz2
Makefile: handle quiet AR/RANLIB
Also unify across subdirs. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/Makefile b/src/Makefile
index d65d865..591d457 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -20,12 +20,7 @@ ifeq ($(ENABLE_SHARED),1)
all_targets += $(libname)
endif
-ifneq ($(findstring $(MAKEFLAGS),s),s)
-ifndef V
- QUIET_CC = @echo ' ' CC $@;
- QUIET_LINK = @echo ' ' LINK $@;
-endif
-endif
+include ../Makefile.quiet
all: $(all_targets)
@@ -45,9 +40,9 @@ $(liburing_objs) $(liburing_sobjs): include/liburing/io_uring.h
AR ?= ar
RANLIB ?= ranlib
liburing.a: $(liburing_objs)
- rm -f liburing.a
- $(AR) r liburing.a $^
- $(RANLIB) liburing.a
+ @rm -f liburing.a
+ $(QUIET_AR)$(AR) r liburing.a $^
+ $(QUIET_RANLIB)$(RANLIB) liburing.a
$(libname): $(liburing_sobjs) liburing.map
$(QUIET_CC)$(CC) $(SO_CFLAGS) -Wl,--version-script=liburing.map -Wl,-soname=$(soname) -o $@ $(liburing_sobjs) $(LINK_FLAGS)