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 | |
b3f35e02 FD |
10 | # |
11 | # Common library | |
12 | noinst_LTLIBRARIES = libcommon.la | |
13 | EXTRA_DIST = mi-lttng-3.0.xsd | |
14 | ||
241e0a5a | 15 | libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.h \ |
b3f35e02 FD |
16 | common.h futex.c futex.h uri.c uri.h defaults.c \ |
17 | pipe.c pipe.h readwrite.c readwrite.h \ | |
18 | mi-lttng.h mi-lttng.c \ | |
19 | daemonize.c daemonize.h \ | |
20 | unix.h \ | |
21 | filter.c filter.h context.c context.h \ | |
22 | action.c notify.c condition.c buffer-usage.c \ | |
23 | session-consumed-size.c \ | |
24 | session-rotation.c \ | |
25 | evaluation.c notification.c trigger.c endpoint.c \ | |
26 | dynamic-buffer.h dynamic-buffer.c \ | |
27 | buffer-view.h buffer-view.c \ | |
28 | location.c \ | |
29 | waiter.h waiter.c \ | |
30 | userspace-probe.c | |
31 | ||
32 | libcommon_la_LIBADD = \ | |
33 | $(top_builddir)/src/common/config/libconfig.la \ | |
34 | $(UUID_LIBS) | |
35 | ||
241e0a5a FD |
36 | if BUILD_LIB_RUNAS |
37 | libcommon_la_SOURCES += runas.c lttng-elf.h lttng-elf.c | |
38 | else | |
39 | libcommon_la_SOURCES += runas-stub.c | |
40 | endif | |
41 | ||
b3f35e02 FD |
42 | if BUILD_LIB_UNIX |
43 | libcommon_la_SOURCES += unix.c | |
44 | else | |
45 | libcommon_la_SOURCES += unix-stub.c | |
46 | endif | |
87fb9fc0 JR |
47 | |
48 | if BUILD_LIB_COMPAT | |
49 | SUBDIRS += compat | |
50 | endif | |
51 | ||
52 | if BUILD_LIB_HEALTH | |
53 | SUBDIRS += health | |
54 | endif | |
55 | ||
56 | if BUILD_LIB_HASHTABLE | |
57 | SUBDIRS += hashtable | |
58 | endif | |
59 | ||
60 | if BUILD_LIB_KERNEL_CTL | |
61 | SUBDIRS += kernel-ctl | |
62 | endif | |
63 | ||
64 | if BUILD_LIB_SESSIOND_COMM | |
65 | SUBDIRS += sessiond-comm | |
66 | endif | |
67 | ||
68 | if BUILD_LIB_RELAYD | |
69 | SUBDIRS += relayd | |
70 | endif | |
71 | ||
72 | if BUILD_LIB_KERNEL_CONSUMER | |
73 | SUBDIRS += kernel-consumer | |
74 | endif | |
75 | ||
76 | if BUILD_LIB_UST_CONSUMER | |
77 | SUBDIRS += ust-consumer | |
78 | endif | |
79 | ||
80 | if BUILD_LIB_TESTPOINT | |
81 | SUBDIRS += testpoint | |
82 | endif | |
83 | ||
84 | if BUILD_LIB_INDEX | |
85 | SUBDIRS += index | |
86 | endif | |
87 | ||
88 | if BUILD_LIB_CONFIG | |
89 | SUBDIRS += config | |
90 | endif | |
91 | ||
92 | if BUILD_LIB_CONSUMER | |
93 | SUBDIRS += consumer | |
94 | endif | |
10a8a223 | 95 | |
0b5fb049 | 96 | noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \ |
331744e3 | 97 | uri.h utils.h lttng-kernel-old.h \ |
395d6b02 | 98 | align.h bitfield.h bug.h time.h |
1c39da61 | 99 | |
c49fc5e4 JR |
100 | all-local: |
101 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
102 | for script in $(EXTRA_DIST); do \ | |
103 | cp -f $(srcdir)/$$script $(builddir); \ | |
104 | done; \ | |
105 | fi | |
106 | ||
107 | clean-local: | |
108 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
109 | for script in $(EXTRA_DIST); do \ | |
110 | rm -f $(builddir)/$$script; \ | |
111 | done; \ | |
112 | fi |