1 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
3 AUTOMAKE_OPTIONS = subdir-objects
7 # Make sure to always distribute all folders
8 # since SUBDIRS is decided at configure time.
9 DIST_SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \
10 kernel-consumer ust-consumer testpoint index config consumer \
21 if BUILD_LIB_HASHTABLE
25 if BUILD_LIB_KERNEL_CTL
29 if BUILD_LIB_SESSIOND_COMM
30 SUBDIRS += sessiond-comm
37 if BUILD_LIB_KERNEL_CONSUMER
38 SUBDIRS += kernel-consumer
41 if BUILD_LIB_UST_CONSUMER
42 SUBDIRS += ust-consumer
45 if BUILD_LIB_TESTPOINT
61 AM_CFLAGS = -fno-strict-aliasing
63 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
64 uri.h utils.h lttng-kernel-old.h \
65 align.h bitfield.h bug.h time.h
68 noinst_LTLIBRARIES = libcommon.la
69 EXTRA_DIST = mi-lttng-3.0.xsd
71 libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
72 common.h futex.c futex.h uri.c uri.h defaults.c \
73 pipe.c pipe.h readwrite.c readwrite.h \
74 mi-lttng.h mi-lttng.c \
75 daemonize.c daemonize.h \
77 filter.c filter.h context.c context.h \
78 action.c notify.c condition.c buffer-usage.c \
79 evaluation.c notification.c trigger.c endpoint.c \
80 dynamic-buffer.h dynamic-buffer.c \
81 buffer-view.h buffer-view.c
83 libcommon_la_LIBADD = \
84 $(top_builddir)/src/common/config/libconfig.la
85 if LTTNG_BUILD_WITH_LIBUUID
86 libcommon_la_LIBADD += -luuid
88 if LTTNG_BUILD_WITH_LIBC_UUID
89 libcommon_la_LIBADD += -lc
93 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
94 for script in $(EXTRA_DIST); do \
95 cp -f $(srcdir)/$$script $(builddir); \
100 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
101 for script in $(EXTRA_DIST); do \
102 rm -f $(builddir)/$$script; \