| 1 | # inputs/outputs |
| 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 |
| 7 | INIT_PY = __init__.py |
| 8 | |
| 9 | # dist files |
| 10 | EXTRA_DIST = $(INIT_PY_IN) $(LTTNGUST_PY_PACKAGE_SRC) |
| 11 | |
| 12 | # __init__.py with proper version string |
| 13 | all-local: $(INIT_PY) |
| 14 | |
| 15 | $(INIT_PY): $(INIT_PY_IN) |
| 16 | $(SED) "s/@LTTNG_UST_VERSION@/$(PACKAGE_VERSION)/g" < $< > $@ |
| 17 | |
| 18 | # Python package |
| 19 | nodist_lttngust_PYTHON = $(LTTNGUST_PY_PACKAGE_SRC) $(INIT_PY) |
| 20 | lttngustdir = $(pythondir)/lttngust |
| 21 | |
| 22 | # tracepoint provider |
| 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 |
| 30 | |
| 31 | CLEANFILES = $(INIT_PY) |