docs: Correct GitHub URLs in lttng-ust.3
[lttng-ust.git] / src / common / Makefile.am
1 # SPDX-FileCopyrightText: 2023 EfficiOS, Inc
2 #
3 # SPDX-License-Identifier: LGPL-2.1-only
4
5 AUTOMAKE_OPTIONS = subdir-objects
6
7 ### ###
8 ### Global private headers ###
9 ### ###
10
11 noinst_HEADERS = \
12 align.h \
13 bitfield.h \
14 bitmap.h \
15 clock.h \
16 creds.h \
17 err-ptr.h \
18 events.h \
19 getcpu.h \
20 hash.h \
21 jhash.h \
22 logging.h \
23 macros.h \
24 ns.h \
25 patient.h \
26 procname.h \
27 safe-snprintf.h \
28 tracepoint.h \
29 tracer.h \
30 wait.h
31
32 noinst_HEADERS += \
33 compat/dlfcn.h \
34 compat/errno.h \
35 compat/mmap.h \
36 compat/pthread.h \
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
49
50 ### ###
51 ## Convenience libraries ##
52 ### ###
53
54 noinst_LTLIBRARIES = \
55 libcounter.la \
56 libcounter-clients.la \
57 libmsgpack.la \
58 libringbuffer.la \
59 libringbuffer-clients.la \
60 libsnprintf.la \
61 libcommon.la \
62 libustcomm.la
63
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 \
75 counter/shm_types.h
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
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
94 # msgpack
95 libmsgpack_la_SOURCES = \
96 msgpack/msgpack.c \
97 msgpack/msgpack.h
98
99 libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
100
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 \
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 \
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
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
145 # snprintf
146 libsnprintf_la_SOURCES = \
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 = \
162 core.c \
163 dynamic-type.c \
164 dynamic-type.h \
165 elf.c \
166 elf.h \
167 events.c \
168 getenv.c \
169 getenv.h \
170 logging.c \
171 logging.h \
172 smp.c \
173 smp.h \
174 populate.c \
175 populate.h \
176 strutils.c \
177 strutils.h \
178 utils.c \
179 utils.h \
180 patient.c
181
182 libcommon_la_LIBADD = \
183 libmsgpack.la \
184 libsnprintf.la
185
186 libustcomm_la_SOURCES = \
187 ustcomm.c \
188 ustcomm.h
189
190 EXTRA_DIST = snprintf/README.md
This page took 0.035042 seconds and 4 git commands to generate.