f39aeaa5f430b05b3b0788e2a69f3d9542a8645c
[lttng-tools.git] / src / common / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 SUBDIRS = string-utils
4
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 \
9 string-utils
10
11 if BUILD_LIB_COMPAT
12 SUBDIRS += compat
13 endif
14
15 if BUILD_LIB_HEALTH
16 SUBDIRS += health
17 endif
18
19 if BUILD_LIB_HASHTABLE
20 SUBDIRS += hashtable
21 endif
22
23 if BUILD_LIB_KERNEL_CTL
24 SUBDIRS += kernel-ctl
25 endif
26
27 if BUILD_LIB_SESSIOND_COMM
28 SUBDIRS += sessiond-comm
29 endif
30
31 if BUILD_LIB_RELAYD
32 SUBDIRS += relayd
33 endif
34
35 if BUILD_LIB_KERNEL_CONSUMER
36 SUBDIRS += kernel-consumer
37 endif
38
39 if BUILD_LIB_UST_CONSUMER
40 SUBDIRS += ust-consumer
41 endif
42
43 if BUILD_LIB_TESTPOINT
44 SUBDIRS += testpoint
45 endif
46
47 if BUILD_LIB_INDEX
48 SUBDIRS += index
49 endif
50
51 if BUILD_LIB_CONFIG
52 SUBDIRS += config
53 endif
54
55 if BUILD_LIB_CONSUMER
56 SUBDIRS += consumer
57 endif
58
59 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
60 uri.h utils.h lttng-kernel-old.h \
61 align.h bitfield.h bug.h time.h
62
63 # Common library
64 noinst_LTLIBRARIES = libcommon.la
65 EXTRA_DIST = mi-lttng-3.0.xsd
66
67 libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
68 common.h futex.c futex.h uri.c uri.h defaults.c \
69 pipe.c pipe.h readwrite.c readwrite.h \
70 mi-lttng.h mi-lttng.c \
71 daemonize.c daemonize.h \
72 unix.c unix.h \
73 filter.c filter.h context.c context.h \
74 action.c notify.c condition.c buffer-usage.c \
75 session-consumed-size.c \
76 session-rotation.c \
77 evaluation.c notification.c trigger.c endpoint.c \
78 dynamic-buffer.h dynamic-buffer.c \
79 buffer-view.h buffer-view.c \
80 location.c \
81 waiter.h waiter.c
82
83 libcommon_la_LIBADD = \
84 $(top_builddir)/src/common/config/libconfig.la \
85 $(UUID_LIBS)
86
87 all-local:
88 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
89 for script in $(EXTRA_DIST); do \
90 cp -f $(srcdir)/$$script $(builddir); \
91 done; \
92 fi
93
94 clean-local:
95 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
96 for script in $(EXTRA_DIST); do \
97 rm -f $(builddir)/$$script; \
98 done; \
99 fi
This page took 0.03046 seconds and 3 git commands to generate.