From c69ab9d4310bfe374aa6354bd9afcf412c3dec8f Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 12 Jan 2007 17:16:45 +0000 Subject: Extend emulator testing. Signed-off-by: Keir Fraser --- tools/tests/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tools/tests/Makefile') diff --git a/tools/tests/Makefile b/tools/tests/Makefile index 263caffb46..197abc5b3f 100644 --- a/tools/tests/Makefile +++ b/tools/tests/Makefile @@ -7,12 +7,20 @@ TARGET := test_x86_emulator .PHONY: all all: $(TARGET) +blowfish.bin: + make -f blowfish.mk all + +blowfish.h: blowfish.bin + (echo "static unsigned int blowfish_code[] = {"; \ + od -v -t x $< | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\ + echo "};") >$@ + $(TARGET): x86_emulate.o test_x86_emulator.o $(HOSTCC) -o $@ $^ .PHONY: clean clean: - rm -rf $(TARGET) *.o *~ core + rm -rf $(TARGET) *.o *~ core blowfish.h blowfish.bin .PHONY: install install: @@ -20,5 +28,5 @@ install: x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $< -%.o: %.c +test_x86_emulator.o: test_x86_emulator.c blowfish.h $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $< -- cgit v1.2.3