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