-AM_CPPFLAGS = @CFLAGS@ -I../../src @PYTHON_INCLUDES@
+AM_CPPFLAGS = @CFLAGS@ -I$(top_srcdir)/src @PYTHON_INCLUDES@
-#pythondir = $(pyexecdir)/python@PYTHON_VERSION@/site-packages
+pyexec_PROGRAMS = rrdtoolmodule.so
-python_PROGRAMS = rrdtoolmodule.so
-
-rrdtoolmodule_so_LDFLAGS = -module -shared -L../../src
-rrdtoolmodule_so_LDADD = -lrrd
+rrdtoolmodule_so_LDFLAGS = -module -shared
+rrdtoolmodule_so_LDADD = $(top_builddir)/src/librrd.la
rrdtoolmodule_so_SOURCES = rrdtoolmodule.c
noinst_HEADERS = rrd_extra.h
-clean:
+clean-local:
rm -rf build
+