Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1220492

Re: [PATCH v2 4/6] selftests: mqueue: simpification the Makefile

From Michael Ellerman <mpe@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [PATCH v2 4/6] selftests: mqueue: simpification the Makefile
Date 2015-09-08 07:50 +0200
Message-ID <q6jX3-3zi-9@gated-at.bofh.it> (permalink)
References <q65ho-7Mu-19@gated-at.bofh.it> <q65ho-7Mu-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 2015-09-07 at 22:04 +0800, Bamvor Jian Zhang wrote:

> selftests: mqueue: simpification the Makefile

This should be:

selftests/mqueue: Simplify the Makefile


And please write a change log, even for simple commits like this.

You can say something like:

  Use make's implict rule for building simple C programs.

> Suggested-by: Michael Ellermani <mpe@ellerman.id.au>
> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
> ---
>  tools/testing/selftests/mqueue/Makefile | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile
> index ca8327f..9f51aaa 100644
> --- a/tools/testing/selftests/mqueue/Makefile
> +++ b/tools/testing/selftests/mqueue/Makefile
> @@ -1,8 +1,7 @@
>  CFLAGS += -O2
> +LDLIBS = -lrt -lpthread -lpopt

Please move the TEST_PROGS line here:

TEST_PROGS := mq_open_tests mq_perf_tests

> -all:
> -	$(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt
> -	$(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
> +all: mq_open_tests mq_perf_tests

So this can become:

all: $(TEST_PROGS)

>  
>  include ../lib.mk


cheers


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 4/6] selftests: mqueue: simpification the Makefile Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-07 16:10 +0200
  Re: [PATCH v2 4/6] selftests: mqueue: simpification the Makefile Michael Ellerman <mpe@ellerman.id.au> - 2015-09-08 07:50 +0200

csiph-web