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