Files
xen/tools/fuzz/cpu-policy/Makefile
T
Jan Beulich 7326c17254 x86/cpu-policy: move CPU policy library code
... to a dedicated subdir of x86's private lib/ sub-tree.

For the CPU policy harnesses and libxenguest use $(lib-y) as set by the
new Makefile.common, whereas for the emulator harnesses stick to building
just cpuid.o for the time being.

Requested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
2026-02-25 12:31:08 +01:00

32 lines
575 B
Makefile

XEN_ROOT = $(CURDIR)/../../..
include $(XEN_ROOT)/tools/Rules.mk
.PHONY: all
all: afl-policy-fuzzer
.PHONY: clean
clean:
$(RM) -f -- *.o .*.d .*.d2 afl-policy-fuzzer
.PHONY: distclean
distclean: clean
$(RM) -f -- *~
.PHONY: install
install: all
.PHONY: uninstall
CFLAGS += $(CFLAGS_xeninclude) -D__XEN_TOOLS__
CFLAGS += $(APPEND_CFLAGS) -Og
vpath %.c $(XEN_ROOT)/xen/arch/x86/lib/cpu-policy
lib-y :=
include $(XEN_ROOT)/xen/arch/x86/lib/cpu-policy/Makefile.common
afl-policy-fuzzer: afl-policy-fuzzer.o $(lib-y)
$(CC) $(CFLAGS) $^ -o $@
-include $(DEPS_INCLUDE)