1824fe46dcb601e561df0fea08b9e1c403ded65c
[lttng-tools.git] / src / common / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 SUBDIRS = string-utils
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 string-utils
10 #
11 # Common library
12 noinst_LTLIBRARIES = libcommon.la
13 EXTRA_DIST = mi-lttng-3.0.xsd
14
15 libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.h runas.c \
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.c 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 event.c
31
32 if HAVE_ELF_H
33 libcommon_la_SOURCES += lttng-elf.h lttng-elf.c
34 endif
35
36 libcommon_la_LIBADD = \
37 $(top_builddir)/src/common/config/libconfig.la \
38 $(UUID_LIBS)
39
40 if BUILD_LIB_COMPAT
41 SUBDIRS += compat
42 endif
43
44 if BUILD_LIB_HEALTH
45 SUBDIRS += health
46 endif
47
48 if BUILD_LIB_HASHTABLE
49 SUBDIRS += hashtable
50 endif
51
52 if BUILD_LIB_KERNEL_CTL
53 SUBDIRS += kernel-ctl
54 endif
55
56 if BUILD_LIB_SESSIOND_COMM
57 SUBDIRS += sessiond-comm
58 endif
59
60 if BUILD_LIB_RELAYD
61 SUBDIRS += relayd
62 endif
63
64 if BUILD_LIB_KERNEL_CONSUMER
65 SUBDIRS += kernel-consumer
66 endif
67
68 if BUILD_LIB_UST_CONSUMER
69 SUBDIRS += ust-consumer
70 endif
71
72 if BUILD_LIB_TESTPOINT
73 SUBDIRS += testpoint
74 endif
75
76 if BUILD_LIB_INDEX
77 SUBDIRS += index
78 endif
79
80 if BUILD_LIB_CONFIG
81 SUBDIRS += config
82 endif
83
84 if BUILD_LIB_CONSUMER
85 SUBDIRS += consumer
86 endif
87
88 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
89 uri.h utils.h lttng-kernel-old.h \
90 align.h bitfield.h bug.h time.h
91
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
This page took 0.045196 seconds and 3 git commands to generate.