Move libcounter to 'src/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 dynamic-type.h \
14 elf.h \
15 logging.h \
16 macros.h \
17 patient.h \
18 safe-snprintf.h \
19 ustcomm.h
20
21 noinst_HEADERS += \
22 compat/dlfcn.h \
23 compat/tid.h
24
25 # These headers should be moved to the public headers when tested and
26 # documented. The symbols are still part of the ABI.
27
28 # Used by the Java jni interface.
29 noinst_HEADERS += \
30 ust-context-provider.h
31
32 # Used by liblttng-ust-fd
33 noinst_HEADERS += \
34 ust-fd.h
35
36 ### ###
37 ## Convenience libraries ##
38 ### ###
39
40 noinst_LTLIBRARIES = \
41 libcounter.la \
42 msgpack/libmsgpack.la \
43 snprintf/libsnprintf.la \
44 libcommon.la
45
46 # counter
47 libcounter_la_SOURCES = \
48 counter/counter-api.h \
49 counter/counter.c \
50 counter/counter-config.h \
51 counter/counter.h \
52 counter/counter-internal.h \
53 counter/counter-types.h \
54 counter/shm.c \
55 counter/shm.h \
56 counter/shm_internal.h \
57 counter/shm_types.h \
58 counter/smp.c \
59 counter/smp.h
60
61 libcounter_la_LIBADD = -lrt
62
63 if ENABLE_NUMA
64 libcounter_la_LIBADD += -lnuma
65 endif
66
67 libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
68
69 # msgpack
70 msgpack_libmsgpack_la_SOURCES = \
71 msgpack/msgpack.c \
72 msgpack/msgpack.h
73
74 msgpack_libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
75
76 # snprintf
77 snprintf_libsnprintf_la_SOURCES = \
78 snprintf/fflush.c \
79 snprintf/fileext.h \
80 snprintf/floatio.h \
81 snprintf/fvwrite.c \
82 snprintf/fvwrite.h \
83 snprintf/local.h \
84 snprintf/mbrtowc_sb.c \
85 snprintf/snprintf.c \
86 snprintf/various.h \
87 snprintf/vfprintf.c \
88 snprintf/wcio.h \
89 snprintf/wsetup.c
90
91 # Common library
92 libcommon_la_SOURCES = \
93 logging.c \
94 logging.h \
95 patient.c
96
97 libcommon_la_LIBADD = \
98 msgpack/libmsgpack.la \
99 snprintf/libsnprintf.la
100
101 EXTRA_DIST = snprintf/README
This page took 0.03243 seconds and 5 git commands to generate.