X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fclear%2FMakefile.am;h=890974e59a52985f314c428f2dd401b23bf7f8fd;hp=aa700f172dfdaef1c9d44afe94010408cc506320;hb=d8b7ee901bab38f2c8c080b418100111a0ef247f;hpb=05f1df32a7453452765b0a46fb723047815ba2ef diff --git a/tests/regression/tools/clear/Makefile.am b/tests/regression/tools/clear/Makefile.am index aa700f172..890974e59 100644 --- a/tests/regression/tools/clear/Makefile.am +++ b/tests/regression/tools/clear/Makefile.am @@ -1,5 +1,23 @@ -noinst_SCRIPTS = test_kernel test_ust -EXTRA_DIST = test_kernel test_ust +AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(srcdir) +AM_LDFLAGS = + +if NO_SHARED + +CLEANFILES = librelayd_state.so librelayd_state.so.debug +EXTRA_DIST = test_kernel test_ust common_test relayd_state_testpoint.c + +else +# The testpoint library must be built as .so to be able to LD_PRELOAD it. +FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \ + -rpath $(abs_builddir) + +librelayd_state_la_SOURCES = relayd_state_testpoint.c +librelayd_state_la_LIBADD = $(top_builddir)/src/common/libcommon.la $(DL_LIBS) +librelayd_state_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS) +noinst_LTLIBRARIES = librelayd_state.la + +noinst_SCRIPTS = test_kernel test_ust common_test +EXTRA_DIST = test_kernel test_ust common_test all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ @@ -14,3 +32,4 @@ clean-local: rm -f $(builddir)/$$script; \ done; \ fi +endif