Move ns.h to 'src/common/'
[lttng-ust.git] / src / common / Makefile.am
CommitLineData
9d315d6d
MJ
1# SPDX-License-Identifier: LGPL-2.1-only
2
d8621b3e
MJ
3AUTOMAKE_OPTIONS = subdir-objects
4
9d315d6d
MJ
5### ###
6### Global private headers ###
7### ###
8
9noinst_HEADERS = \
10 align.h \
11 bitfield.h \
12 bitmap.h \
5ef57f0b 13 clock.h \
6abdf6dc 14 creds.h \
9d315d6d
MJ
15 dynamic-type.h \
16 elf.h \
9c4fe08d 17 err-ptr.h \
36c52fff 18 events.h \
cecabda8 19 hash.h \
e58e5ad5 20 jhash.h \
9d315d6d
MJ
21 logging.h \
22 macros.h \
c5e8ef85 23 ns.h \
9d315d6d 24 patient.h \
27b98e6c 25 procname.h \
6bd9392e
MJ
26 safe-snprintf.h \
27 wait.h
9d315d6d
MJ
28
29noinst_HEADERS += \
30 compat/dlfcn.h \
27b98e6c 31 compat/errno.h \
1be43539 32 compat/mmap.h \
27b98e6c 33 compat/pthread.h \
9d315d6d
MJ
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.
40noinst_HEADERS += \
41 ust-context-provider.h
42
43# Used by liblttng-ust-fd
44noinst_HEADERS += \
45 ust-fd.h
d8621b3e
MJ
46
47### ###
48## Convenience libraries ##
49### ###
50
51noinst_LTLIBRARIES = \
cdff92e0 52 libcounter.la \
58f84478 53 libcompat.la \
635ead38 54 libmsgpack.la \
e4db8f98 55 libringbuffer.la \
635ead38 56 libsnprintf.la \
67534785
MJ
57 libcommon.la \
58 libustcomm.la
d8621b3e 59
cdff92e0
MJ
60# counter
61libcounter_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 counter/smp.c \
73 counter/smp.h
74
75libcounter_la_LIBADD = -lrt
76
77if ENABLE_NUMA
78libcounter_la_LIBADD += -lnuma
79endif
80
81libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
82
58f84478
MJ
83# compat
84libcompat_la_SOURCES = \
85 compat/futex.c \
86 compat/futex.h
87
c3ba99c2 88# msgpack
635ead38 89libmsgpack_la_SOURCES = \
c3ba99c2
MJ
90 msgpack/msgpack.c \
91 msgpack/msgpack.h
92
635ead38 93libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
c3ba99c2 94
e4db8f98
MJ
95# ringbuffer
96libringbuffer_la_SOURCES = \
97 ringbuffer/api.h \
98 ringbuffer/backend.h \
99 ringbuffer/backend_internal.h \
100 ringbuffer/backend_types.h \
101 ringbuffer/frontend_api.h \
102 ringbuffer/frontend.h \
103 ringbuffer/frontend_internal.h \
104 ringbuffer/frontend_types.h \
e4db8f98
MJ
105 ringbuffer/nohz.h \
106 ringbuffer/rb-init.h \
107 ringbuffer/ring_buffer_backend.c \
108 ringbuffer/ringbuffer-config.h \
109 ringbuffer/ring_buffer_frontend.c \
110 ringbuffer/shm.c \
111 ringbuffer/shm.h \
112 ringbuffer/shm_internal.h \
113 ringbuffer/shm_types.h \
114 ringbuffer/smp.c \
115 ringbuffer/smp.h \
116 ringbuffer/vatomic.h
117
118libringbuffer_la_LIBADD = \
119 -lrt
120
121if ENABLE_NUMA
122libringbuffer_la_LIBADD += -lnuma
123endif
124
125libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
126
d8621b3e 127# snprintf
635ead38 128libsnprintf_la_SOURCES = \
d8621b3e
MJ
129 snprintf/fflush.c \
130 snprintf/fileext.h \
131 snprintf/floatio.h \
132 snprintf/fvwrite.c \
133 snprintf/fvwrite.h \
134 snprintf/local.h \
135 snprintf/mbrtowc_sb.c \
136 snprintf/snprintf.c \
137 snprintf/various.h \
138 snprintf/vfprintf.c \
139 snprintf/wcio.h \
140 snprintf/wsetup.c
141
142# Common library
143libcommon_la_SOURCES = \
910dcd72
MJ
144 getenv.c \
145 getenv.h \
d8621b3e
MJ
146 logging.c \
147 logging.h \
148 patient.c
149
150libcommon_la_LIBADD = \
58f84478 151 libcompat.la \
635ead38
MJ
152 libmsgpack.la \
153 libsnprintf.la
d8621b3e 154
67534785
MJ
155libustcomm_la_SOURCES = \
156 ustcomm.c \
157 ustcomm.h
158
d8621b3e 159EXTRA_DIST = snprintf/README
This page took 0.0307 seconds and 4 git commands to generate.