Commit | Line | Data |
---|---|---|
de4dee04 PP |
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 | |
c3e14096 | 8 | |
de4dee04 PP |
9 | # dist files |
10 | EXTRA_DIST = $(INIT_PY_IN) $(LTTNGUST_PY_PACKAGE_SRC) | |
c3e14096 | 11 | |
de4dee04 PP |
12 | # __init__.py with proper version string |
13 | all-local: $(INIT_PY) | |
c3e14096 | 14 | |
de4dee04 PP |
15 | $(INIT_PY): $(INIT_PY_IN) |
16 | $(SED) "s/@LTTNG_UST_VERSION@/$(PACKAGE_VERSION)/g" < $< > $@ | |
c3e14096 | 17 | |
de4dee04 PP |
18 | # Python package |
19 | nodist_lttngust_PYTHON = $(LTTNGUST_PY_PACKAGE_SRC) $(INIT_PY) | |
20 | lttngustdir = $(pythondir)/lttngust | |
c3e14096 | 21 | |
de4dee04 PP |
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 | |
c3e14096 DG |
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 \ | |
de4dee04 | 29 | -L$(top_builddir)/liblttng-ust/.libs |
c3e14096 | 30 | |
de4dee04 | 31 | CLEANFILES = $(INIT_PY) |