source: trunk/packages/xen-common/xen-common/tools/tests/Makefile @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 740 bytes
Line 
1
2XEN_ROOT=../..
3include $(XEN_ROOT)/tools/Rules.mk
4
5TARGET := test_x86_emulator
6
7.PHONY: all
8all: $(TARGET)
9
10.PHONY: blowfish.bin
11blowfish.bin:
12        make -f blowfish.mk all
13
14blowfish.h: blowfish.bin
15        (echo "static unsigned int blowfish_code[] = {"; \
16        od -v -t x $< | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\
17        echo "};") >$@
18
19$(TARGET): x86_emulate.o test_x86_emulator.o
20        $(HOSTCC) -o $@ $^
21
22.PHONY: clean
23clean:
24        rm -rf $(TARGET) *.o *~ core blowfish.h blowfish.bin
25
26.PHONY: install
27install:
28
29x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c
30        $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
31
32test_x86_emulator.o: test_x86_emulator.c blowfish.h
33        $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
Note: See TracBrowser for help on using the repository browser.