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
20 if BUILD_LIB_HASHTABLE
24 if BUILD_LIB_KERNEL_CTL
28 if BUILD_LIB_SESSIOND_COMM
29 SUBDIRS += sessiond-comm
36 if BUILD_LIB_KERNEL_CONSUMER
37 SUBDIRS += kernel-consumer
40 if BUILD_LIB_UST_CONSUMER
41 SUBDIRS += ust-consumer
44 if BUILD_LIB_TESTPOINT
60 AM_CFLAGS = -fno-strict-aliasing
62 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
63 uri.h utils.h lttng-kernel-old.h \
64 align.h bitfield.h bug.h
67 noinst_LTLIBRARIES = libcommon.la
68 EXTRA_DIST = mi-lttng-3.0.xsd
70 libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
71 common.h futex.c futex.h uri.c uri.h defaults.c \
72 pipe.c pipe.h readwrite.c readwrite.h \
73 mi-lttng.h mi-lttng.c \
74 daemonize.c daemonize.h \
76 filter.c filter.h context.c context.h
78 libcommon_la_LIBADD = \
81 $(top_builddir)/src/common/config/libconfig.la
84 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
85 for script in $(EXTRA_DIST); do \
86 cp -f $(srcdir)/$$script $(builddir); \
91 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
92 for script in $(EXTRA_DIST); do \
93 rm -f $(builddir)/$$script; \