Add bt_plugin test
[babeltrace.git] / tests / lib / test-plugin-plugins / Makefile.am
CommitLineData
cbb9e0b1
PP
1AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
2COMMONLIBADD = \
3 $(top_builddir)/lib/libbabeltrace.la \
4 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la
5
6# It seems like Automake won't make Libtool create a shared object
7# (which we need here since we're building plugins) with a noinst_
8# destination (no install). Indeed we don't want to install those test
9# plugins. Libtool creates a shared object when it gets an -rpath
10# argument. In this case, Libtool does not seem to care much about
11# the actual argument, so we use / (because Libtool needs an absolute
12# path), which in the end is not even part of the linked object's
13# rpath.
14#
15# -module makes it possible to not use the `lib` prefix and it makes
16# sure that all symbols are dynamically exported.
17COMMONLDFLAGS = -rpath / -avoid-version -module
18
19noinst_LTLIBRARIES = plugin-minimal.la plugin-sfs.la plugin-invalid.la
20
21# the minimal plugin
22plugin_minimal_la_SOURCES = minimal.c
23plugin_minimal_la_LDFLAGS = $(COMMONLDFLAGS)
24plugin_minimal_la_LIBADD = $(COMMONLIBADD)
25
26# source/filter/sink plugin
27plugin_sfs_la_SOURCES = sfs.c
28plugin_sfs_la_LDFLAGS = $(COMMONLDFLAGS)
29plugin_sfs_la_LIBADD = $(COMMONLIBADD)
30
31# invalid plugin
32plugin_invalid_la_SOURCES = invalid.c
33plugin_invalid_la_LDFLAGS = $(COMMONLDFLAGS)
34plugin_invalid_la_LIBADD = $(COMMONLIBADD)
This page took 0.023668 seconds and 4 git commands to generate.