Move Python bindings to babeltrace subfolder
[babeltrace.git] / bindings / python / babeltrace / Makefile.am
CommitLineData
45dc11d3
JG
1NATIVEBT_PY = nativebt.py
2NATIVEBT_WRAP_C = nativebt_wrap.c
3INIT_PY = __init__.py
4INIT_PY_IN = $(srcdir)/$(INIT_PY).in
5NATIVEBT_I = $(srcdir)/nativebt.i
6
7all-local: $(INIT_PY)
8
9$(INIT_PY): $(INIT_PY_IN)
10 sed "s/BABELTRACE_VERSION_STR/$(PACKAGE_VERSION)/g" < $< > $@
11
12AM_CFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/include/ -I$(srcdir)
13
14EXTRA_DIST = common.py reader.py writer.py $(INIT_PY_IN) $(NATIVEBT_I)
15nodist_btpackage_PYTHON = $(INIT_PY) $(NATIVEBT_PY) common.py reader.py writer.py
16nativebtlib_LTLIBRARIES = _nativebt.la
17
18btpackagedir = $(pythondir)/babeltrace
19nativebtlibdir = $(btpackagedir)
20
21MAINTAINERCLEANFILES = $(NATIVEBT_PY) $(NATIVEBT_WRAP_C)
22
23nodist__nativebt_la_SOURCES = $(NATIVEBT_WRAP_C)
24_nativebt_la_SOURCES = python-complements.h python-complements.c
25_nativebt_la_LDFLAGS = -module
26_nativebt_la_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
27_nativebt_la_LIBS = $(GLIB_LIBS)
28_nativebt_la_LIBADD = $(top_builddir)/formats/ctf/libbabeltrace-ctf.la
29
30# SWIG 'warning md variable unused' fixed after SWIG build:
31$(NATIVEBT_WRAP_C): $(NATIVEBT_I)
32 $(SWIG) -python -Wall -I$(srcdir) -I$(top_srcdir)/include -outcurrentdir $<
33
34CLEANFILES = $(NATIVEBT_PY) $(NATIVEBT_WRAP_C) $(INIT_PY)
This page took 0.023721 seconds and 4 git commands to generate.