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