diff options
Diffstat (limited to 'tools/tests/Makefile')
-rw-r--r-- | tools/tests/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/tests/Makefile b/tools/tests/Makefile index 015e8ae256..99b6b20408 100644 --- a/tools/tests/Makefile +++ b/tools/tests/Makefile @@ -4,13 +4,12 @@ include $(XEN_ROOT)/tools/Rules.mk TARGET := test_x86_emulator -CC := gcc -CFLAGS := -O2 -Wall -Werror -D__TEST_HARNESS__ +HOSTCFLAGS += -D__TEST_HARNESS__ all: $(TARGET) $(TARGET): x86_emulate.o test_x86_emulator.o - $(CC) -o $@ $^ + $(HOSTCC) -o $@ $^ clean: rm -rf $(TARGET) *.o *~ core @@ -18,7 +17,7 @@ clean: install: x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c - $(CC) $(CFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $< + $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $< %.o: %.c - $(CC) $(CFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $< + $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $< |