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