X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2FMakefile.am;h=ba93810a8c3fe6af5bf8bd7c4188d037de4421ec;hp=37f9acb9ab144b9a7ce711b4062d62a82bc78a4a;hb=fbb2c21aac1386b7752f6254b2bd0bf001fa0ac1;hpb=bcc5eeb02fcad910c4de961b040351dad31b6f9f diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 37f9acb9a..ba93810a8 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -10,6 +10,17 @@ noinst_LTLIBRARIES = libcommon.la libcommon_la_SOURCES = runas.c runas.h common.h +if COMPAT_EPOLL +COMPAT=compat/compat-epoll.c +else +COMPAT=compat/compat-poll.c +endif + +noinst_LTLIBRARIES += libcompat.la + +libcompat_la_SOURCES = compat/poll.h compat/fcntl.h compat/splice.h compat/endian.h \ + compat/socket.h compat/compat-fcntl.c $(COMPAT) + # Consumer library noinst_LTLIBRARIES += libconsumer.la @@ -18,19 +29,10 @@ libconsumer_la_SOURCES = consumer.c consumer.h libconsumer_la_LIBADD = \ $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \ $(top_builddir)/src/common/kernel-consumer/libkernel-consumer.la \ - $(top_builddir)/src/common/hashtable/libhashtable.la + $(top_builddir)/src/common/hashtable/libhashtable.la \ + $(top_builddir)/src/common/libcompat.la if HAVE_LIBLTTNG_UST_CTL libconsumer_la_LIBADD += \ $(top_builddir)/src/common/ust-consumer/libust-consumer.la endif - -if COMPAT_EPOLL -COMPAT=compat/compat-epoll.c -else -COMPAT=compat/compat-poll.c -endif - -noinst_LTLIBRARIES += libcompat.la - -libcompat_la_SOURCES = compat/poll.h $(COMPAT)