X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2FMakefile.am;h=5c48dc0661d5f8cf48fb41f00fcd1ddbed6e2e41;hb=4d4838bad480d48424bddc686f5ad0089e28ac94;hp=2fe76816b4964d850cb6251272a337c0bb01d617;hpb=1d4981969313da002983ca979bd85c95493f7316;p=lttng-ust.git diff --git a/libringbuffer/Makefile.am b/libringbuffer/Makefile.am index 2fe76816..5c48dc06 100644 --- a/libringbuffer/Makefile.am +++ b/libringbuffer/Makefile.am @@ -1,22 +1,24 @@ -AM_CPPFLAGS = -I$(top_srcdir)/include -AM_CFLAGS = -fno-strict-aliasing +AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_CFLAGS += -fno-strict-aliasing -lib_LTLIBRARIES = libringbuffer.la - -noinst_HEADERS = \ - smp.h +noinst_LTLIBRARIES = libringbuffer.la libringbuffer_la_SOURCES = \ - shm.c \ - smp.c \ + smp.h smp.c getcpu.h \ + shm.c shm.h shm_types.h shm_internal.h \ ring_buffer_backend.c \ - ring_buffer_frontend.c - -libringbuffer_la_LDFLAGS = -no-undefined -version-info 0:0:0 + ring_buffer_frontend.c \ + api.h mmap.h \ + backend.h backend_internal.h backend_types.h \ + frontend_api.h frontend.h frontend_internal.h frontend_types.h \ + nohz.h vatomic.h rb-init.h libringbuffer_la_LIBADD = \ -lpthread \ - -lrt \ - $(top_builddir)/snprintf/libustsnprintf.la + -lrt + +if HAVE_LIBNUMA +libringbuffer_la_LIBADD += -lnuma +endif -libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" -fno-strict-aliasing +libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)