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