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