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