BAD_OBJS += vmmouse.o vmport.o tcg* helper.o
OBJS := $(filter-out $(BAD_OBJS), $(OBJS))
+
+EXESUF=-xen
+
+datadir := $(subst qemu,xen/qemu,$(datadir))
+docdir := $(subst qemu,xen/qemu,$(docdir))
+mandir := $(subst share/man,share/xen/man,$(mandir))
#!/bin/sh
set -e
-if [ $# != 0 ]; then echo >&2 "usage: $0"; exit 1; fi
+
+# git-clean -x -d && ./xen-setup && make prefix=/usr CMDLINE_CFLAGS='-O0 -g' -j4 && make install DESTDIR=`pwd`/dist/ prefix=/usr && rsync -a --stats --delete . thule:shadow/qemu-iwj.git/ && rsync -a --stats dist/. root@thule:/
rm -f $target/Makefile
rm -f $target/config.mak
rm -f config-host.mak
-./configure --disable-curses
+./configure --disable-curses "$@"
+
target=i386-dm
ln -sf ../Makefile.target $target/Makefile
ln -sf ../xen-config.mak $target/config.mak
cat xen-config-host.mak >>config-host.mak
-echo '#include "xen-config-host.h"' >>config-host.h
+
+sed -e 's,qemu,xen/qemu,' config-host.h >config-host.h.new
+echo '#include "xen-config-host.h"' >>config-host.h.new
+mv config-host.h.new config-host.h