mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
... 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>
32 lines
575 B
Makefile
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)
|