Introduce lttng_domain_type_str utility
[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 domain.c \
46 dynamic-array.c dynamic-array.h \
47 dynamic-buffer.c dynamic-buffer.h \
48 endpoint.c \
49 error.c error.h \
50 evaluation.c \
51 event.c \
52 event-rule/event-rule.c \
53 event-rule/kprobe.c \
54 event-rule/syscall.c \
55 event-rule/uprobe.c \
56 event-rule/tracepoint.c \
57 filter.c filter.h \
58 fd-handle.c fd-handle.h \
59 fs-handle.c fs-handle.h fs-handle-internal.h \
60 futex.c futex.h \
61 kernel-probe.c \
62 location.c \
63 mi-lttng.c mi-lttng.h \
64 notification.c \
65 optional.h \
66 payload.c payload.h \
67 payload-view.c payload-view.h \
68 pipe.c pipe.h \
69 readwrite.c readwrite.h \
70 runas.c runas.h \
71 session-consumed-size.c \
72 session-descriptor.c \
73 session-rotation.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.050044 seconds and 4 git commands to generate.