Commit | Line | Data |
---|---|---|
e03d7c66 MJ |
1 | # SPDX-FileCopyrightText: 2023 EfficiOS, Inc |
2 | # | |
9d315d6d MJ |
3 | # SPDX-License-Identifier: LGPL-2.1-only |
4 | ||
d8621b3e MJ |
5 | AUTOMAKE_OPTIONS = subdir-objects |
6 | ||
9d315d6d MJ |
7 | ### ### |
8 | ### Global private headers ### | |
9 | ### ### | |
10 | ||
11 | noinst_HEADERS = \ | |
12 | align.h \ | |
13 | bitfield.h \ | |
14 | bitmap.h \ | |
5ef57f0b | 15 | clock.h \ |
6abdf6dc | 16 | creds.h \ |
9c4fe08d | 17 | err-ptr.h \ |
36c52fff | 18 | events.h \ |
f73bcf5e | 19 | getcpu.h \ |
cecabda8 | 20 | hash.h \ |
e58e5ad5 | 21 | jhash.h \ |
9d315d6d MJ |
22 | logging.h \ |
23 | macros.h \ | |
c5e8ef85 | 24 | ns.h \ |
9d315d6d | 25 | patient.h \ |
27b98e6c | 26 | procname.h \ |
6bd9392e | 27 | safe-snprintf.h \ |
8f51c684 | 28 | tracepoint.h \ |
8cd08025 | 29 | tracer.h \ |
6bd9392e | 30 | wait.h |
9d315d6d MJ |
31 | |
32 | noinst_HEADERS += \ | |
33 | compat/dlfcn.h \ | |
27b98e6c | 34 | compat/errno.h \ |
1be43539 | 35 | compat/mmap.h \ |
27b98e6c | 36 | compat/pthread.h \ |
9d315d6d MJ |
37 | compat/tid.h |
38 | ||
39 | # These headers should be moved to the public headers when tested and | |
40 | # documented. The symbols are still part of the ABI. | |
41 | ||
42 | # Used by the Java jni interface. | |
43 | noinst_HEADERS += \ | |
44 | ust-context-provider.h | |
45 | ||
46 | # Used by liblttng-ust-fd | |
47 | noinst_HEADERS += \ | |
48 | ust-fd.h | |
d8621b3e MJ |
49 | |
50 | ### ### | |
51 | ## Convenience libraries ## | |
52 | ### ### | |
53 | ||
54 | noinst_LTLIBRARIES = \ | |
cdff92e0 | 55 | libcounter.la \ |
8cd08025 | 56 | libcounter-clients.la \ |
635ead38 | 57 | libmsgpack.la \ |
e4db8f98 | 58 | libringbuffer.la \ |
8cd08025 | 59 | libringbuffer-clients.la \ |
635ead38 | 60 | libsnprintf.la \ |
67534785 MJ |
61 | libcommon.la \ |
62 | libustcomm.la | |
d8621b3e | 63 | |
cdff92e0 MJ |
64 | # counter |
65 | libcounter_la_SOURCES = \ | |
66 | counter/counter-api.h \ | |
67 | counter/counter.c \ | |
68 | counter/counter-config.h \ | |
69 | counter/counter.h \ | |
70 | counter/counter-internal.h \ | |
71 | counter/counter-types.h \ | |
72 | counter/shm.c \ | |
73 | counter/shm.h \ | |
74 | counter/shm_internal.h \ | |
74cc1f59 | 75 | counter/shm_types.h |
cdff92e0 MJ |
76 | |
77 | libcounter_la_LIBADD = -lrt | |
78 | ||
79 | if ENABLE_NUMA | |
80 | libcounter_la_LIBADD += -lnuma | |
81 | endif | |
82 | ||
83 | libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS) | |
84 | ||
8cd08025 MJ |
85 | # counter-clients |
86 | libcounter_clients_la_SOURCES = \ | |
87 | counter-clients/clients.c \ | |
88 | counter-clients/clients.h \ | |
89 | counter-clients/percpu-32-modular.c \ | |
90 | counter-clients/percpu-64-modular.c | |
91 | ||
92 | libcounter_clients_la_CFLAGS = -DUST_COMPONENT="libcounter-clients" $(AM_CFLAGS) | |
93 | ||
c3ba99c2 | 94 | # msgpack |
635ead38 | 95 | libmsgpack_la_SOURCES = \ |
c3ba99c2 MJ |
96 | msgpack/msgpack.c \ |
97 | msgpack/msgpack.h | |
98 | ||
635ead38 | 99 | libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS) |
c3ba99c2 | 100 | |
e4db8f98 MJ |
101 | # ringbuffer |
102 | libringbuffer_la_SOURCES = \ | |
103 | ringbuffer/api.h \ | |
104 | ringbuffer/backend.h \ | |
105 | ringbuffer/backend_internal.h \ | |
106 | ringbuffer/backend_types.h \ | |
107 | ringbuffer/frontend_api.h \ | |
108 | ringbuffer/frontend.h \ | |
109 | ringbuffer/frontend_internal.h \ | |
110 | ringbuffer/frontend_types.h \ | |
e4db8f98 MJ |
111 | ringbuffer/nohz.h \ |
112 | ringbuffer/rb-init.h \ | |
113 | ringbuffer/ring_buffer_backend.c \ | |
114 | ringbuffer/ringbuffer-config.h \ | |
115 | ringbuffer/ring_buffer_frontend.c \ | |
116 | ringbuffer/shm.c \ | |
117 | ringbuffer/shm.h \ | |
118 | ringbuffer/shm_internal.h \ | |
119 | ringbuffer/shm_types.h \ | |
e4db8f98 MJ |
120 | ringbuffer/vatomic.h |
121 | ||
122 | libringbuffer_la_LIBADD = \ | |
123 | -lrt | |
124 | ||
125 | if ENABLE_NUMA | |
126 | libringbuffer_la_LIBADD += -lnuma | |
127 | endif | |
128 | ||
129 | libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS) | |
130 | ||
8cd08025 MJ |
131 | # ringbuffer-client |
132 | libringbuffer_clients_la_SOURCES = \ | |
133 | ringbuffer-clients/clients.c \ | |
134 | ringbuffer-clients/clients.h \ | |
135 | ringbuffer-clients/discard.c \ | |
136 | ringbuffer-clients/discard-rt.c \ | |
137 | ringbuffer-clients/metadata.c \ | |
138 | ringbuffer-clients/metadata-template.h \ | |
139 | ringbuffer-clients/overwrite.c \ | |
140 | ringbuffer-clients/overwrite-rt.c \ | |
141 | ringbuffer-clients/template.h | |
142 | ||
143 | libringbuffer_clients_la_CFLAGS = -DUST_COMPONENT="libringbuffer-clients" $(AM_CFLAGS) | |
144 | ||
d8621b3e | 145 | # snprintf |
635ead38 | 146 | libsnprintf_la_SOURCES = \ |
d8621b3e MJ |
147 | snprintf/fflush.c \ |
148 | snprintf/fileext.h \ | |
149 | snprintf/floatio.h \ | |
150 | snprintf/fvwrite.c \ | |
151 | snprintf/fvwrite.h \ | |
152 | snprintf/local.h \ | |
153 | snprintf/mbrtowc_sb.c \ | |
154 | snprintf/snprintf.c \ | |
155 | snprintf/various.h \ | |
156 | snprintf/vfprintf.c \ | |
157 | snprintf/wcio.h \ | |
158 | snprintf/wsetup.c | |
159 | ||
160 | # Common library | |
161 | libcommon_la_SOURCES = \ | |
8cd08025 | 162 | core.c \ |
f78f3df1 MJ |
163 | dynamic-type.c \ |
164 | dynamic-type.h \ | |
4667b192 MJ |
165 | elf.c \ |
166 | elf.h \ | |
810185f3 | 167 | events.c \ |
910dcd72 MJ |
168 | getenv.c \ |
169 | getenv.h \ | |
d8621b3e MJ |
170 | logging.c \ |
171 | logging.h \ | |
74cc1f59 MJ |
172 | smp.c \ |
173 | smp.h \ | |
b8aa6f43 MJ |
174 | strutils.c \ |
175 | strutils.h \ | |
4667b192 MJ |
176 | utils.c \ |
177 | utils.h \ | |
d8621b3e MJ |
178 | patient.c |
179 | ||
180 | libcommon_la_LIBADD = \ | |
635ead38 MJ |
181 | libmsgpack.la \ |
182 | libsnprintf.la | |
d8621b3e | 183 | |
67534785 MJ |
184 | libustcomm_la_SOURCES = \ |
185 | ustcomm.c \ | |
186 | ustcomm.h | |
187 | ||
d8621b3e | 188 | EXTRA_DIST = snprintf/README |