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 /examples | |
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 'examples')
-rw-r--r-- | examples/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile index 62f97cc..72352a1 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -2,6 +2,13 @@ CFLAGS ?= -g -O2 XCFLAGS = override CFLAGS += -Wall -D_GNU_SOURCE -L../src/ -I../src/include/ +ifneq ($(findstring $(MAKEFLAGS),s),s) +ifndef V + QUIET_CC = @echo ' ' CC $@; + QUIET_LINK = @echo ' ' LINK $@; +endif +endif + all_targets += io_uring-test io_uring-cp link-cp ucontext-cp all: $(all_targets) @@ -11,7 +18,7 @@ test_srcs := io_uring-test.c io_uring-cp.c link-cp.c test_objs := $(patsubst %.c,%.ol,$(test_srcs)) %: %.c - $(CC) $(CFLAGS) -o $@ $< -luring $(XCFLAGS) + $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $< -luring $(XCFLAGS) clean: rm -f $(all_targets) $(test_objs) |