Move futex wrapper to 'common/compat/'
[lttng-ust.git] / src / common / Makefile.am
CommitLineData
9d315d6d
MJ
1# SPDX-License-Identifier: LGPL-2.1-only
2
d8621b3e
MJ
3AUTOMAKE_OPTIONS = subdir-objects
4
9d315d6d
MJ
5### ###
6### Global private headers ###
7### ###
8
9noinst_HEADERS = \
10 align.h \
11 bitfield.h \
12 bitmap.h \
5ef57f0b 13 clock.h \
9d315d6d
MJ
14 dynamic-type.h \
15 elf.h \
36c52fff 16 events.h \
9d315d6d
MJ
17 logging.h \
18 macros.h \
19 patient.h \
27b98e6c 20 procname.h \
6bd9392e
MJ
21 safe-snprintf.h \
22 wait.h
9d315d6d
MJ
23
24noinst_HEADERS += \
25 compat/dlfcn.h \
27b98e6c 26 compat/errno.h \
1be43539 27 compat/mmap.h \
27b98e6c 28 compat/pthread.h \
9d315d6d
MJ
29 compat/tid.h
30
31# These headers should be moved to the public headers when tested and
32# documented. The symbols are still part of the ABI.
33
34# Used by the Java jni interface.
35noinst_HEADERS += \
36 ust-context-provider.h
37
38# Used by liblttng-ust-fd
39noinst_HEADERS += \
40 ust-fd.h
d8621b3e
MJ
41
42### ###
43## Convenience libraries ##
44### ###
45
46noinst_LTLIBRARIES = \
cdff92e0 47 libcounter.la \
58f84478 48 libcompat.la \
635ead38 49 libmsgpack.la \
e4db8f98 50 libringbuffer.la \
635ead38 51 libsnprintf.la \
67534785
MJ
52 libcommon.la \
53 libustcomm.la
d8621b3e 54
cdff92e0
MJ
55# counter
56libcounter_la_SOURCES = \
57 counter/counter-api.h \
58 counter/counter.c \
59 counter/counter-config.h \
60 counter/counter.h \
61 counter/counter-internal.h \
62 counter/counter-types.h \
63 counter/shm.c \
64 counter/shm.h \
65 counter/shm_internal.h \
66 counter/shm_types.h \
67 counter/smp.c \
68 counter/smp.h
69
70libcounter_la_LIBADD = -lrt
71
72if ENABLE_NUMA
73libcounter_la_LIBADD += -lnuma
74endif
75
76libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
77
58f84478
MJ
78# compat
79libcompat_la_SOURCES = \
80 compat/futex.c \
81 compat/futex.h
82
c3ba99c2 83# msgpack
635ead38 84libmsgpack_la_SOURCES = \
c3ba99c2
MJ
85 msgpack/msgpack.c \
86 msgpack/msgpack.h
87
635ead38 88libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
c3ba99c2 89
e4db8f98
MJ
90# ringbuffer
91libringbuffer_la_SOURCES = \
92 ringbuffer/api.h \
93 ringbuffer/backend.h \
94 ringbuffer/backend_internal.h \
95 ringbuffer/backend_types.h \
96 ringbuffer/frontend_api.h \
97 ringbuffer/frontend.h \
98 ringbuffer/frontend_internal.h \
99 ringbuffer/frontend_types.h \
e4db8f98
MJ
100 ringbuffer/nohz.h \
101 ringbuffer/rb-init.h \
102 ringbuffer/ring_buffer_backend.c \
103 ringbuffer/ringbuffer-config.h \
104 ringbuffer/ring_buffer_frontend.c \
105 ringbuffer/shm.c \
106 ringbuffer/shm.h \
107 ringbuffer/shm_internal.h \
108 ringbuffer/shm_types.h \
109 ringbuffer/smp.c \
110 ringbuffer/smp.h \
111 ringbuffer/vatomic.h
112
113libringbuffer_la_LIBADD = \
114 -lrt
115
116if ENABLE_NUMA
117libringbuffer_la_LIBADD += -lnuma
118endif
119
120libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
121
d8621b3e 122# snprintf
635ead38 123libsnprintf_la_SOURCES = \
d8621b3e
MJ
124 snprintf/fflush.c \
125 snprintf/fileext.h \
126 snprintf/floatio.h \
127 snprintf/fvwrite.c \
128 snprintf/fvwrite.h \
129 snprintf/local.h \
130 snprintf/mbrtowc_sb.c \
131 snprintf/snprintf.c \
132 snprintf/various.h \
133 snprintf/vfprintf.c \
134 snprintf/wcio.h \
135 snprintf/wsetup.c
136
137# Common library
138libcommon_la_SOURCES = \
910dcd72
MJ
139 getenv.c \
140 getenv.h \
d8621b3e
MJ
141 logging.c \
142 logging.h \
143 patient.c
144
145libcommon_la_LIBADD = \
58f84478 146 libcompat.la \
635ead38
MJ
147 libmsgpack.la \
148 libsnprintf.la
d8621b3e 149
67534785
MJ
150libustcomm_la_SOURCES = \
151 ustcomm.c \
152 ustcomm.h
153
d8621b3e 154EXTRA_DIST = snprintf/README
This page took 0.030009 seconds and 4 git commands to generate.