summaryrefslogtreecommitdiff
path: root/_dbus_glib_bindings/Makefile.am
blob: ead49dadc273a075610dce949f8f38b01a795f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pyexec_LTLIBRARIES = _dbus_glib_bindings.la

AM_CPPFLAGS = -I$(top_srcdir)/include $(DBUS_CFLAGS) $(DBUS_GLIB_CFLAGS) \
	      $(PYTHON_INCLUDES)
AM_LDFLAGS = -module -avoid-version \
	     -export-symbols-regex \(PyInit__\|init_\)dbus_glib_bindings \
	     $(NULL)

libadd = \
	$(DBUS_LIBS) \
	$(DBUS_GLIB_LIBS) \
	$(NULL)

if WINDOWS
# Win32 DLLs can't have undefined symbols (so this needs explicit linking
# against the Python DLL), and Python expects extensions to be *.pyd
# instead of *.dll
AM_LDFLAGS += \
	-no-undefined \
	-shrext ".pyd" \
	$(NULL)

libadd += \
	$(PYTHON_LIBS) \
	$(NULL)
endif

_dbus_glib_bindings_la_LIBADD = $(libadd)
_dbus_glib_bindings_la_SOURCES = module.c