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

TARGET := test_x86_emulator

HOSTCFLAGS += -D__TEST_HARNESS__

.PHONY: all
all: $(TARGET)

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

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

.PHONY: install
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 $@ $<