29a35e6adfb422451b20d0ad76459896293b0f87
[lttng-tools.git] / src / common / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 SUBDIRS =
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
10 if BUILD_LIB_COMPAT
11 SUBDIRS += compat
12 endif
13
14 if BUILD_LIB_HEALTH
15 SUBDIRS += health
16 endif
17
18 if BUILD_LIB_HASHTABLE
19 SUBDIRS += hashtable
20 endif
21
22 if BUILD_LIB_KERNEL_CTL
23 SUBDIRS += kernel-ctl
24 endif
25
26 if BUILD_LIB_SESSIOND_COMM
27 SUBDIRS += sessiond-comm
28 endif
29
30 if BUILD_LIB_RELAYD
31 SUBDIRS += relayd
32 endif
33
34 if BUILD_LIB_KERNEL_CONSUMER
35 SUBDIRS += kernel-consumer
36 endif
37
38 if BUILD_LIB_UST_CONSUMER
39 SUBDIRS += ust-consumer
40 endif
41
42 if BUILD_LIB_TESTPOINT
43 SUBDIRS += testpoint
44 endif
45
46 if BUILD_LIB_INDEX
47 SUBDIRS += index
48 endif
49
50 if BUILD_LIB_CONFIG
51 SUBDIRS += config
52 endif
53
54 if BUILD_LIB_CONSUMER
55 SUBDIRS += consumer
56 endif
57
58 noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
59 uri.h utils.h lttng-kernel-old.h \
60 align.h bitfield.h bug.h time.h
61
62 # Common library
63 noinst_LTLIBRARIES = libcommon.la
64 EXTRA_DIST = mi-lttng-3.0.xsd
65
66 libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
67 common.h futex.c futex.h uri.c uri.h defaults.c \
68 pipe.c pipe.h readwrite.c readwrite.h \
69 mi-lttng.h mi-lttng.c \
70 daemonize.c daemonize.h \
71 dynamic-buffer.h dynamic-buffer.c \
72 buffer-view.h buffer-view.c \
73 unix.c unix.h \
74 filter.c filter.h context.c context.h
75
76 libcommon_la_LIBADD = \
77 $(top_builddir)/src/common/config/libconfig.la
78 if LTTNG_BUILD_WITH_LIBUUID
79 libcommon_la_LIBADD += -luuid
80 endif
81 if LTTNG_BUILD_WITH_LIBC_UUID
82 libcommon_la_LIBADD += -lc
83 endif
84
85 all-local:
86 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
87 for script in $(EXTRA_DIST); do \
88 cp -f $(srcdir)/$$script $(builddir); \
89 done; \
90 fi
91
92 clean-local:
93 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
94 for script in $(EXTRA_DIST); do \
95 rm -f $(builddir)/$$script; \
96 done; \
97 fi
This page took 0.032768 seconds and 4 git commands to generate.