X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust-python-agent%2FMakefile.am;h=e5de2e0b73f4e79e7333205dd73cded8e5ed4e6f;hb=50d2bb48d09d5b6ae23185e8f916152e2371d04a;hp=e2a15f48da8898a1c5263737ef2b58ef5cf87598;hpb=dce1cbecb69ae3ad489668226dca583b8bee04ab;p=lttng-ust.git diff --git a/liblttng-ust-python-agent/Makefile.am b/liblttng-ust-python-agent/Makefile.am index e2a15f48..e5de2e0b 100644 --- a/liblttng-ust-python-agent/Makefile.am +++ b/liblttng-ust-python-agent/Makefile.am @@ -1,34 +1,13 @@ -# tracepoint provider -AM_CPPFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/include/ \ - -I$(top_builddir)/include/ -AM_CFLAGS = -fno-strict-aliasing -lib_LTLIBRARIES = liblttng-ust-python-agent.la -liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h -liblttng_ust_python_agent_la_LIBADD = -lc -llttng-ust \ - -L$(top_builddir)/liblttng-ust/.libs - -# Use setup.py for the installation instead of Autoconf. -# This ease the installation process and assure a *pythonic* -# installation. -agent_path=lttngust -all-local: - $(PYTHON) setup.py build --verbose +# SPDX-License-Identifier: LGPL-2.1-only -install-exec-local: - @opts="--prefix=$(prefix) --verbose --no-compile $(DISTSETUPOPTS)"; \ - if [ "$(DESTDIR)" != "" ]; then \ - opts="$$opts --root=$(DESTDIR)"; \ - fi; \ - $(PYTHON) setup.py install $$opts; +# tracepoint provider: always built/installed (does not depend on Python per se) +AM_CFLAGS += -I$(srcdir) -fno-strict-aliasing -clean-local: - rm -rf build - -uninstall-local: - rm -rf $(DESTDIR)$(pkgpythondir) +lib_LTLIBRARIES = liblttng-ust-python-agent.la -EXTRA_DIST=$(agent_path) +liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h +liblttng_ust_python_agent_la_LIBADD = -lc \ + $(top_builddir)/liblttng-ust/liblttng-ust.la -# Remove automake generated file before dist -dist-hook: - rm -rf $(distdir)/$(agent_path)/__init__.py +# Follow the main library soname for co-installability +liblttng_ust_python_agent_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)