Fix: Hide readwrite symbols in common lib
[lttng-tools.git] / src / common / Makefile.am
... / ...
CommitLineData
1AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
2
3SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \
4 kernel-consumer ust-consumer testpoint index config
5
6AM_CFLAGS = -fno-strict-aliasing
7
8noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
9 uri.h utils.h lttng-kernel-old.h \
10 consumer-metadata-cache.h consumer-timer.h \
11 consumer-testpoint.h align.h bitfield.h bug.h
12
13# Common library
14noinst_LTLIBRARIES = libcommon.la
15EXTRA_DIST = mi_lttng.xsd
16
17libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
18 common.h futex.c futex.h uri.c uri.h defaults.c \
19 pipe.c pipe.h readwrite.c readwrite.h \
20 mi-lttng.h mi-lttng.c \
21 daemonize.c daemonize.h
22libcommon_la_LIBADD = \
23 -luuid \
24 -lrt \
25 $(top_builddir)/src/common/config/libconfig.la
26
27# Consumer library
28noinst_LTLIBRARIES += libconsumer.la
29
30libconsumer_la_SOURCES = consumer.c consumer.h consumer-metadata-cache.c \
31 consumer-timer.c consumer-stream.c consumer-stream.h
32
33libconsumer_la_LIBADD = \
34 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
35 $(top_builddir)/src/common/kernel-consumer/libkernel-consumer.la \
36 $(top_builddir)/src/common/hashtable/libhashtable.la \
37 $(top_builddir)/src/common/compat/libcompat.la \
38 $(top_builddir)/src/common/relayd/librelayd.la
39
40if HAVE_LIBLTTNG_UST_CTL
41libconsumer_la_LIBADD += \
42 $(top_builddir)/src/common/ust-consumer/libust-consumer.la
43endif
44
45all-local:
46 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
47 for script in $(EXTRA_DIST); do \
48 cp -f $(srcdir)/$$script $(builddir); \
49 done; \
50 fi
51
52clean-local:
53 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
54 for script in $(EXTRA_DIST); do \
55 rm -f $(builddir)/$$script; \
56 done; \
57 fi
This page took 0.024054 seconds and 5 git commands to generate.