1XEN_ROOT=$(CURDIR)/../../.. 2include $(XEN_ROOT)/tools/Rules.mk 3 4CFLAGS += -Werror 5CFLAGS += -DXC_WANT_COMPAT_DEVICEMODEL_API 6 7CFLAGS += $(CFLAGS_libxenctrl) 8CFLAGS += $(CFLAGS_libxenguest) 9CFLAGS += $(CFLAGS_libxenevtchn) 10CFLAGS += $(CFLAGS_xeninclude) 11 12TARGETS-y := xen-access 13TARGETS := $(TARGETS-y) 14 15.PHONY: all 16all: build 17 18.PHONY: build 19build: $(TARGETS) 20 21.PHONY: clean 22clean: 23 $(RM) *.o $(TARGETS) *~ $(DEPS_RM) 24 25.PHONY: distclean 26distclean: clean 27 28xen-access: xen-access.o Makefile 29 $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LDLIBS_libxenevtchn) 30 31install uninstall: 32 33-include $(DEPS_INCLUDE) 34