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