mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Before adding more private stuff to xen/vpci.h, split it up. In order to be able to include the private header first in a CU, the per-arch struct decls also need to move (to new asm/vpci.h files). While adjusting the test harness'es Makefile, also switch the pre-existing header symlink-ing rule to a pattern one. Apart from in the test harness code, things only move; no functional change intended. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Stewart Hildebrand <stewart.hildebrand@amd.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
44 lines
911 B
Makefile
44 lines
911 B
Makefile
XEN_ROOT=$(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
TARGET := test_vpci
|
|
|
|
.PHONY: all
|
|
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 private.h main.c emul.h
|
|
$(CC) $(CFLAGS_xeninclude) -include emul.h -g -o $@ vpci.c main.c
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(TARGET) *.o *~ vpci.h vpci.c list.h private.h
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
.PHONY: install
|
|
install: all
|
|
$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC)/tests
|
|
$(INSTALL_PROG) $(TARGET) $(DESTDIR)$(LIBEXEC)/tests
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
$(RM) -- $(DESTDIR)$(LIBEXEC)/tests/$(TARGET)
|
|
|
|
vpci.c: $(XEN_ROOT)/xen/drivers/vpci/vpci.c
|
|
sed -e '/#include/d' <$< >$@
|
|
|
|
private.h: %.h: $(XEN_ROOT)/xen/drivers/vpci/%.h
|
|
sed -e '/#include/d' <$< >$@
|
|
|
|
list.h vpci.h: %.h: $(XEN_ROOT)/xen/include/xen/%.h
|
|
sed -e '/#include/d' <$< >$@
|