Tests: gen-ust-nevents: use options instead of arguments
[lttng-tools.git] / tests / regression / tools / notification / Makefile.am
1 # SPDX-License-Identifier: GPL-2.0-only
2
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
10 noinst_PROGRAMS = base_client notification rotation
11
12 if NO_SHARED
13
14 CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
15 EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app base_client.c notification.c consumer_testpoints.c
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
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)
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
38 rotation_SOURCES = rotation.c
39 rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
40
41 noinst_SCRIPTS = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation
42 EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation
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
This page took 0.029659 seconds and 4 git commands to generate.