| 1 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src |
| 2 | |
| 3 | AUTOMAKE_OPTIONS = subdir-objects |
| 4 | |
| 5 | SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \ |
| 6 | kernel-consumer ust-consumer testpoint index config |
| 7 | |
| 8 | AM_CFLAGS = -fno-strict-aliasing |
| 9 | |
| 10 | noinst_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 |
| 16 | noinst_LTLIBRARIES = libcommon.la |
| 17 | EXTRA_DIST = mi_lttng.xsd |
| 18 | |
| 19 | libcommon_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 | |
| 26 | libcommon_la_LIBADD = \ |
| 27 | -luuid \ |
| 28 | -lrt \ |
| 29 | $(top_builddir)/src/common/config/libconfig.la |
| 30 | |
| 31 | # Consumer library |
| 32 | noinst_LTLIBRARIES += libconsumer.la |
| 33 | |
| 34 | libconsumer_la_SOURCES = consumer.c consumer.h consumer-metadata-cache.c \ |
| 35 | consumer-timer.c consumer-stream.c consumer-stream.h |
| 36 | |
| 37 | libconsumer_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 | |
| 44 | if HAVE_LIBLTTNG_UST_CTL |
| 45 | libconsumer_la_LIBADD += \ |
| 46 | $(top_builddir)/src/common/ust-consumer/libust-consumer.la |
| 47 | endif |
| 48 | |
| 49 | all-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 | |
| 56 | clean-local: |
| 57 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 58 | for script in $(EXTRA_DIST); do \ |
| 59 | rm -f $(builddir)/$$script; \ |
| 60 | done; \ |
| 61 | fi |