1CFLAGS += -Wall 2EXEC=resumption seccomp_bpf_tests sigsegv 3 4all: $(EXEC) 5 6clean: 7 rm -f $(EXEC) 8 9seccomp_bpf_tests: seccomp_bpf_tests.c test_harness.h 10 $(CC) seccomp_bpf_tests.c -o seccomp_bpf_tests $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -pthread 11 12resumption: resumption.c test_harness.h 13 $(CC) $^ -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -ggdb3 14 15sigsegv: sigsegv.c test_harness.h 16 $(CC) $^ -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -ggdb3 17 18run_tests: $(EXEC) 19 ./seccomp_bpf_tests 20 ./resumption 21 ./sigsegv 22 23.PHONY: clean run_tests 24