VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/python/Makefile.am@ 95312

Last change on this file since 95312 was 95312, checked in by vboxsync, 2 years ago

libs/{curl,libxml2}: OSE export fixes, bugref:8515

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# Makefile for libxml2 python library
2AUTOMAKE_OPTIONS = 1.4 foreign
3
4SUBDIRS = . tests
5
6docsdir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)
7dist_docs_DATA = TODO
8
9EXTRA_DIST = \
10 setup.py \
11 generator.py \
12 libxml.py \
13 libxml2-export.c \
14 libxml2-python-api.xml \
15 libxml2class.py \
16 libxml2class.txt
17
18if WITH_PYTHON
19AM_CPPFLAGS = \
20 -I$(top_builddir)/include \
21 -I$(top_srcdir)/include \
22 -I$(PYTHON_INCLUDES)
23
24python_LTLIBRARIES = libxml2mod.la
25
26libxml2mod_la_SOURCES = libxml.c libxml_wrap.h libxml2-py.h libxml2-py.c types.c
27libxml2mod_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) -module -avoid-version \
28 $(top_builddir)/libxml2.la
29libxml2mod_la_LIBADD = $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS)
30
31BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c
32
33# libxml.c #includes libxml2-export.c
34libxml.$(OBJEXT): libxml2-export.c
35
36libxml2.py: $(srcdir)/libxml.py libxml2class.py
37 cat $(srcdir)/libxml.py `test -f libxml2class.py || echo $(srcdir)/`libxml2class.py > $@
38
39dist_python_DATA = \
40 drv_libxml2.py \
41 libxml2.py
42
43CLEANFILES = *.pyc
44
45MAINTAINERCLEANFILES = libxml2.py libxml2class.*
46
47API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
48GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
49
50$(GENERATED): $(srcdir)/generator.py $(API_DESC)
51 $(PYTHON) $(srcdir)/generator.py $(srcdir)
52endif
53
54tests test: all
55 cd tests && $(MAKE) tests
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