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