summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/capabilities/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/capabilities/Makefile')
-rw-r--r--tools/testing/selftests/capabilities/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/testing/selftests/capabilities/Makefile b/tools/testing/selftests/capabilities/Makefile
new file mode 100644
index 000000000..8c8f0c1f0
--- /dev/null
+++ b/tools/testing/selftests/capabilities/Makefile
@@ -0,0 +1,18 @@
+all:
+
+include ../lib.mk
+
+.PHONY: all clean
+
+TARGETS := validate_cap test_execve
+TEST_PROGS := test_execve
+
+CFLAGS := -O2 -g -std=gnu99 -Wall -lcap-ng
+
+all: $(TARGETS)
+
+clean:
+ $(RM) $(TARGETS)
+
+$(TARGETS): %: %.c
+ $(CC) -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl