Commit | Line | Data |
---|---|---|
ab5be9fa MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
26821431 MD |
3 | AUTOMAKE_OPTIONS = subdir-objects |
4 | ||
9c55c241 | 5 | SUBDIRS = string-utils |
87fb9fc0 JR |
6 | |
7 | # Make sure to always distribute all folders | |
8 | # since SUBDIRS is decided at configure time. | |
28b6dfc8 SM |
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 | ||
b3f35e02 | 25 | # Common library |
e40c873f | 26 | noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la |
01fac814 | 27 | EXTRA_DIST = mi-lttng-4.0.xsd |
b3f35e02 | 28 | |
04952f7c MD |
29 | # The libcommon-lgpl static archive contains only LGPLv2.1 code. It is |
30 | # meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also | |
31 | # contains libcommon-lgpl.la. | |
32 | libcommon_lgpl_la_SOURCES = \ | |
28b6dfc8 | 33 | action.c \ |
28b6dfc8 | 34 | buffer-view.h buffer-view.c \ |
04952f7c | 35 | buffer-usage.c \ |
33b9609d | 36 | channel.c \ |
28b6dfc8 | 37 | credentials.h \ |
04952f7c | 38 | condition.c \ |
28b6dfc8 SM |
39 | defaults.c \ |
40 | dynamic-array.c dynamic-array.h \ | |
41 | dynamic-buffer.c dynamic-buffer.h \ | |
42 | endpoint.c \ | |
43 | error.c error.h \ | |
44 | evaluation.c \ | |
28b6dfc8 SM |
45 | location.c \ |
46 | mi-lttng.c mi-lttng.h \ | |
47 | notification.c \ | |
48 | notify.c \ | |
28b6dfc8 SM |
49 | readwrite.c readwrite.h \ |
50 | runas.c runas.h \ | |
51 | session-consumed-size.c \ | |
52 | session-descriptor.c \ | |
53 | session-rotation.c \ | |
6457f8e4 | 54 | spawn-viewer.c spawn-viewer.h \ |
28b6dfc8 | 55 | time.c \ |
04952f7c | 56 | tracker.c tracker.h \ |
28b6dfc8 SM |
57 | trigger.c \ |
58 | unix.c unix.h \ | |
59 | uri.c uri.h \ | |
60 | userspace-probe.c \ | |
04952f7c | 61 | utils.c utils.h |
b3f35e02 | 62 | |
b1b34226 | 63 | if HAVE_ELF_H |
04952f7c | 64 | libcommon_lgpl_la_SOURCES += \ |
28b6dfc8 | 65 | lttng-elf.c lttng-elf.h |
b1b34226 MJ |
66 | endif |
67 | ||
04952f7c | 68 | libcommon_lgpl_la_LIBADD = \ |
28b6dfc8 | 69 | $(top_builddir)/src/common/config/libconfig.la \ |
04952f7c MD |
70 | $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la |
71 | ||
e40c873f MD |
72 | # The libpath static archive contains GPLv2 compatible code. It is |
73 | # meant to be used by GPL executables. | |
74 | ||
75 | libpath_la_SOURCES = \ | |
76 | path.c path.h | |
77 | ||
04952f7c MD |
78 | # The libcommon-gpl static archive contains GPLv2 compatible code. It is |
79 | # meant to be used by GPL executables. | |
80 | libcommon_gpl_la_SOURCES = \ | |
81 | common.h \ | |
82 | context.c context.h \ | |
83 | daemonize.c daemonize.h \ | |
84 | event.c \ | |
85 | filter.c filter.h \ | |
86 | fs-handle.c fs-handle.h fs-handle-internal.h \ | |
87 | futex.c futex.h \ | |
88 | optional.h \ | |
89 | pipe.c pipe.h \ | |
90 | trace-chunk.c trace-chunk.h \ | |
91 | trace-chunk-registry.h \ | |
92 | uuid.c uuid.h \ | |
93 | waiter.c waiter.h | |
94 | ||
95 | libcommon_gpl_la_LIBADD = \ | |
96 | -lurcu -lurcu-common \ | |
97 | libcommon-lgpl.la \ | |
e40c873f | 98 | libpath.la \ |
04952f7c | 99 | $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \ |
8bb66c3c | 100 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la |
b3f35e02 | 101 | |
87fb9fc0 JR |
102 | if BUILD_LIB_COMPAT |
103 | SUBDIRS += compat | |
04952f7c MD |
104 | libcommon_lgpl_la_LIBADD += \ |
105 | $(top_builddir)/src/common/compat/libcompat.la | |
87fb9fc0 JR |
106 | endif |
107 | ||
108 | if BUILD_LIB_HEALTH | |
109 | SUBDIRS += health | |
110 | endif | |
111 | ||
112 | if BUILD_LIB_HASHTABLE | |
113 | SUBDIRS += hashtable | |
114 | endif | |
115 | ||
116 | if BUILD_LIB_KERNEL_CTL | |
117 | SUBDIRS += kernel-ctl | |
118 | endif | |
119 | ||
120 | if BUILD_LIB_SESSIOND_COMM | |
121 | SUBDIRS += sessiond-comm | |
122 | endif | |
123 | ||
124 | if BUILD_LIB_RELAYD | |
aa360a35 JG |
125 | SUBDIRS += relayd |
126 | endif | |
127 | ||
128 | if BUILD_LIB_FD_TRACKER | |
129 | SUBDIRS += fd-tracker | |
87fb9fc0 JR |
130 | endif |
131 | ||
132 | if BUILD_LIB_KERNEL_CONSUMER | |
133 | SUBDIRS += kernel-consumer | |
134 | endif | |
135 | ||
136 | if BUILD_LIB_UST_CONSUMER | |
137 | SUBDIRS += ust-consumer | |
138 | endif | |
139 | ||
140 | if BUILD_LIB_TESTPOINT | |
141 | SUBDIRS += testpoint | |
142 | endif | |
143 | ||
144 | if BUILD_LIB_INDEX | |
145 | SUBDIRS += index | |
146 | endif | |
147 | ||
148 | if BUILD_LIB_CONFIG | |
149 | SUBDIRS += config | |
150 | endif | |
151 | ||
152 | if BUILD_LIB_CONSUMER | |
153 | SUBDIRS += consumer | |
154 | endif | |
10a8a223 | 155 | |
28b6dfc8 SM |
156 | noinst_HEADERS = \ |
157 | align.h \ | |
158 | bug.h \ | |
159 | defaults.h \ | |
160 | error.h \ | |
161 | futex.h \ | |
162 | lttng-kernel.h \ | |
163 | lttng-kernel-old.h \ | |
164 | macros.h \ | |
165 | time.h \ | |
166 | uri.h \ | |
167 | utils.h | |
1c39da61 | 168 | |
c49fc5e4 JR |
169 | all-local: |
170 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
171 | for script in $(EXTRA_DIST); do \ | |
172 | cp -f $(srcdir)/$$script $(builddir); \ | |
173 | done; \ | |
174 | fi | |
175 | ||
176 | clean-local: | |
177 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
178 | for script in $(EXTRA_DIST); do \ | |
179 | rm -f $(builddir)/$$script; \ | |
180 | done; \ | |
181 | fi |