1 AUTOMAKE_OPTIONS = subdir-objects
5 # Make sure to always distribute all folders
6 # since SUBDIRS is decided at configure time.
7 DIST_SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \
8 kernel-consumer ust-consumer testpoint index config consumer \
12 noinst_LTLIBRARIES = libcommon.la
13 EXTRA_DIST = mi-lttng-3.0.xsd
15 libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.h runas.c \
16 common.h futex.c futex.h uri.c uri.h defaults.c \
17 pipe.c pipe.h readwrite.c readwrite.h \
18 mi-lttng.h mi-lttng.c \
19 daemonize.c daemonize.h \
21 filter.c filter.h context.c context.h \
22 action.c notify.c condition.c buffer-usage.c \
23 session-consumed-size.c \
25 evaluation.c notification.c trigger.c endpoint.c \
26 dynamic-buffer.h dynamic-buffer.c \
27 buffer-view.h buffer-view.c \
30 userspace-probe.c event.c time.c \
31 session-descriptor.c credentials.h \
32 trace-chunk.c trace-chunk.h trace-chunk-registry.h \
33 dynamic-array.h dynamic-array.c optional.h
36 libcommon_la_SOURCES += lttng-elf.h lttng-elf.c
39 libcommon_la_LIBADD = \
40 $(top_builddir)/src/common/config/libconfig.la \
41 $(top_builddir)/src/common/compat/libcompat.la \
42 $(top_builddir)/src/common/hashtable/libhashtable.la \
53 if BUILD_LIB_HASHTABLE
57 if BUILD_LIB_KERNEL_CTL
61 if BUILD_LIB_SESSIOND_COMM
62 SUBDIRS += sessiond-comm
69 if BUILD_LIB_KERNEL_CONSUMER
70 SUBDIRS += kernel-consumer
73 if BUILD_LIB_UST_CONSUMER
74 SUBDIRS += ust-consumer
77 if BUILD_LIB_TESTPOINT
93 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
94 uri.h utils.h lttng-kernel-old.h \
98 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
99 for script in $(EXTRA_DIST); do \
100 cp -f $(srcdir)/$$script $(builddir); \
105 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
106 for script in $(EXTRA_DIST); do \
107 rm -f $(builddir)/$$script; \