aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-11-16 15:28:55 +0000
committerKeir Fraser <keir@xen.org>2011-11-16 15:28:55 +0000
commit3e3422bb01fe58333ed0c15894cf3dc8c4a035a2 (patch)
treec824ea4c727f8448c2a1768ffd0d2a102a96b7d5 /tools/tests
parent5d6a9065b82eb55556947f41ac6fb3892139de03 (diff)
downloadxen-3e3422bb01fe58333ed0c15894cf3dc8c4a035a2.tar.gz
xen-3e3422bb01fe58333ed0c15894cf3dc8c4a035a2.tar.bz2
xen-3e3422bb01fe58333ed0c15894cf3dc8c4a035a2.zip
test_x86_emulate: Get public Xen headers via tools/include.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/tests')
-rw-r--r--tools/tests/x86_emulator/Makefile6
-rw-r--r--tools/tests/x86_emulator/test_x86_emulator.c2
-rw-r--r--tools/tests/x86_emulator/x86_emulate.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/tools/tests/x86_emulator/Makefile b/tools/tests/x86_emulator/Makefile
index 9c9739f329..fa76e24fa1 100644
--- a/tools/tests/x86_emulator/Makefile
+++ b/tools/tests/x86_emulator/Makefile
@@ -37,8 +37,10 @@ install:
x86_emulate:
[ -L x86_emulate ] || ln -sf $(XEN_ROOT)/xen/arch/x86/x86_emulate .
+HOSTCFLAGS += $(CFLAGS_xeninclude)
+
x86_emulate.o: x86_emulate.c x86_emulate
- $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
+ $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
test_x86_emulator.o: test_x86_emulator.c blowfish.h x86_emulate
- $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
+ $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
diff --git a/tools/tests/x86_emulator/test_x86_emulator.c b/tools/tests/x86_emulator/test_x86_emulator.c
index bb1055ba1f..1f5722baaa 100644
--- a/tools/tests/x86_emulator/test_x86_emulator.c
+++ b/tools/tests/x86_emulator/test_x86_emulator.c
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
-#include <public/xen.h>
+#include <xen/xen.h>
#include <sys/mman.h>
#include "x86_emulate/x86_emulate.h"
diff --git a/tools/tests/x86_emulator/x86_emulate.c b/tools/tests/x86_emulator/x86_emulate.c
index a58a7b8178..2674d556eb 100644
--- a/tools/tests/x86_emulator/x86_emulate.c
+++ b/tools/tests/x86_emulator/x86_emulate.c
@@ -1,7 +1,7 @@
#include <stddef.h>
#include <stdint.h>
#include <string.h>
-#include <public/xen.h>
+#include <xen/xen.h>
#include "x86_emulate/x86_emulate.h"
#include "x86_emulate/x86_emulate.c"