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