diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-09-21 20:46:00 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-09-21 20:46:00 -0600 |
commit | ad551e647009d1b0cfcd2e061dff1e52eee178f8 (patch) | |
tree | 12562a81058637467f3211707b86fa19538cc29b /src | |
parent | 8eccb2d84616ada54333fe9bbd07d707e5cc2c25 (diff) | |
download | liburing-ad551e647009d1b0cfcd2e061dff1e52eee178f8.tar.gz liburing-ad551e647009d1b0cfcd2e061dff1e52eee178f8.tar.bz2 |
Makefile: add pretty/quiet CC/LN output
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index cbd3fda..d65d865 100644 --- a/src/Makefile +++ b/src/Makefile @@ -20,6 +20,13 @@ 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 + all: $(all_targets) liburing_srcs := setup.c queue.c syscall.c register.c @@ -30,10 +37,10 @@ liburing_sobjs := $(patsubst %.c,%.os,$(liburing_srcs)) $(liburing_objs) $(liburing_sobjs): include/liburing/io_uring.h %.os: %.c - $(CC) $(SO_CFLAGS) -c -o $@ $< + $(QUIET_CC)$(CC) $(SO_CFLAGS) -c -o $@ $< %.ol: %.c - $(CC) $(L_CFLAGS) -c -o $@ $< + $(QUIET_CC)$(CC) $(L_CFLAGS) -c -o $@ $< AR ?= ar RANLIB ?= ranlib @@ -43,7 +50,7 @@ liburing.a: $(liburing_objs) $(RANLIB) liburing.a $(libname): $(liburing_sobjs) liburing.map - $(CC) $(SO_CFLAGS) -Wl,--version-script=liburing.map -Wl,-soname=$(soname) -o $@ $(liburing_sobjs) $(LINK_FLAGS) + $(QUIET_CC)$(CC) $(SO_CFLAGS) -Wl,--version-script=liburing.map -Wl,-soname=$(soname) -o $@ $(liburing_sobjs) $(LINK_FLAGS) install: $(all_targets) install -D -m 644 include/liburing/io_uring.h $(includedir)/liburing/io_uring.h |