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