aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/testing/selftests/capabilities/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/tools/testing/selftests/capabilities/Makefile b/tools/testing/selftests/capabilities/Makefile
index 8c8f0c1f0889..008602aed920 100644
--- a/tools/testing/selftests/capabilities/Makefile
+++ b/tools/testing/selftests/capabilities/Makefile
@@ -1,18 +1,15 @@
1all: 1TEST_FILES := validate_cap
2
3include ../lib.mk
4
5.PHONY: all clean
6
7TARGETS := validate_cap test_execve
8TEST_PROGS := test_execve 2TEST_PROGS := test_execve
9 3
10CFLAGS := -O2 -g -std=gnu99 -Wall -lcap-ng 4BINARIES := $(TEST_FILES) $(TEST_PROGS)
11 5
12all: $(TARGETS) 6CFLAGS += -O2 -g -std=gnu99 -Wall
7LDLIBS += -lcap-ng -lrt -ldl
8
9all: $(BINARIES)
13 10
14clean: 11clean:
15 $(RM) $(TARGETS) 12 $(RM) $(BINARIES)
13
14include ../lib.mk
16 15
17$(TARGETS): %: %.c
18 $(CC) -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl