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