Backport LTTNG_OPTIONAL util
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
26821431
MD
1AUTOMAKE_OPTIONS = subdir-objects
2
0ad3c26c 3SUBDIRS = fd-tracker
87fb9fc0
JR
4
5# Make sure to always distribute all folders
6# since SUBDIRS is decided at configure time.
7DIST_SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \
0ad3c26c
JG
8 kernel-consumer ust-consumer testpoint index config consumer \
9 fd-tracker
87fb9fc0
JR
10
11if BUILD_LIB_COMPAT
12SUBDIRS += compat
13endif
14
15if BUILD_LIB_HEALTH
16SUBDIRS += health
17endif
18
19if BUILD_LIB_HASHTABLE
20SUBDIRS += hashtable
21endif
22
23if BUILD_LIB_KERNEL_CTL
24SUBDIRS += kernel-ctl
25endif
26
27if BUILD_LIB_SESSIOND_COMM
28SUBDIRS += sessiond-comm
29endif
30
31if BUILD_LIB_RELAYD
32SUBDIRS += relayd
33endif
34
35if BUILD_LIB_KERNEL_CONSUMER
36SUBDIRS += kernel-consumer
37endif
38
39if BUILD_LIB_UST_CONSUMER
40SUBDIRS += ust-consumer
41endif
42
43if BUILD_LIB_TESTPOINT
44SUBDIRS += testpoint
45endif
46
47if BUILD_LIB_INDEX
48SUBDIRS += index
49endif
50
51if BUILD_LIB_CONFIG
52SUBDIRS += config
53endif
54
55if BUILD_LIB_CONSUMER
56SUBDIRS += consumer
57endif
10a8a223 58
0b5fb049 59noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
331744e3 60 uri.h utils.h lttng-kernel-old.h \
395d6b02 61 align.h bitfield.h bug.h time.h
1c39da61 62
00e2e675 63# Common library
10a8a223 64noinst_LTLIBRARIES = libcommon.la
07334a07 65EXTRA_DIST = mi-lttng-4.0.xsd
10a8a223 66
6242251b 67libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
9fd92637 68 common.h futex.c futex.h uri.c uri.h defaults.c \
99ed9c43 69 pipe.c pipe.h readwrite.c readwrite.h \
c7e35b03 70 mi-lttng.h mi-lttng.c \
7567352f 71 daemonize.c daemonize.h \
0b83088a
MJ
72 dynamic-buffer.h dynamic-buffer.c \
73 buffer-view.h buffer-view.c \
2038dd6c 74 unix.c unix.h \
f6dff2c3
JG
75 filter.c filter.h context.c context.h \
76 optional.h
7567352f 77
c7e35b03 78libcommon_la_LIBADD = \
c7e35b03 79 $(top_builddir)/src/common/config/libconfig.la
81ba8833
MJ
80if LTTNG_BUILD_WITH_LIBUUID
81libcommon_la_LIBADD += -luuid
82endif
83if LTTNG_BUILD_WITH_LIBC_UUID
84libcommon_la_LIBADD += -lc
85endif
10a8a223 86
c49fc5e4
JR
87all-local:
88 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
89 for script in $(EXTRA_DIST); do \
90 cp -f $(srcdir)/$$script $(builddir); \
91 done; \
92 fi
93
94clean-local:
95 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
96 for script in $(EXTRA_DIST); do \
97 rm -f $(builddir)/$$script; \
98 done; \
99 fi
This page took 0.058286 seconds and 5 git commands to generate.