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 \
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 \
32 libcommon_la_LIBADD = \
33 $(top_builddir)/src/common/config/libconfig.la \
37 libcommon_la_SOURCES += runas.c lttng-elf.h lttng-elf.c
39 libcommon_la_SOURCES += runas-stub.c
43 libcommon_la_SOURCES += unix.c
45 libcommon_la_SOURCES += unix-stub.c
56 if BUILD_LIB_HASHTABLE
60 if BUILD_LIB_KERNEL_CTL
64 if BUILD_LIB_SESSIOND_COMM
65 SUBDIRS += sessiond-comm
72 if BUILD_LIB_KERNEL_CONSUMER
73 SUBDIRS += kernel-consumer
76 if BUILD_LIB_UST_CONSUMER
77 SUBDIRS += ust-consumer
80 if BUILD_LIB_TESTPOINT
96 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
97 uri.h utils.h lttng-kernel-old.h \
98 align.h bitfield.h bug.h time.h
101 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
102 for script in $(EXTRA_DIST); do \
103 cp -f $(srcdir)/$$script $(builddir); \
108 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
109 for script in $(EXTRA_DIST); do \
110 rm -f $(builddir)/$$script; \