summaryrefslogtreecommitdiffstats
path: root/python/Makefile.am
blob: b5ee4243af616fb46759f0ae8a34b04ed15e7af6 (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
30
SUBDIRS=examples

INCLUDES=-I$(top_builddir) -I$(top_builddir)/dbus $(DBUS_CLIENT_CFLAGS) $(DBUS_GLIB_CFLAGS) $(DBUS_GLIB_TOOL_CFLAGS) $(PYTHON_INCLUDES) -DDBUS_COMPILATION=1

dbusdir = $(pythondir)/dbus
dbus_PYTHON = __init__.py _dbus.py decorators.py exceptions.py services.py proxies.py _util.py types.py matchrules.py

dbusbindingsdir = $(pyexecdir)/dbus
dbusbindings_LTLIBRARIES = dbus_bindings.la

dbus_bindings_la_LDFLAGS = -module -avoid-version -fPIC -export-symbols-regex initdbus_bindings
dbus_bindings_la_LIBADD = $(top_builddir)/dbus/libdbus-1.la $(top_builddir)/glib/libdbus-glib-1.la
nodist_dbus_bindings_la_SOURCES = dbus_bindings.c


EXTRA_DIST = 			\
	dbus_h_wrapper.h	\
	dbus_bindings.pyx.in	\
	extract.py

CLEANFILES =			\
	dbus_bindings.pyx	\
	dbus_bindings.c


dbus_bindings.pyx: dbus_bindings.pyx.in extract.py
	-$(PYTHON) extract.py dbus_bindings.pyx.in -I$(top_builddir)  > dbus_bindings.pyx

dbus_bindings.c: dbus_bindings.pyx
	-pyrexc dbus_bindings.pyx