relayd: do not link lttng-relayd on liblttng-ctl
[lttng-tools.git] / extras / bindings / swig / python / Makefile.am
CommitLineData
ab5be9fa
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
36907cb5 3lttng.i: lttng.i.in
18ecc6ae 4 $(SED) "s/LTTNG_VERSION_STR/LTTng $(PACKAGE_VERSION)/g" < $(srcdir)/lttng.i.in >lttng.i
36907cb5 5
2d44f8b3
FD
6# Some versions of SWIG (like 3.0.12) generate code where a parameter called
7# `swig_this` shadows a global of the same name. Later versions (like 4.0.1)
8# have renamed this global to `Swig_This_global`.
9#
10# Disable -Wshadow for that file.
11AM_CFLAGS += -Wno-shadow
12
343af227 13AM_CPPFLAGS += $(PYTHON_INCLUDE)
36907cb5 14
ffadb7d3
JG
15EXTRA_DIST = lttng.i.in
16nodist_python_PYTHON = lttng.py
36907cb5
DS
17pyexec_LTLIBRARIES = _lttng.la
18
19MAINTAINERCLEANFILES = lttng_wrap.c lttng.py
20
ffadb7d3 21nodist__lttng_la_SOURCES = lttng_wrap.c
36907cb5 22_lttng_la_LDFLAGS = -module
e2ad251c
SM
23_lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
24 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
25 $(top_builddir)/src/common/libcommon.la
36907cb5 26
36907cb5
DS
27lttng_wrap.c: lttng.i
28 $(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i
36907cb5 29
b8a74969 30CLEANFILES = lttng.i lttng.py lttng_wrap.c lttng.pyc
This page took 0.067865 seconds and 5 git commands to generate.