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