spec: libxml2 is no longer required
[platform/upstream/dbus-python.git] / _dbus_glib_bindings / Makefile.am
1 pyexec_LTLIBRARIES = _dbus_glib_bindings.la
2
3 AM_CPPFLAGS = -I$(top_srcdir)/include $(DBUS_CFLAGS) $(DBUS_GLIB_CFLAGS) \
4               $(PYTHON_INCLUDES)
5 AM_LDFLAGS = -module -avoid-version \
6              -export-symbols-regex \(PyInit__\|init_\)dbus_glib_bindings \
7              $(NULL)
8
9 libadd = \
10         $(DBUS_LIBS) \
11         $(DBUS_GLIB_LIBS) \
12         $(NULL)
13
14 if WINDOWS
15 # Win32 DLLs can't have undefined symbols (so this needs explicit linking
16 # against the Python DLL), and Python expects extensions to be *.pyd
17 # instead of *.dll
18 AM_LDFLAGS += \
19         -no-undefined \
20         -shrext ".pyd" \
21         $(NULL)
22
23 libadd += \
24         $(PYTHON_LIBS) \
25         $(NULL)
26 endif
27
28 _dbus_glib_bindings_la_LIBADD = $(libadd)
29 _dbus_glib_bindings_la_SOURCES = module.c