mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Originally libxltypes.py provided the infrastructure and libxl.idl provided the specific types. In 23887:a543e10211f7 libxl.idl became libxl_types.idl (to allow for libxl_types_internal.idl) which means we now have libxl_types.FOO and libxltypes.FOO providing different things and annoying people in tab completion. Rename the infrastructure as idl. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
XEN_ROOT = $(CURDIR)/../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
XENPATH = "xen/util/path.py"
|
|
|
|
genpath-target = $(call buildmakevars2file,$(XENPATH))
|
|
$(eval $(genpath-target))
|
|
|
|
.PHONY: build
|
|
build: genpath genwrap.py $(XEN_ROOT)/tools/libxl/libxl_types.idl \
|
|
$(XEN_ROOT)/tools/libxl/idl.py
|
|
PYTHONPATH=$(XEN_ROOT)/tools/libxl $(PYTHON) genwrap.py \
|
|
$(XEN_ROOT)/tools/libxl/libxl_types.idl \
|
|
xen/lowlevel/xl/_pyxl_types.h \
|
|
xen/lowlevel/xl/_pyxl_types.c
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build
|
|
|
|
.PHONY: install
|
|
install: install-dtd
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install \
|
|
$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force
|
|
|
|
install-dtd: all
|
|
$(INSTALL_DIR) $(DESTDIR)$(SHAREDIR)/xen
|
|
$(INSTALL_DATA) xen/xm/create.dtd $(DESTDIR)$(SHAREDIR)/xen
|
|
|
|
.PHONY: test
|
|
test:
|
|
export LD_LIBRARY_PATH=$$(readlink -f ../libxc):$$(readlink -f ../xenstore); $(PYTHON) test.py -b -u
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(XENPATH)
|
|
rm -rf *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc
|
|
rm -f xen/lowlevel/xl/_pyxl_types.h
|
|
rm -f xen/lowlevel/xl/_pyxl_types.c
|
|
rm -f $(DEPS)
|
|
|
|
-include $(DEPS)
|