Remove duplicated 'smp' code
[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
74 libcounter_la_LIBADD = -lrt
75
76 if ENABLE_NUMA
77 libcounter_la_LIBADD += -lnuma
78 endif
79
80 libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
81
82 # compat
83 libcompat_la_SOURCES = \
84 compat/futex.c \
85 compat/futex.h
86
87 # msgpack
88 libmsgpack_la_SOURCES = \
89 msgpack/msgpack.c \
90 msgpack/msgpack.h
91
92 libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
93
94 # ringbuffer
95 libringbuffer_la_SOURCES = \
96 ringbuffer/api.h \
97 ringbuffer/backend.h \
98 ringbuffer/backend_internal.h \
99 ringbuffer/backend_types.h \
100 ringbuffer/frontend_api.h \
101 ringbuffer/frontend.h \
102 ringbuffer/frontend_internal.h \
103 ringbuffer/frontend_types.h \
104 ringbuffer/nohz.h \
105 ringbuffer/rb-init.h \
106 ringbuffer/ring_buffer_backend.c \
107 ringbuffer/ringbuffer-config.h \
108 ringbuffer/ring_buffer_frontend.c \
109 ringbuffer/shm.c \
110 ringbuffer/shm.h \
111 ringbuffer/shm_internal.h \
112 ringbuffer/shm_types.h \
113 ringbuffer/vatomic.h
114
115 libringbuffer_la_LIBADD = \
116 -lrt
117
118 if ENABLE_NUMA
119 libringbuffer_la_LIBADD += -lnuma
120 endif
121
122 libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
123
124 # snprintf
125 libsnprintf_la_SOURCES = \
126 snprintf/fflush.c \
127 snprintf/fileext.h \
128 snprintf/floatio.h \
129 snprintf/fvwrite.c \
130 snprintf/fvwrite.h \
131 snprintf/local.h \
132 snprintf/mbrtowc_sb.c \
133 snprintf/snprintf.c \
134 snprintf/various.h \
135 snprintf/vfprintf.c \
136 snprintf/wcio.h \
137 snprintf/wsetup.c
138
139 # Common library
140 libcommon_la_SOURCES = \
141 getenv.c \
142 getenv.h \
143 logging.c \
144 logging.h \
145 smp.c \
146 smp.h \
147 strutils.c \
148 strutils.h \
149 patient.c
150
151 libcommon_la_LIBADD = \
152 libcompat.la \
153 libmsgpack.la \
154 libsnprintf.la
155
156 libustcomm_la_SOURCES = \
157 ustcomm.c \
158 ustcomm.h
159
160 EXTRA_DIST = snprintf/README
This page took 0.033868 seconds and 5 git commands to generate.