Split and move compat.h 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 \
13 dynamic-type.h \
14 elf.h \
15 logging.h \
16 macros.h \
17 patient.h \
27b98e6c 18 procname.h \
67534785 19 safe-snprintf.h
9d315d6d
MJ
20
21noinst_HEADERS += \
22 compat/dlfcn.h \
27b98e6c 23 compat/errno.h \
1be43539 24 compat/mmap.h \
27b98e6c 25 compat/pthread.h \
9d315d6d
MJ
26 compat/tid.h
27
28# These headers should be moved to the public headers when tested and
29# documented. The symbols are still part of the ABI.
30
31# Used by the Java jni interface.
32noinst_HEADERS += \
33 ust-context-provider.h
34
35# Used by liblttng-ust-fd
36noinst_HEADERS += \
37 ust-fd.h
d8621b3e
MJ
38
39### ###
40## Convenience libraries ##
41### ###
42
43noinst_LTLIBRARIES = \
cdff92e0 44 libcounter.la \
c3ba99c2 45 msgpack/libmsgpack.la \
e4db8f98 46 libringbuffer.la \
d8621b3e 47 snprintf/libsnprintf.la \
67534785
MJ
48 libcommon.la \
49 libustcomm.la
d8621b3e 50
cdff92e0
MJ
51# counter
52libcounter_la_SOURCES = \
53 counter/counter-api.h \
54 counter/counter.c \
55 counter/counter-config.h \
56 counter/counter.h \
57 counter/counter-internal.h \
58 counter/counter-types.h \
59 counter/shm.c \
60 counter/shm.h \
61 counter/shm_internal.h \
62 counter/shm_types.h \
63 counter/smp.c \
64 counter/smp.h
65
66libcounter_la_LIBADD = -lrt
67
68if ENABLE_NUMA
69libcounter_la_LIBADD += -lnuma
70endif
71
72libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
73
c3ba99c2
MJ
74# msgpack
75msgpack_libmsgpack_la_SOURCES = \
76 msgpack/msgpack.c \
77 msgpack/msgpack.h
78
79msgpack_libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
80
e4db8f98
MJ
81# ringbuffer
82libringbuffer_la_SOURCES = \
83 ringbuffer/api.h \
84 ringbuffer/backend.h \
85 ringbuffer/backend_internal.h \
86 ringbuffer/backend_types.h \
87 ringbuffer/frontend_api.h \
88 ringbuffer/frontend.h \
89 ringbuffer/frontend_internal.h \
90 ringbuffer/frontend_types.h \
91 ringbuffer/getcpu.h \
e4db8f98
MJ
92 ringbuffer/nohz.h \
93 ringbuffer/rb-init.h \
94 ringbuffer/ring_buffer_backend.c \
95 ringbuffer/ringbuffer-config.h \
96 ringbuffer/ring_buffer_frontend.c \
97 ringbuffer/shm.c \
98 ringbuffer/shm.h \
99 ringbuffer/shm_internal.h \
100 ringbuffer/shm_types.h \
101 ringbuffer/smp.c \
102 ringbuffer/smp.h \
103 ringbuffer/vatomic.h
104
105libringbuffer_la_LIBADD = \
106 -lrt
107
108if ENABLE_NUMA
109libringbuffer_la_LIBADD += -lnuma
110endif
111
112libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
113
d8621b3e
MJ
114# snprintf
115snprintf_libsnprintf_la_SOURCES = \
116 snprintf/fflush.c \
117 snprintf/fileext.h \
118 snprintf/floatio.h \
119 snprintf/fvwrite.c \
120 snprintf/fvwrite.h \
121 snprintf/local.h \
122 snprintf/mbrtowc_sb.c \
123 snprintf/snprintf.c \
124 snprintf/various.h \
125 snprintf/vfprintf.c \
126 snprintf/wcio.h \
127 snprintf/wsetup.c
128
129# Common library
130libcommon_la_SOURCES = \
131 logging.c \
132 logging.h \
133 patient.c
134
135libcommon_la_LIBADD = \
c3ba99c2 136 msgpack/libmsgpack.la \
d8621b3e
MJ
137 snprintf/libsnprintf.la
138
67534785
MJ
139libustcomm_la_SOURCES = \
140 ustcomm.c \
141 ustcomm.h
142
d8621b3e 143EXTRA_DIST = snprintf/README
This page took 0.028493 seconds and 4 git commands to generate.