Commit | Line | Data |
---|---|---|
17137804 PP |
1 | NATIVEBT_PY = nativebt.py |
2 | NATIVEBT_WRAP_C = nativebt_wrap.c | |
3 | INIT_PY = __init__.py | |
4 | INIT_PY_IN = $(srcdir)/$(INIT_PY).in | |
5 | NATIVEBT_I = $(srcdir)/nativebt.i | |
6fd49698 | 6 | |
17137804 PP |
7 | all-local: $(INIT_PY) |
8 | ||
9 | $(INIT_PY): $(INIT_PY_IN) | |
6fd49698 | 10 | sed "s/BABELTRACE_VERSION_STR/$(PACKAGE_VERSION)/g" < $< > $@ |
24a3136a | 11 | |
dab8128f | 12 | AM_CFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/include/ |
24a3136a | 13 | |
17137804 PP |
14 | EXTRA_DIST = common.py reader.py writer.py $(INIT_PY_IN) $(NATIVEBT_I) |
15 | nodist_btpackage_PYTHON = $(INIT_PY) $(NATIVEBT_PY) common.py reader.py writer.py | |
6fd49698 PP |
16 | nativebtlib_LTLIBRARIES = _nativebt.la |
17 | ||
18 | btpackagedir = $(pythondir)/babeltrace | |
19 | nativebtlibdir = $(btpackagedir) | |
24a3136a | 20 | |
17137804 | 21 | MAINTAINERCLEANFILES = $(NATIVEBT_PY) $(NATIVEBT_WRAP_C) |
24a3136a | 22 | |
17137804 | 23 | nodist__nativebt_la_SOURCES = $(NATIVEBT_WRAP_C) |
6fd49698 PP |
24 | _nativebt_la_SOURCES = python-complements.h python-complements.c |
25 | _nativebt_la_LDFLAGS = -module | |
6fd49698 | 26 | _nativebt_la_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS) |
6fd49698 | 27 | _nativebt_la_LIBS = $(GLIB_LIBS) |
6fd49698 | 28 | _nativebt_la_LIBADD = $(top_builddir)/formats/ctf/libbabeltrace-ctf.la |
24a3136a DS |
29 | |
30 | # SWIG 'warning md variable unused' fixed after SWIG build: | |
17137804 PP |
31 | $(NATIVEBT_WRAP_C): $(NATIVEBT_I) |
32 | $(SWIG) -python -Wall -I$(srcdir) -I$(top_srcdir)/include -outcurrentdir $< | |
a6b5ad60 | 33 | |
17137804 | 34 | CLEANFILES = $(NATIVEBT_PY) $(NATIVEBT_WRAP_C) $(INIT_PY) |