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