diff --git a/tools/tests/vpci/Makefile b/tools/tests/vpci/Makefile index 9450f7593a..97359ff67f 100644 --- a/tools/tests/vpci/Makefile +++ b/tools/tests/vpci/Makefile @@ -8,10 +8,14 @@ all: $(TARGET) .PHONY: run run: $(TARGET) +ifeq ($(CC),$(HOSTCC)) ./$(TARGET) +else + $(warning HOSTCC != CC, will not run test) +endif $(TARGET): vpci.c vpci.h list.h main.c emul.h - $(HOSTCC) $(CFLAGS_xeninclude) -g -o $@ vpci.c main.c + $(CC) $(CFLAGS_xeninclude) -g -o $@ vpci.c main.c .PHONY: clean clean: