Add bt_plugin test
[babeltrace.git] / tests / lib / test-plugin-plugins / Makefile.am
1 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
2 COMMONLIBADD = \
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.
17 COMMONLDFLAGS = -rpath / -avoid-version -module
18
19 noinst_LTLIBRARIES = plugin-minimal.la plugin-sfs.la plugin-invalid.la
20
21 # the minimal plugin
22 plugin_minimal_la_SOURCES = minimal.c
23 plugin_minimal_la_LDFLAGS = $(COMMONLDFLAGS)
24 plugin_minimal_la_LIBADD = $(COMMONLIBADD)
25
26 # source/filter/sink plugin
27 plugin_sfs_la_SOURCES = sfs.c
28 plugin_sfs_la_LDFLAGS = $(COMMONLDFLAGS)
29 plugin_sfs_la_LIBADD = $(COMMONLIBADD)
30
31 # invalid plugin
32 plugin_invalid_la_SOURCES = invalid.c
33 plugin_invalid_la_LDFLAGS = $(COMMONLDFLAGS)
34 plugin_invalid_la_LIBADD = $(COMMONLIBADD)
This page took 0.031989 seconds and 5 git commands to generate.