diff options
Diffstat (limited to 'tools/testing/selftests/seccomp/Makefile')
| -rw-r--r-- | tools/testing/selftests/seccomp/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tools/testing/selftests/seccomp/Makefile b/tools/testing/selftests/seccomp/Makefile index aeb0c805f3ca..553d870b4ca9 100644 --- a/tools/testing/selftests/seccomp/Makefile +++ b/tools/testing/selftests/seccomp/Makefile | |||
| @@ -1,8 +1,16 @@ | |||
| 1 | TEST_GEN_PROGS := seccomp_bpf | 1 | all: |
| 2 | CFLAGS += -Wl,-no-as-needed -Wall | ||
| 3 | LDFLAGS += -lpthread | ||
| 4 | 2 | ||
| 5 | include ../lib.mk | 3 | include ../lib.mk |
| 6 | 4 | ||
| 7 | $(TEST_GEN_PROGS): seccomp_bpf.c ../kselftest_harness.h | 5 | .PHONY: all clean |
| 8 | $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ | 6 | |
| 7 | BINARIES := seccomp_bpf seccomp_benchmark | ||
| 8 | CFLAGS += -Wl,-no-as-needed -Wall | ||
| 9 | |||
| 10 | seccomp_bpf: seccomp_bpf.c ../kselftest_harness.h | ||
| 11 | $(CC) $(CFLAGS) $(LDFLAGS) -lpthread $< -o $@ | ||
| 12 | |||
| 13 | TEST_PROGS += $(BINARIES) | ||
| 14 | EXTRA_CLEAN := $(BINARIES) | ||
| 15 | |||
| 16 | all: $(BINARIES) | ||
