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