+QEMU_ROOT ?= .
+XEN_ROOT ?= $(QEMU_ROOT)/../../xen-unstable.hg
include ../config-host.mak
-XEN_ROOT ?= ../../xen-unstable.hg
-include $(XEN_ROOT)/tools/Rules.mk
TARGET_ARCH=i386
CONFIG_SOFTMMU=yes
QEMU_PROG=qemu-dm
-CFLAGS += -Wno-unused -Wno-declaration-after-statement
+CFLAGS += -Wno-unused -Wno-declaration-after-statement \
+ -Wno-pointer-sign
-LIBS += -L../../libxc -lxenctrl -lxenguest
-LIBS += -L../../xenstore -lxenstore
+LIBS += -L$(XEN_ROOT)/tools/libxc -lxenctrl -lxenguest
+LIBS += -L$(XEN_ROOT)/tools/xenstore -lxenstore
LDFLAGS := $(CFLAGS) $(LDFLAGS)