Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: mqueue: simplify the Makefile

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

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>

authored by

Bamvor Jian Zhang and committed by
Shuah Khan
b11054b9 cc19ada7

+3 -5
+3 -5
tools/testing/selftests/mqueue/Makefile
··· 1 1 CFLAGS += -O2 2 + LDLIBS = -lrt -lpthread -lpopt 3 + TEST_PROGS := mq_open_tests mq_perf_tests 2 4 3 - all: 4 - $(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt 5 - $(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt 5 + all: $(TEST_PROGS) 6 6 7 7 include ../lib.mk 8 8 ··· 10 10 @./mq_open_tests /test1 || echo "selftests: mq_open_tests [FAIL]" 11 11 @./mq_perf_tests || echo "selftests: mq_perf_tests [FAIL]" 12 12 endef 13 - 14 - TEST_PROGS := mq_open_tests mq_perf_tests 15 13 16 14 override define EMIT_TESTS 17 15 echo "./mq_open_tests /test1 || echo \"selftests: mq_open_tests [FAIL]\""