| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | all: | ||||
| 3 | |||||
| 4 | include ../lib.mk | ||||
| 5 | |||||
| 6 | .PHONY: all clean | ||||
| 7 | |||||
| 8 | BINARIES := seccomp_bpf seccomp_benchmark | ||||
| 9 | CFLAGS += -Wl,-no-as-needed -Wall | ||||
| 10 | |||||
| 11 | seccomp_bpf: seccomp_bpf.c ../kselftest_harness.h | ||||
| 12 | $(CC) $(CFLAGS) $(LDFLAGS) $< -lpthread -o $@ | ||||
| 13 | |||||
| 14 | TEST_PROGS += $(BINARIES) | ||||
| 15 | EXTRA_CLEAN := $(BINARIES) | ||||
| 16 | |||||
| 17 | all: $(BINARIES) | ||||