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