1XEN_ROOT = $(CURDIR)/../../.. 2include $(XEN_ROOT)/tools/Rules.mk 3 4TARGET := test-paging-mempool 5 6.PHONY: all 7all: $(TARGET) 8 9.PHONY: clean 10clean: 11 $(RM) -- *.o $(TARGET) $(DEPS_RM) 12 13.PHONY: distclean 14distclean: clean 15 $(RM) -- *~ 16 17.PHONY: install 18install: all 19 $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) 20 $(INSTALL_PROG) $(TARGET) $(DESTDIR)$(LIBEXEC_BIN) 21 22.PHONY: uninstall 23uninstall: 24 $(RM) -- $(DESTDIR)$(LIBEXEC_BIN)/$(TARGET) 25 26CFLAGS += $(CFLAGS_xeninclude) 27CFLAGS += $(CFLAGS_libxenctrl) 28CFLAGS += $(APPEND_CFLAGS) 29 30LDFLAGS += $(LDLIBS_libxenctrl) 31LDFLAGS += $(APPEND_LDFLAGS) 32 33%.o: Makefile 34 35$(TARGET): test-paging-mempool.o 36 $(CC) -o $@ $< $(LDFLAGS) 37 38-include $(DEPS_INCLUDE) 39