actions: introduce start session action
[lttng-tools.git] / src / common / Makefile.am
... / ...
CommitLineData
1# SPDX-License-Identifier: GPL-2.0-only
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 = \
10 compat \
11 health \
12 hashtable \
13 kernel-ctl \
14 sessiond-comm \
15 relayd \
16 kernel-consumer \
17 ust-consumer \
18 testpoint \
19 index \
20 config \
21 consumer \
22 string-utils \
23 fd-tracker
24
25# Common library
26noinst_LTLIBRARIES = libcommon.la
27EXTRA_DIST = mi-lttng-4.0.xsd
28
29libcommon_la_SOURCES = \
30 actions/action.c \
31 actions/notify.c \
32 actions/start-session.c \
33 buffer-usage.c \
34 buffer-view.h buffer-view.c \
35 common.h \
36 condition.c \
37 context.c context.h \
38 credentials.h \
39 daemonize.c daemonize.h \
40 defaults.c \
41 dynamic-array.c dynamic-array.h \
42 dynamic-buffer.c dynamic-buffer.h \
43 endpoint.c \
44 error.c error.h \
45 evaluation.c \
46 event.c \
47 filter.c filter.h \
48 fs-handle.c fs-handle.h fs-handle-internal.h \
49 futex.c futex.h \
50 location.c \
51 mi-lttng.c mi-lttng.h \
52 notification.c \
53 optional.h \
54 pipe.c pipe.h \
55 readwrite.c readwrite.h \
56 runas.c runas.h \
57 session-consumed-size.c \
58 session-descriptor.c \
59 session-rotation.c \
60 spawn-viewer.c spawn-viewer.h \
61 time.c \
62 trace-chunk.c trace-chunk.h \
63 trace-chunk-registry.h \
64 trigger.c \
65 unix.c unix.h \
66 uri.c uri.h \
67 userspace-probe.c \
68 utils.c utils.h \
69 uuid.c uuid.h \
70 tracker.c tracker.h \
71 waiter.c waiter.h
72
73if HAVE_ELF_H
74libcommon_la_SOURCES += \
75 lttng-elf.c lttng-elf.h
76endif
77
78libcommon_la_LIBADD = \
79 $(top_builddir)/src/common/config/libconfig.la \
80 $(top_builddir)/src/common/compat/libcompat.la \
81 $(top_builddir)/src/common/hashtable/libhashtable.la \
82 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
83
84if BUILD_LIB_COMPAT
85SUBDIRS += compat
86endif
87
88if BUILD_LIB_HEALTH
89SUBDIRS += health
90endif
91
92if BUILD_LIB_HASHTABLE
93SUBDIRS += hashtable
94endif
95
96if BUILD_LIB_KERNEL_CTL
97SUBDIRS += kernel-ctl
98endif
99
100if BUILD_LIB_SESSIOND_COMM
101SUBDIRS += sessiond-comm
102endif
103
104if BUILD_LIB_RELAYD
105SUBDIRS += relayd
106endif
107
108if BUILD_LIB_FD_TRACKER
109SUBDIRS += fd-tracker
110endif
111
112if BUILD_LIB_KERNEL_CONSUMER
113SUBDIRS += kernel-consumer
114endif
115
116if BUILD_LIB_UST_CONSUMER
117SUBDIRS += ust-consumer
118endif
119
120if BUILD_LIB_TESTPOINT
121SUBDIRS += testpoint
122endif
123
124if BUILD_LIB_INDEX
125SUBDIRS += index
126endif
127
128if BUILD_LIB_CONFIG
129SUBDIRS += config
130endif
131
132if BUILD_LIB_CONSUMER
133SUBDIRS += consumer
134endif
135
136noinst_HEADERS = \
137 align.h \
138 bug.h \
139 defaults.h \
140 error.h \
141 futex.h \
142 lttng-kernel.h \
143 lttng-kernel-old.h \
144 macros.h \
145 time.h \
146 uri.h \
147 utils.h
148
149all-local:
150 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
151 for script in $(EXTRA_DIST); do \
152 cp -f $(srcdir)/$$script $(builddir); \
153 done; \
154 fi
155
156clean-local:
157 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
158 for script in $(EXTRA_DIST); do \
159 rm -f $(builddir)/$$script; \
160 done; \
161 fi
This page took 0.023313 seconds and 4 git commands to generate.