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 | ||
df458f8c | 15 | libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.h runas.c \ |
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 \ | |
6380c001 | 20 | unix.c unix.h \ |
b3f35e02 FD |
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 \ | |
5feee503 | 30 | userspace-probe.c event.c time.c \ |
1545fd17 JG |
31 | session-descriptor.c credentials.h \ |
32 | trace-chunk.c trace-chunk.h trace-chunk-registry.h \ | |
33 | dynamic-array.h dynamic-array.c optional.h | |
b3f35e02 | 34 | |
df458f8c MJ |
35 | if HAVE_ELF_H |
36 | libcommon_la_SOURCES += lttng-elf.h lttng-elf.c | |
37 | endif | |
38 | ||
b3f35e02 FD |
39 | libcommon_la_LIBADD = \ |
40 | $(top_builddir)/src/common/config/libconfig.la \ | |
a42089bd | 41 | $(top_builddir)/src/common/compat/libcompat.la \ |
6b8f0059 | 42 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
b3f35e02 FD |
43 | $(UUID_LIBS) |
44 | ||
87fb9fc0 JR |
45 | if BUILD_LIB_COMPAT |
46 | SUBDIRS += compat | |
47 | endif | |
48 | ||
49 | if BUILD_LIB_HEALTH | |
50 | SUBDIRS += health | |
51 | endif | |
52 | ||
53 | if BUILD_LIB_HASHTABLE | |
54 | SUBDIRS += hashtable | |
55 | endif | |
56 | ||
57 | if BUILD_LIB_KERNEL_CTL | |
58 | SUBDIRS += kernel-ctl | |
59 | endif | |
60 | ||
61 | if BUILD_LIB_SESSIOND_COMM | |
62 | SUBDIRS += sessiond-comm | |
63 | endif | |
64 | ||
65 | if BUILD_LIB_RELAYD | |
66 | SUBDIRS += relayd | |
67 | endif | |
68 | ||
69 | if BUILD_LIB_KERNEL_CONSUMER | |
70 | SUBDIRS += kernel-consumer | |
71 | endif | |
72 | ||
73 | if BUILD_LIB_UST_CONSUMER | |
74 | SUBDIRS += ust-consumer | |
75 | endif | |
76 | ||
77 | if BUILD_LIB_TESTPOINT | |
78 | SUBDIRS += testpoint | |
79 | endif | |
80 | ||
81 | if BUILD_LIB_INDEX | |
82 | SUBDIRS += index | |
83 | endif | |
84 | ||
85 | if BUILD_LIB_CONFIG | |
86 | SUBDIRS += config | |
87 | endif | |
88 | ||
89 | if BUILD_LIB_CONSUMER | |
90 | SUBDIRS += consumer | |
91 | endif | |
10a8a223 | 92 | |
0b5fb049 | 93 | noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \ |
331744e3 | 94 | uri.h utils.h lttng-kernel-old.h \ |
ae3151d9 | 95 | align.h bug.h time.h |
1c39da61 | 96 | |
c49fc5e4 JR |
97 | all-local: |
98 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
99 | for script in $(EXTRA_DIST); do \ | |
100 | cp -f $(srcdir)/$$script $(builddir); \ | |
101 | done; \ | |
102 | fi | |
103 | ||
104 | clean-local: | |
105 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
106 | for script in $(EXTRA_DIST); do \ | |
107 | rm -f $(builddir)/$$script; \ | |
108 | done; \ | |
109 | fi |