2 LTTNGUST_PY_PACKAGE_DIR = $(srcdir)/lttngust
3 LTTNGUST_PY_PACKAGE_FILES = agent.py cmd.py debug.py loghandler.py
4 LTTNGUST_PY_PACKAGE_SRC = \
5 $(addprefix $(LTTNGUST_PY_PACKAGE_DIR)/,$(LTTNGUST_PY_PACKAGE_FILES))
6 INIT_PY_IN = $(srcdir)/__init__.py.in
10 EXTRA_DIST = $(INIT_PY_IN) $(LTTNGUST_PY_PACKAGE_SRC)
12 # __init__.py with proper version string
15 $(INIT_PY): $(INIT_PY_IN)
16 $(SED) "s/@LTTNG_UST_VERSION@/$(PACKAGE_VERSION)/g" < $< > $@
19 nodist_lttngust_PYTHON = $(LTTNGUST_PY_PACKAGE_SRC) $(INIT_PY)
20 lttngustdir = $(pythondir)/lttngust
23 AM_CPPFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/include/ \
24 -I$(top_builddir)/include/
25 AM_CFLAGS = -fno-strict-aliasing
26 lib_LTLIBRARIES = liblttng-ust-python-agent.la
27 liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h
28 liblttng_ust_python_agent_la_LIBADD = -lc -llttng-ust \
29 -L$(top_builddir)/liblttng-ust/.libs
31 CLEANFILES = $(INIT_PY)