--- xen-unstable.orig/tools/libxc/Makefile 2005-03-18 22:33:27.000000000 -0600 +++ xen-unstable/tools/libxc/Makefile 2005-03-19 23:42:05.859180752 -0600 @@ -22,16 +22,22 @@ SRCS += xc_domain.c SRCS += xc_evtchn.c SRCS += xc_gnttab.c SRCS += xc_io.c -SRCS += xc_linux_build.c -SRCS += xc_plan9_build.c SRCS += xc_linux_restore.c SRCS += xc_linux_save.c SRCS += xc_misc.c SRCS += xc_physdev.c SRCS += xc_private.c -SRCS += xc_ptrace.c SRCS += xc_rrobin.c +ifeq ($(XEN_TARGET_ARCH),x86_32) +SRC += xc_linux_build.c +SRCS += xc_plan9_build.c SRCS += xc_vmx_build.c +SRCS += xc_ptrace.c +endif +ifeq ($(XEN_TARGET_ARCH),x86_64) +SRCS += xc_linux_build_x64.c +endif + CFLAGS += -Wall CFLAGS += -Werror