aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-31 14:21:13 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-03-31 14:21:13 +0100
commitc0b0636f388fcbdc168e8254188d7f145ecdab98 (patch)
tree8d83d984c434cce73eafb2d535a23a702c7c6727 /tools/tests/Makefile
parente358d917c40addf8ad81fdcc7933bd68c174e841 (diff)
downloadxen-c0b0636f388fcbdc168e8254188d7f145ecdab98.tar.gz
xen-c0b0636f388fcbdc168e8254188d7f145ecdab98.tar.bz2
xen-c0b0636f388fcbdc168e8254188d7f145ecdab98.zip
x86_emulate: Remove environment-specific definitions from core
emulator source files. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/tests/Makefile')
-rw-r--r--tools/tests/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/tests/Makefile b/tools/tests/Makefile
index 45d4294f9a..cf32ef91df 100644
--- a/tools/tests/Makefile
+++ b/tools/tests/Makefile
@@ -21,13 +21,17 @@ $(TARGET): x86_emulate.o test_x86_emulator.o
.PHONY: clean
clean:
- rm -rf $(TARGET) *.o *~ core blowfish.h blowfish.bin
+ rm -rf $(TARGET) *.o *~ core blowfish.h blowfish.bin x86_emulate
.PHONY: install
install:
-x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c
+.PHONY: x86_emulate
+x86_emulate:
+ [ -L x86_emulate ] || ln -sf $(XEN_ROOT)/xen/arch/x86/x86_emulate .
+
+x86_emulate.o: x86_emulate.c x86_emulate
$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
-test_x86_emulator.o: test_x86_emulator.c blowfish.h
+test_x86_emulator.o: test_x86_emulator.c blowfish.h x86_emulate
$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<