Commit | Line | Data |
---|---|---|
f9c59cd0 | 1 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src |
10a8a223 | 2 | |
26821431 MD |
3 | AUTOMAKE_OPTIONS = subdir-objects |
4 | ||
87fb9fc0 JR |
5 | SUBDIRS = |
6 | ||
7 | # Make sure to always distribute all folders | |
8 | # since SUBDIRS is decided at configure time. | |
9 | DIST_SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \ | |
10 | kernel-consumer ust-consumer testpoint index config consumer | |
11 | ||
12 | if BUILD_LIB_COMPAT | |
13 | SUBDIRS += compat | |
14 | endif | |
15 | ||
16 | if BUILD_LIB_HEALTH | |
17 | SUBDIRS += health | |
18 | endif | |
19 | ||
20 | if BUILD_LIB_HASHTABLE | |
21 | SUBDIRS += hashtable | |
22 | endif | |
23 | ||
24 | if BUILD_LIB_KERNEL_CTL | |
25 | SUBDIRS += kernel-ctl | |
26 | endif | |
27 | ||
28 | if BUILD_LIB_SESSIOND_COMM | |
29 | SUBDIRS += sessiond-comm | |
30 | endif | |
31 | ||
32 | if BUILD_LIB_RELAYD | |
33 | SUBDIRS += relayd | |
34 | endif | |
35 | ||
36 | if BUILD_LIB_KERNEL_CONSUMER | |
37 | SUBDIRS += kernel-consumer | |
38 | endif | |
39 | ||
40 | if BUILD_LIB_UST_CONSUMER | |
41 | SUBDIRS += ust-consumer | |
42 | endif | |
43 | ||
44 | if BUILD_LIB_TESTPOINT | |
45 | SUBDIRS += testpoint | |
46 | endif | |
47 | ||
48 | if BUILD_LIB_INDEX | |
49 | SUBDIRS += index | |
50 | endif | |
51 | ||
52 | if BUILD_LIB_CONFIG | |
53 | SUBDIRS += config | |
54 | endif | |
55 | ||
56 | if BUILD_LIB_CONSUMER | |
57 | SUBDIRS += consumer | |
58 | endif | |
10a8a223 DG |
59 | |
60 | AM_CFLAGS = -fno-strict-aliasing | |
61 | ||
0b5fb049 | 62 | noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \ |
331744e3 | 63 | uri.h utils.h lttng-kernel-old.h \ |
395d6b02 | 64 | align.h bitfield.h bug.h time.h |
1c39da61 | 65 | |
00e2e675 | 66 | # Common library |
10a8a223 | 67 | noinst_LTLIBRARIES = libcommon.la |
654f9f5e | 68 | EXTRA_DIST = mi-lttng-3.0.xsd |
10a8a223 | 69 | |
6242251b | 70 | libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \ |
9fd92637 | 71 | common.h futex.c futex.h uri.c uri.h defaults.c \ |
99ed9c43 | 72 | pipe.c pipe.h readwrite.c readwrite.h \ |
c7e35b03 | 73 | mi-lttng.h mi-lttng.c \ |
7567352f | 74 | daemonize.c daemonize.h \ |
2038dd6c | 75 | unix.c unix.h \ |
71a559f8 | 76 | filter.c filter.h context.c context.h |
7567352f | 77 | |
c7e35b03 | 78 | libcommon_la_LIBADD = \ |
c7e35b03 | 79 | $(top_builddir)/src/common/config/libconfig.la |
81ba8833 MJ |
80 | if LTTNG_BUILD_WITH_LIBUUID |
81 | libcommon_la_LIBADD += -luuid | |
82 | endif | |
83 | if LTTNG_BUILD_WITH_LIBC_UUID | |
84 | libcommon_la_LIBADD += -lc | |
85 | endif | |
10a8a223 | 86 | |
c49fc5e4 JR |
87 | all-local: |
88 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
89 | for script in $(EXTRA_DIST); do \ | |
90 | cp -f $(srcdir)/$$script $(builddir); \ | |
91 | done; \ | |
92 | fi | |
93 | ||
94 | clean-local: | |
95 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
96 | for script in $(EXTRA_DIST); do \ | |
97 | rm -f $(builddir)/$$script; \ | |
98 | done; \ | |
99 | fi |