Cleanup: uuid library detection
[lttng-tools.git] / tests / regression / tools / notification / Makefile.am
CommitLineData
434f8068
JR
1AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(top_srcdir)/tests/utils/ -I$(srcdir)
2AM_LDFLAGS =
3
4
5LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
6LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
7
8noinst_PROGRAMS = base_client notification
9
10if NO_SHARED
11
12CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
13EXTRA_DIST = test_notification test_notification_multi_app base_client.c notification.c consumer_testpoints.c
14
15else
16
17# In order to test the health check feature, the helper library
18# must be built as .so to be able to LD_PRELOAD it.
19FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
20 -rpath $(abs_builddir)
21
22libpause_consumer_la_SOURCES = consumer_testpoints.c
23libpause_consumer_la_LIBADD = $(top_builddir)/src/common/libcommon.la
24libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
25noinst_LTLIBRARIES = libpause_consumer.la
26
27base_client_SOURCES = base_client.c
28base_client_LDADD = $(LIB_LTTNG_CTL)
29
30notification_SOURCES = notification.c
31notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
32
33if LTTNG_TOOLS_BUILD_WITH_LIBDL
34LIBS += -ldl
35endif
36if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
37LIBS += -lc
38endif
39
40noinst_SCRIPTS = test_notification test_notification_multi_app
41EXTRA_DIST = test_notification test_notification_multi_app
42
43
44all-local:
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
46 for script in $(EXTRA_DIST); do \
47 cp -f $(srcdir)/$$script $(builddir); \
48 done; \
49 fi
50
51clean-local:
52 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
53 for script in $(EXTRA_DIST); do \
54 rm -f $(builddir)/$$script; \
55 done; \
56 fi
57endif
This page took 0.025677 seconds and 4 git commands to generate.