1 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(srcdir)
6 CLEANFILES = librelayd_state.so librelayd_state.so.debug
7 EXTRA_DIST = test_kernel test_ust common_test relayd_state_testpoint.c
10 # The testpoint library must be built as .so to be able to LD_PRELOAD it.
11 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
12 -rpath $(abs_builddir)
14 librelayd_state_la_SOURCES = relayd_state_testpoint.c
15 librelayd_state_la_LIBADD = $(top_builddir)/src/common/libcommon.la $(DL_LIBS)
16 librelayd_state_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
17 noinst_LTLIBRARIES = librelayd_state.la
19 noinst_SCRIPTS = test_kernel test_ust common_test
20 EXTRA_DIST = test_kernel test_ust common_test
23 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
24 for script in $(EXTRA_DIST); do \
25 cp -f $(srcdir)/$$script $(builddir); \
30 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
31 for script in $(EXTRA_DIST); do \
32 rm -f $(builddir)/$$script; \