selftests/capabilities: clean up for Makefile
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Tue, 17 Nov 2015 14:35:41 +0000 (22:35 +0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 23 Nov 2015 20:20:10 +0000 (13:20 -0700)
commitd3edeb47d886cf38bcf0e96c38f15f6cfda67e02
tree247c560acac523f02d9ffa06fd388b15f79f8437
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
selftests/capabilities: clean up for Makefile

Clean up the following things:
1.  Avoid the broken when use TARGETS in the command line, eg:

 $ make -C tools/testing/selftests TARGETS=capabilities
 make[1]: *** No rule to make target 'capabilities', needed by 'all'.  Stop.

    Replace TARGETS with BINARIES.

2.  User need to provide cap-ng.h and libcap-ng.so for cross compiling.
    Replace ':=' with '+=' for CFLAGS and introduce LDLIBS to archieve
    it. Delete useless EXTRA_CLAGS at the same time.

3.  Delete the duplicated definition which is already defined by
    lib.mk.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/capabilities/Makefile