1 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
3 AUTOMAKE_OPTIONS = subdir-objects
5 SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \
6 kernel-consumer ust-consumer testpoint index config
8 AM_CFLAGS = -fno-strict-aliasing
10 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
11 uri.h utils.h lttng-kernel-old.h \
12 consumer-metadata-cache.h consumer-timer.h \
13 consumer-testpoint.h align.h bitfield.h bug.h
16 noinst_LTLIBRARIES = libcommon.la
17 EXTRA_DIST = mi_lttng.xsd
19 libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
20 common.h futex.c futex.h uri.c uri.h defaults.c \
21 pipe.c pipe.h readwrite.c readwrite.h \
22 mi-lttng.h mi-lttng.c \
23 daemonize.c daemonize.h \
24 sessiond-comm/unix.c sessiond-comm/unix.h
26 libcommon_la_LIBADD = \
29 $(top_builddir)/src/common/config/libconfig.la
32 noinst_LTLIBRARIES += libconsumer.la
34 libconsumer_la_SOURCES = consumer.c consumer.h consumer-metadata-cache.c \
35 consumer-timer.c consumer-stream.c consumer-stream.h
37 libconsumer_la_LIBADD = \
38 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
39 $(top_builddir)/src/common/kernel-consumer/libkernel-consumer.la \
40 $(top_builddir)/src/common/hashtable/libhashtable.la \
41 $(top_builddir)/src/common/compat/libcompat.la \
42 $(top_builddir)/src/common/relayd/librelayd.la
44 if HAVE_LIBLTTNG_UST_CTL
45 libconsumer_la_LIBADD += \
46 $(top_builddir)/src/common/ust-consumer/libust-consumer.la
50 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
51 for script in $(EXTRA_DIST); do \
52 cp -f $(srcdir)/$$script $(builddir); \
57 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
58 for script in $(EXTRA_DIST); do \
59 rm -f $(builddir)/$$script; \