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