aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/Makefile
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-03-09 16:43:53 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-03-09 16:43:53 +0000
commit4c5eeec983495e347c6ab3d40a4a70cdbdfce9af (patch)
tree97f1a2efc1e3a4435009a5b3c3293195ddbb34c0 /tools/tests/Makefile
parentd9109bda544f877da56e2c9823e19486a1b229d6 (diff)
downloadxen-4c5eeec983495e347c6ab3d40a4a70cdbdfce9af.tar.gz
xen-4c5eeec983495e347c6ab3d40a4a70cdbdfce9af.tar.bz2
xen-4c5eeec983495e347c6ab3d40a4a70cdbdfce9af.zip
bitkeeper revision 1.1236.18.1 (422f27c9EveZXnXhkLBg8iYwaAffoQ)
Begin integrating new instruction decoder and emulator. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/tests/Makefile')
-rw-r--r--tools/tests/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/tests/Makefile b/tools/tests/Makefile
new file mode 100644
index 0000000000..3e8962a714
--- /dev/null
+++ b/tools/tests/Makefile
@@ -0,0 +1,22 @@
+
+XEN_ROOT=../..
+include $(XEN_ROOT)/tools/Rules.mk
+
+TARGET := test_x86_emulator
+
+CC := gcc
+CFLAGS := -O2 -Wall -Werror -D__TEST_HARNESS__
+
+$(TARGET): x86_emulate.o test_x86_emulator.o
+ $(CC) -o $@ $^
+
+clean:
+ rm -rf $(TARGET) *.o *~ core
+
+install:
+
+x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c
+ $(CC) $(CFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
+
+%.o: %.c
+ $(CC) $(CFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<