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