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