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