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