Commit | Line | Data |
---|---|---|
74130cb7 | 1 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src |
10a8a223 | 2 | |
26821431 MD |
3 | AUTOMAKE_OPTIONS = subdir-objects |
4 | ||
55d09795 | 5 | SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \ |
bac6245e | 6 | kernel-consumer ust-consumer testpoint index config |
10a8a223 DG |
7 | |
8 | AM_CFLAGS = -fno-strict-aliasing | |
9 | ||
0b5fb049 | 10 | noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \ |
331744e3 | 11 | uri.h utils.h lttng-kernel-old.h \ |
2d57de81 | 12 | consumer-metadata-cache.h consumer-timer.h \ |
0618d922 | 13 | consumer-testpoint.h align.h bitfield.h bug.h |
1c39da61 | 14 | |
00e2e675 | 15 | # Common library |
10a8a223 | 16 | noinst_LTLIBRARIES = libcommon.la |
2f99314e | 17 | EXTRA_DIST = mi_lttng.xsd |
10a8a223 | 18 | |
6242251b | 19 | libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \ |
9fd92637 | 20 | common.h futex.c futex.h uri.c uri.h defaults.c \ |
99ed9c43 | 21 | pipe.c pipe.h readwrite.c readwrite.h \ |
c7e35b03 | 22 | mi-lttng.h mi-lttng.c \ |
7567352f MD |
23 | daemonize.c daemonize.h \ |
24 | sessiond-comm/unix.c sessiond-comm/unix.h | |
25 | ||
c7e35b03 JR |
26 | libcommon_la_LIBADD = \ |
27 | -luuid \ | |
28 | -lrt \ | |
29 | $(top_builddir)/src/common/config/libconfig.la | |
10a8a223 DG |
30 | |
31 | # Consumer library | |
32 | noinst_LTLIBRARIES += libconsumer.la | |
33 | ||
331744e3 | 34 | libconsumer_la_SOURCES = consumer.c consumer.h consumer-metadata-cache.c \ |
51230d70 | 35 | consumer-timer.c consumer-stream.c consumer-stream.h |
10a8a223 DG |
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 \ | |
b9182dd9 | 40 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
00e2e675 DG |
41 | $(top_builddir)/src/common/compat/libcompat.la \ |
42 | $(top_builddir)/src/common/relayd/librelayd.la | |
10a8a223 DG |
43 | |
44 | if HAVE_LIBLTTNG_UST_CTL | |
45 | libconsumer_la_LIBADD += \ | |
46 | $(top_builddir)/src/common/ust-consumer/libust-consumer.la | |
47 | endif | |
c49fc5e4 JR |
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 |