1XEN_ROOT = $(CURDIR)/../../..
2include $(XEN_ROOT)/tools/Rules.mk
3
4.PHONY: all
5all: afl-policy-fuzzer
6
7.PHONY: clean
8clean:
9	$(RM) -f -- *.o .*.d .*.d2 afl-policy-fuzzer
10
11.PHONY: distclean
12distclean: clean
13	$(RM) -f -- *~
14
15.PHONY: install
16install: all
17
18.PHONY: uninstall
19
20CFLAGS += -Werror $(CFLAGS_xeninclude) -D__XEN_TOOLS__
21CFLAGS += $(APPEND_CFLAGS) -Og
22
23vpath %.c ../../../xen/lib/x86
24
25afl-policy-fuzzer: afl-policy-fuzzer.o msr.o cpuid.o
26	$(CC) $(CFLAGS) $^ -o $@
27
28-include $(DEPS_INCLUDE)
29