Fix: pthread_join on thread start error
[lttng-tools.git] / src / common / Makefile.am
... / ...
CommitLineData
1AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
2
3AUTOMAKE_OPTIONS = subdir-objects
4
5SUBDIRS = string-utils
6
7# Make sure to always distribute all folders
8# since SUBDIRS is decided at configure time.
9DIST_SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \
10 kernel-consumer ust-consumer testpoint index config consumer \
11 string-utils
12
13if BUILD_LIB_COMPAT
14SUBDIRS += compat
15endif
16
17if BUILD_LIB_HEALTH
18SUBDIRS += health
19endif
20
21if BUILD_LIB_HASHTABLE
22SUBDIRS += hashtable
23endif
24
25if BUILD_LIB_KERNEL_CTL
26SUBDIRS += kernel-ctl
27endif
28
29if BUILD_LIB_SESSIOND_COMM
30SUBDIRS += sessiond-comm
31endif
32
33if BUILD_LIB_RELAYD
34SUBDIRS += relayd
35endif
36
37if BUILD_LIB_KERNEL_CONSUMER
38SUBDIRS += kernel-consumer
39endif
40
41if BUILD_LIB_UST_CONSUMER
42SUBDIRS += ust-consumer
43endif
44
45if BUILD_LIB_TESTPOINT
46SUBDIRS += testpoint
47endif
48
49if BUILD_LIB_INDEX
50SUBDIRS += index
51endif
52
53if BUILD_LIB_CONFIG
54SUBDIRS += config
55endif
56
57if BUILD_LIB_CONSUMER
58SUBDIRS += consumer
59endif
60
61AM_CFLAGS = -fno-strict-aliasing
62
63noinst_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
66
67# Common library
68noinst_LTLIBRARIES = libcommon.la
69EXTRA_DIST = mi-lttng-3.0.xsd
70
71libcommon_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 \
76 unix.c unix.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
82
83libcommon_la_LIBADD = \
84 $(top_builddir)/src/common/config/libconfig.la
85if LTTNG_BUILD_WITH_LIBUUID
86libcommon_la_LIBADD += -luuid
87endif
88if LTTNG_BUILD_WITH_LIBC_UUID
89libcommon_la_LIBADD += -lc
90endif
91
92all-local:
93 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
94 for script in $(EXTRA_DIST); do \
95 cp -f $(srcdir)/$$script $(builddir); \
96 done; \
97 fi
98
99clean-local:
100 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
101 for script in $(EXTRA_DIST); do \
102 rm -f $(builddir)/$$script; \
103 done; \
104 fi
This page took 0.023365 seconds and 4 git commands to generate.