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