| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | lttng.i: lttng.i.in |
| 4 | $(SED) "s/LTTNG_VERSION_STR/LTTng $(PACKAGE_VERSION)/g" < $(srcdir)/lttng.i.in >lttng.i |
| 5 | |
| 6 | AM_CPPFLAGS += $(PYTHON_INCLUDE) |
| 7 | |
| 8 | EXTRA_DIST = lttng.i.in |
| 9 | nodist_python_PYTHON = lttng.py |
| 10 | pyexec_LTLIBRARIES = _lttng.la |
| 11 | |
| 12 | MAINTAINERCLEANFILES = lttng_wrap.c lttng.py |
| 13 | |
| 14 | nodist__lttng_la_SOURCES = lttng_wrap.c |
| 15 | _lttng_la_LDFLAGS = -module |
| 16 | _lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
| 17 | $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \ |
| 18 | $(top_builddir)/src/common/libcommon.la |
| 19 | |
| 20 | lttng_wrap.c: lttng.i |
| 21 | $(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i |
| 22 | |
| 23 | CLEANFILES = lttng.i lttng.py lttng_wrap.c lttng.pyc |