Move libustcomm to 'src/common/'
[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 dynamic-type.h \
14 elf.h \
15 logging.h \
16 macros.h \
17 patient.h \
18 safe-snprintf.h
19
20 noinst_HEADERS += \
21 compat/dlfcn.h \
22 compat/tid.h
23
24 # These headers should be moved to the public headers when tested and
25 # documented. The symbols are still part of the ABI.
26
27 # Used by the Java jni interface.
28 noinst_HEADERS += \
29 ust-context-provider.h
30
31 # Used by liblttng-ust-fd
32 noinst_HEADERS += \
33 ust-fd.h
34
35 ### ###
36 ## Convenience libraries ##
37 ### ###
38
39 noinst_LTLIBRARIES = \
40 libcounter.la \
41 msgpack/libmsgpack.la \
42 libringbuffer.la \
43 snprintf/libsnprintf.la \
44 libcommon.la \
45 libustcomm.la
46
47 # counter
48 libcounter_la_SOURCES = \
49 counter/counter-api.h \
50 counter/counter.c \
51 counter/counter-config.h \
52 counter/counter.h \
53 counter/counter-internal.h \
54 counter/counter-types.h \
55 counter/shm.c \
56 counter/shm.h \
57 counter/shm_internal.h \
58 counter/shm_types.h \
59 counter/smp.c \
60 counter/smp.h
61
62 libcounter_la_LIBADD = -lrt
63
64 if ENABLE_NUMA
65 libcounter_la_LIBADD += -lnuma
66 endif
67
68 libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
69
70 # msgpack
71 msgpack_libmsgpack_la_SOURCES = \
72 msgpack/msgpack.c \
73 msgpack/msgpack.h
74
75 msgpack_libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
76
77 # ringbuffer
78 libringbuffer_la_SOURCES = \
79 ringbuffer/api.h \
80 ringbuffer/backend.h \
81 ringbuffer/backend_internal.h \
82 ringbuffer/backend_types.h \
83 ringbuffer/frontend_api.h \
84 ringbuffer/frontend.h \
85 ringbuffer/frontend_internal.h \
86 ringbuffer/frontend_types.h \
87 ringbuffer/getcpu.h \
88 ringbuffer/mmap.h \
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
102 libringbuffer_la_LIBADD = \
103 -lrt
104
105 if ENABLE_NUMA
106 libringbuffer_la_LIBADD += -lnuma
107 endif
108
109 libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
110
111 # snprintf
112 snprintf_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
127 libcommon_la_SOURCES = \
128 logging.c \
129 logging.h \
130 patient.c
131
132 libcommon_la_LIBADD = \
133 msgpack/libmsgpack.la \
134 snprintf/libsnprintf.la
135
136 libustcomm_la_SOURCES = \
137 ustcomm.c \
138 ustcomm.h
139
140 EXTRA_DIST = snprintf/README
This page took 0.033179 seconds and 5 git commands to generate.