Move liblttng-ust-pthread-wrapper to 'src/lib/'
[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 \
6abdf6dc 14 creds.h \
9d315d6d
MJ
15 dynamic-type.h \
16 elf.h \
9c4fe08d 17 err-ptr.h \
36c52fff 18 events.h \
cecabda8 19 hash.h \
e58e5ad5 20 jhash.h \
9d315d6d
MJ
21 logging.h \
22 macros.h \
c5e8ef85 23 ns.h \
9d315d6d 24 patient.h \
27b98e6c 25 procname.h \
6bd9392e 26 safe-snprintf.h \
8f51c684 27 tracepoint.h \
6bd9392e 28 wait.h
9d315d6d
MJ
29
30noinst_HEADERS += \
31 compat/dlfcn.h \
27b98e6c 32 compat/errno.h \
1be43539 33 compat/mmap.h \
27b98e6c 34 compat/pthread.h \
9d315d6d
MJ
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.
41noinst_HEADERS += \
42 ust-context-provider.h
43
44# Used by liblttng-ust-fd
45noinst_HEADERS += \
46 ust-fd.h
d8621b3e
MJ
47
48### ###
49## Convenience libraries ##
50### ###
51
52noinst_LTLIBRARIES = \
cdff92e0 53 libcounter.la \
58f84478 54 libcompat.la \
635ead38 55 libmsgpack.la \
e4db8f98 56 libringbuffer.la \
635ead38 57 libsnprintf.la \
67534785
MJ
58 libcommon.la \
59 libustcomm.la
d8621b3e 60
cdff92e0
MJ
61# counter
62libcounter_la_SOURCES = \
63 counter/counter-api.h \
64 counter/counter.c \
65 counter/counter-config.h \
66 counter/counter.h \
67 counter/counter-internal.h \
68 counter/counter-types.h \
69 counter/shm.c \
70 counter/shm.h \
71 counter/shm_internal.h \
72 counter/shm_types.h \
73 counter/smp.c \
74 counter/smp.h
75
76libcounter_la_LIBADD = -lrt
77
78if ENABLE_NUMA
79libcounter_la_LIBADD += -lnuma
80endif
81
82libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
83
58f84478
MJ
84# compat
85libcompat_la_SOURCES = \
86 compat/futex.c \
87 compat/futex.h
88
c3ba99c2 89# msgpack
635ead38 90libmsgpack_la_SOURCES = \
c3ba99c2
MJ
91 msgpack/msgpack.c \
92 msgpack/msgpack.h
93
635ead38 94libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
c3ba99c2 95
e4db8f98
MJ
96# ringbuffer
97libringbuffer_la_SOURCES = \
98 ringbuffer/api.h \
99 ringbuffer/backend.h \
100 ringbuffer/backend_internal.h \
101 ringbuffer/backend_types.h \
102 ringbuffer/frontend_api.h \
103 ringbuffer/frontend.h \
104 ringbuffer/frontend_internal.h \
105 ringbuffer/frontend_types.h \
e4db8f98
MJ
106 ringbuffer/nohz.h \
107 ringbuffer/rb-init.h \
108 ringbuffer/ring_buffer_backend.c \
109 ringbuffer/ringbuffer-config.h \
110 ringbuffer/ring_buffer_frontend.c \
111 ringbuffer/shm.c \
112 ringbuffer/shm.h \
113 ringbuffer/shm_internal.h \
114 ringbuffer/shm_types.h \
115 ringbuffer/smp.c \
116 ringbuffer/smp.h \
117 ringbuffer/vatomic.h
118
119libringbuffer_la_LIBADD = \
120 -lrt
121
122if ENABLE_NUMA
123libringbuffer_la_LIBADD += -lnuma
124endif
125
126libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
127
d8621b3e 128# snprintf
635ead38 129libsnprintf_la_SOURCES = \
d8621b3e
MJ
130 snprintf/fflush.c \
131 snprintf/fileext.h \
132 snprintf/floatio.h \
133 snprintf/fvwrite.c \
134 snprintf/fvwrite.h \
135 snprintf/local.h \
136 snprintf/mbrtowc_sb.c \
137 snprintf/snprintf.c \
138 snprintf/various.h \
139 snprintf/vfprintf.c \
140 snprintf/wcio.h \
141 snprintf/wsetup.c
142
143# Common library
144libcommon_la_SOURCES = \
910dcd72
MJ
145 getenv.c \
146 getenv.h \
d8621b3e
MJ
147 logging.c \
148 logging.h \
b8aa6f43
MJ
149 strutils.c \
150 strutils.h \
d8621b3e
MJ
151 patient.c
152
153libcommon_la_LIBADD = \
58f84478 154 libcompat.la \
635ead38
MJ
155 libmsgpack.la \
156 libsnprintf.la
d8621b3e 157
67534785
MJ
158libustcomm_la_SOURCES = \
159 ustcomm.c \
160 ustcomm.h
161
d8621b3e 162EXTRA_DIST = snprintf/README
This page took 0.029969 seconds and 4 git commands to generate.