Move libustcomm to 'src/common/'
[lttng-ust.git] / src / common / Makefile.am
index 276c06a58d5e71e30a08b591caf71edbd3d976ef..fdbbc05c7bd4cf7188cfd6701eee7d6473dc9aff 100644 (file)
@@ -1,5 +1,7 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
+AUTOMAKE_OPTIONS = subdir-objects
+
 ###                        ###
 ### Global private headers ###
 ###                        ###
@@ -13,8 +15,7 @@ noinst_HEADERS = \
        logging.h \
        macros.h \
        patient.h \
-       safe-snprintf.h \
-       ustcomm.h
+       safe-snprintf.h
 
 noinst_HEADERS += \
        compat/dlfcn.h \
@@ -30,3 +31,110 @@ noinst_HEADERS += \
 # Used by liblttng-ust-fd
 noinst_HEADERS += \
        ust-fd.h
+
+###                      ###
+##  Convenience libraries ##
+###                      ###
+
+noinst_LTLIBRARIES = \
+       libcounter.la \
+       msgpack/libmsgpack.la \
+       libringbuffer.la \
+       snprintf/libsnprintf.la \
+       libcommon.la \
+       libustcomm.la
+
+# counter
+libcounter_la_SOURCES = \
+       counter/counter-api.h \
+       counter/counter.c \
+       counter/counter-config.h \
+       counter/counter.h \
+       counter/counter-internal.h \
+       counter/counter-types.h \
+       counter/shm.c \
+       counter/shm.h \
+       counter/shm_internal.h \
+       counter/shm_types.h \
+       counter/smp.c \
+       counter/smp.h
+
+libcounter_la_LIBADD = -lrt
+
+if ENABLE_NUMA
+libcounter_la_LIBADD += -lnuma
+endif
+
+libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS)
+
+# msgpack
+msgpack_libmsgpack_la_SOURCES = \
+       msgpack/msgpack.c \
+       msgpack/msgpack.h
+
+msgpack_libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS)
+
+# ringbuffer
+libringbuffer_la_SOURCES = \
+       ringbuffer/api.h \
+       ringbuffer/backend.h \
+       ringbuffer/backend_internal.h \
+       ringbuffer/backend_types.h \
+       ringbuffer/frontend_api.h \
+       ringbuffer/frontend.h \
+       ringbuffer/frontend_internal.h \
+       ringbuffer/frontend_types.h \
+       ringbuffer/getcpu.h \
+       ringbuffer/mmap.h \
+       ringbuffer/nohz.h \
+       ringbuffer/rb-init.h \
+       ringbuffer/ring_buffer_backend.c \
+       ringbuffer/ringbuffer-config.h \
+       ringbuffer/ring_buffer_frontend.c \
+       ringbuffer/shm.c \
+       ringbuffer/shm.h \
+       ringbuffer/shm_internal.h \
+       ringbuffer/shm_types.h \
+       ringbuffer/smp.c \
+       ringbuffer/smp.h \
+       ringbuffer/vatomic.h
+
+libringbuffer_la_LIBADD = \
+       -lrt
+
+if ENABLE_NUMA
+libringbuffer_la_LIBADD += -lnuma
+endif
+
+libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)
+
+# snprintf
+snprintf_libsnprintf_la_SOURCES = \
+       snprintf/fflush.c \
+       snprintf/fileext.h \
+       snprintf/floatio.h \
+       snprintf/fvwrite.c \
+       snprintf/fvwrite.h \
+       snprintf/local.h \
+       snprintf/mbrtowc_sb.c \
+       snprintf/snprintf.c \
+       snprintf/various.h \
+       snprintf/vfprintf.c \
+       snprintf/wcio.h \
+       snprintf/wsetup.c
+
+# Common library
+libcommon_la_SOURCES = \
+       logging.c \
+       logging.h \
+       patient.c
+
+libcommon_la_LIBADD = \
+       msgpack/libmsgpack.la \
+       snprintf/libsnprintf.la
+
+libustcomm_la_SOURCES = \
+       ustcomm.c \
+       ustcomm.h
+
+EXTRA_DIST = snprintf/README
This page took 0.025143 seconds and 4 git commands to generate.