-AM_CPPFLAGS = @CFLAGS@ -I../../src @PYTHON_INCLUDES@
+AM_CPPFLAGS = @CFLAGS@ -I$(top_srcdir)/src @PYTHON_INCLUDES@
#pythondir = $(pyexecdir)/python@PYTHON_VERSION@/site-packages
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
pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
RRDs.pod:
- ln -s ../bindings/perl-shared/RRDs.pm RRDs.pod
+ ln -s $(top_srcdir)/bindings/perl-shared/RRDs.pm RRDs.pod
RRDp.pod:
- ln -s ../bindings/perl-piped/RRDp.pm RRDp.pod
+ ln -s $(top_srcdir)/bindings/perl-piped/RRDp.pm RRDp.pod
index.html:
rm -f index.html; ln -s rrdtool.html index.html