Move error.h 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 clock.h \
14 creds.h \
15 dynamic-type.h \
16 elf.h \
17 err-ptr.h \
18 events.h \
19 jhash.h \
20 logging.h \
21 macros.h \
22 patient.h \
23 procname.h \
24 safe-snprintf.h \
25 wait.h
26
27 noinst_HEADERS += \
28 compat/dlfcn.h \
29 compat/errno.h \
30 compat/mmap.h \
31 compat/pthread.h \
32 compat/tid.h
33
34 # These headers should be moved to the public headers when tested and
35 # documented. The symbols are still part of the ABI.
36
37 # Used by the Java jni interface.
38 noinst_HEADERS += \
39 ust-context-provider.h
40
41 # Used by liblttng-ust-fd
42 noinst_HEADERS += \
43 ust-fd.h
44
45 ### ###
46 ## Convenience libraries ##
47 ### ###
48
49 noinst_LTLIBRARIES = \
50 libcounter.la \
51 libcompat.la \
52 libmsgpack.la \
53 libringbuffer.la \
54 libsnprintf.la \
55 libcommon.la \
56 libustcomm.la
57
58 # counter
59 libcounter_la_SOURCES = \
60 counter/counter-api.h \
61 counter/counter.c \
62 counter/counter-config.h \
63 counter/counter.h \
64 counter/counter-internal.h \
65 counter/counter-types.h \
66 counter/shm.c \
67 counter/shm.h \
68 counter/shm_internal.h \
69 counter/shm_types.h \
70 counter/smp.c \
71 counter/smp.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/smp.c \
113 ringbuffer/smp.h \
114 ringbuffer/vatomic.h
115
116 libringbuffer_la_LIBADD = \
117 -lrt
118
119 if ENABLE_NUMA
120 libringbuffer_la_LIBADD += -lnuma
121 endif
122
123 libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
124
125 # snprintf
126 libsnprintf_la_SOURCES = \
127 snprintf/fflush.c \
128 snprintf/fileext.h \
129 snprintf/floatio.h \
130 snprintf/fvwrite.c \
131 snprintf/fvwrite.h \
132 snprintf/local.h \
133 snprintf/mbrtowc_sb.c \
134 snprintf/snprintf.c \
135 snprintf/various.h \
136 snprintf/vfprintf.c \
137 snprintf/wcio.h \
138 snprintf/wsetup.c
139
140 # Common library
141 libcommon_la_SOURCES = \
142 getenv.c \
143 getenv.h \
144 logging.c \
145 logging.h \
146 patient.c
147
148 libcommon_la_LIBADD = \
149 libcompat.la \
150 libmsgpack.la \
151 libsnprintf.la
152
153 libustcomm_la_SOURCES = \
154 ustcomm.c \
155 ustcomm.h
156
157 EXTRA_DIST = snprintf/README
This page took 0.034558 seconds and 5 git commands to generate.