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