2019-09-17 12:40:52 +00:00
|
|
|
.DEFAULT_GOAL := seccomp_bpf_filters
|
|
|
|
|
2021-05-05 17:20:37 +00:00
|
|
|
ARCHS := x86_32 x86_64 arm_32 arm_64
|
|
|
|
|
|
|
|
seccomp_bpf_filters: $(foreach A,$(ARCHS),seccomp_bpf_policy_$A.bin)
|
2019-09-17 12:40:52 +00:00
|
|
|
|
|
|
|
seccomp_bpf_policy_%.bin: seccomp_bpf_compiler_%.prg
|
|
|
|
./$< > $@
|
|
|
|
|
2020-07-02 07:03:33 +00:00
|
|
|
seccomp_bpf_compiler_%.prg: seccomp_bpf_compiler_%.cc seccomp_bpf_compiler.h
|
2019-09-17 12:40:52 +00:00
|
|
|
@g++ $< -o $@ -lseccomp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm seccomp_bpf_policy_*.bin 2> /dev/null; true
|
|
|
|
@rm seccomp_bpf_compiler_*.prg 2> /dev/null; true
|
2020-07-02 07:03:33 +00:00
|
|
|
|
|
|
|
.PHONY: seccomp_bpf_filters
|