VirtualBox

source: vbox/trunk/src/libs/libxml2-2.12.6/python/Makefile.am@ 104932

Last change on this file since 104932 was 104106, checked in by vboxsync, 9 months ago

libxml2-2.9.14: Applied and adjusted our libxml2 changes to 2.9.14. bugref:10640

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1# Makefile for libxml2 python library
2
3# We use a rule with multiple output files which creates problems with
4# parallel builds.
5.NOTPARALLEL:
6
7SUBDIRS = . tests
8
9EXTRA_DIST = \
10 generator.py \
11 libxml.py \
12 libxml2-python-api.xml \
13 pyproject.toml
14
15if WITH_PYTHON
16AM_CPPFLAGS = \
17 -I$(top_builddir)/include \
18 -I$(top_srcdir)/include \
19 $(PYTHON_CFLAGS)
20
21pyexec_LTLIBRARIES = libxml2mod.la
22
23libxml2mod_la_SOURCES = libxml.c libxml_wrap.h types.c
24nodist_libxml2mod_la_SOURCES = libxml2-py.h libxml2-py.c
25libxml2mod_la_LDFLAGS = $(AM_LDFLAGS) $(PYTHON_LDFLAGS) -module -avoid-version
26libxml2mod_la_LIBADD = $(top_builddir)/libxml2.la $(PYTHON_LIBS)
27
28BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c
29
30python_PYTHON = drv_libxml2.py
31nodist_python_PYTHON = libxml2.py
32
33API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
34GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
35CLEANFILES = libxml2.py $(GENERATED)
36
37all-local: libxml2.py
38
39$(GENERATED): $(srcdir)/generator.py $(API_DESC)
40 $(PYTHON) $(srcdir)/generator.py $(srcdir)
41
42# libxml.c #includes libxml2-export.c
43libxml.$(OBJEXT): libxml2-export.c
44
45libxml2.py: $(srcdir)/libxml.py libxml2class.py
46 cat $(srcdir)/libxml.py `test -f libxml2class.py || echo $(srcdir)/`libxml2class.py > $@
47
48clean-local:
49 rm -rf __pycache__ *.pyc
50
51endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette