Move futex wrapper to 'common/compat/'
[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 dynamic-type.h \
15 elf.h \
16 events.h \
17 logging.h \
18 macros.h \
19 patient.h \
20 procname.h \
21 safe-snprintf.h \
22 wait.h
23
24 noinst_HEADERS += \
25 compat/dlfcn.h \
26 compat/errno.h \
27 compat/mmap.h \
28 compat/pthread.h \
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.
35 noinst_HEADERS += \
36 ust-context-provider.h
37
38 # Used by liblttng-ust-fd
39 noinst_HEADERS += \
40 ust-fd.h
41
42 ### ###
43 ## Convenience libraries ##
44 ### ###
45
46 noinst_LTLIBRARIES = \
47 libcounter.la \
48 libcompat.la \
49 libmsgpack.la \
50 libringbuffer.la \
51 libsnprintf.la \
52 libcommon.la \
53 libustcomm.la
54
55 # counter
56 libcounter_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
70 libcounter_la_LIBADD = -lrt
71
72 if ENABLE_NUMA
73 libcounter_la_LIBADD += -lnuma
74 endif
75
76 libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
77
78 # compat
79 libcompat_la_SOURCES = \
80 compat/futex.c \
81 compat/futex.h
82
83 # msgpack
84 libmsgpack_la_SOURCES = \
85 msgpack/msgpack.c \
86 msgpack/msgpack.h
87
88 libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
89
90 # ringbuffer
91 libringbuffer_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 \
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
113 libringbuffer_la_LIBADD = \
114 -lrt
115
116 if ENABLE_NUMA
117 libringbuffer_la_LIBADD += -lnuma
118 endif
119
120 libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
121
122 # snprintf
123 libsnprintf_la_SOURCES = \
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
138 libcommon_la_SOURCES = \
139 getenv.c \
140 getenv.h \
141 logging.c \
142 logging.h \
143 patient.c
144
145 libcommon_la_LIBADD = \
146 libcompat.la \
147 libmsgpack.la \
148 libsnprintf.la
149
150 libustcomm_la_SOURCES = \
151 ustcomm.c \
152 ustcomm.h
153
154 EXTRA_DIST = snprintf/README
This page took 0.033455 seconds and 5 git commands to generate.