===== Makefile 1.97 vs edited ===== --- 1.97/Makefile 2005-06-10 17:42:25 +09:00 +++ edited/Makefile 2005-06-21 16:07:01 +09:00 @@ -168,6 +168,7 @@ rm -rf $(D)/usr/include/xcs_proto.h $(D)/usr/include/xc.h rm -rf $(D)/usr/include/xs_lib.h $(D)/usr/include/xs.h rm -rf $(D)/usr/sbin/xcs $(D)/usr/sbin/xcsdump $(D)/usr/sbin/xen* + rm -rf $(D)/usr/sbin/policy_tool rm -rf $(D)/usr/sbin/netfix rm -rf $(D)/usr/sbin/xfrd $(D)/usr/sbin/xm rm -rf $(D)/usr/share/doc/xen $(D)/usr/man/man*/xentrace* ===== tools/policy/Makefile 1.1 vs edited ===== --- 1.1/tools/policy/Makefile 2005-06-21 07:28:06 +09:00 +++ edited/tools/policy/Makefile 2005-06-21 16:06:04 +09:00 @@ -1,7 +1,12 @@ XEN_ROOT = ../.. include $(XEN_ROOT)/tools/Rules.mk -SRCS = policy_tool.c +POLICY_TOOL_INSTALL_DIR = /usr/sbin + +INSTALL = install +INSTALL_PROG := $(INSTALL) -m0755 +INSTALL_DIR := $(INSTALL) -d -m0755 + CFLAGS += -static CFLAGS += -Wall CFLAGS += -Werror @@ -10,15 +15,17 @@ CFLAGS += -I. all: build -build: mk-symlinks - $(MAKE) policy_tool -default: all +build: mk-symlinks policy_tool -install: all +default: all policy_tool : policy_tool.c - $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< + $(CC) $(CFLAGS) -o $@ $< + +install: all + $(INSTALL_DIR) -p $(DESTDIR)$(POLICY_TOOL_INSTALL_DIR) + $(INSTALL_PROG) policy_tool $(DESTDIR)$(POLICY_TOOL_INSTALL_DIR) clean: rm -rf policy_tool xen