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