aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/Makefile
blob: 99b6b20408155a25d775811a9d836c364e99947c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
XEN_ROOT=../..
include $(XEN_ROOT)/tools/Rules.mk

TARGET := test_x86_emulator

HOSTCFLAGS += -D__TEST_HARNESS__

all: $(TARGET)

$(TARGET): x86_emulate.o test_x86_emulator.o
	$(HOSTCC) -o $@ $^

clean:
	rm -rf $(TARGET) *.o *~ core

install:

x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c
	$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<

%.o: %.c
	$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<