Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
434f8068 JR |
3 | AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(top_srcdir)/tests/utils/ -I$(srcdir) |
4 | AM_LDFLAGS = | |
5 | ||
6 | ||
7 | LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la | |
8 | LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la | |
9 | ||
88a5c0a9 | 10 | noinst_PROGRAMS = base_client notification rotation |
434f8068 JR |
11 | |
12 | if NO_SHARED | |
13 | ||
14 | CLEANFILES = libpause_consumer.so libpause_consumer.so.debug | |
854382b8 | 15 | EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app base_client.c notification.c consumer_testpoints.c |
434f8068 JR |
16 | |
17 | else | |
18 | ||
19 | # In order to test the health check feature, the helper library | |
20 | # must be built as .so to be able to LD_PRELOAD it. | |
21 | FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \ | |
22 | -rpath $(abs_builddir) | |
23 | ||
24 | libpause_consumer_la_SOURCES = consumer_testpoints.c | |
f667fbd7 MJ |
25 | libpause_consumer_la_LIBADD = \ |
26 | $(top_builddir)/src/common/libcommon.la \ | |
27 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ | |
28 | $(DL_LIBS) | |
434f8068 JR |
29 | libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS) |
30 | noinst_LTLIBRARIES = libpause_consumer.la | |
31 | ||
32 | base_client_SOURCES = base_client.c | |
33 | base_client_LDADD = $(LIB_LTTNG_CTL) | |
34 | ||
35 | notification_SOURCES = notification.c | |
36 | notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm | |
37 | ||
88a5c0a9 JG |
38 | rotation_SOURCES = rotation.c |
39 | rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm | |
40 | ||
f0a442d0 | 41 | noinst_SCRIPTS = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation |
88a5c0a9 | 42 | EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation |
434f8068 JR |
43 | |
44 | ||
45 | all-local: | |
46 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
47 | for script in $(EXTRA_DIST); do \ | |
48 | cp -f $(srcdir)/$$script $(builddir); \ | |
49 | done; \ | |
50 | fi | |
51 | ||
52 | clean-local: | |
53 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
54 | for script in $(EXTRA_DIST); do \ | |
55 | rm -f $(builddir)/$$script; \ | |
56 | done; \ | |
57 | fi | |
58 | endif |