X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2FMakefile.am;h=6e155f7dca3848991b74e5c97a555b86a2044a71;hb=c6e6343c93e1b6ec02de1f9dc825faae0d6cc7ab;hp=419561eb1d2bd7499330ca428e95782152a42cde;hpb=c3ba99c2fb06e6ac4e5921f580c26d61afc53917;p=lttng-ust.git diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 419561eb..6e155f7d 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -15,11 +15,14 @@ noinst_HEADERS = \ logging.h \ macros.h \ patient.h \ - safe-snprintf.h \ - ustcomm.h + procname.h \ + safe-snprintf.h noinst_HEADERS += \ compat/dlfcn.h \ + compat/errno.h \ + compat/mmap.h \ + compat/pthread.h \ compat/tid.h # These headers should be moved to the public headers when tested and @@ -38,19 +41,78 @@ noinst_HEADERS += \ ### ### noinst_LTLIBRARIES = \ - msgpack/libmsgpack.la \ - snprintf/libsnprintf.la \ - libcommon.la + libcounter.la \ + libmsgpack.la \ + libringbuffer.la \ + 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 = \ +libmsgpack_la_SOURCES = \ msgpack/msgpack.c \ msgpack/msgpack.h -msgpack_libmsgpack_la_CFLAGS = -DUST_COMPONENT="libmsgpack" $(AM_CFLAGS) +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/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 = \ +libsnprintf_la_SOURCES = \ snprintf/fflush.c \ snprintf/fileext.h \ snprintf/floatio.h \ @@ -71,7 +133,11 @@ libcommon_la_SOURCES = \ patient.c libcommon_la_LIBADD = \ - msgpack/libmsgpack.la \ - snprintf/libsnprintf.la + libmsgpack.la \ + libsnprintf.la + +libustcomm_la_SOURCES = \ + ustcomm.c \ + ustcomm.h EXTRA_DIST = snprintf/README