Backport:Fix: Don't override user variables within the build system
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
26821431
MD
1AUTOMAKE_OPTIONS = subdir-objects
2
87fb9fc0
JR
3SUBDIRS =
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 \
8 kernel-consumer ust-consumer testpoint index config consumer
9
10if BUILD_LIB_COMPAT
11SUBDIRS += compat
12endif
13
14if BUILD_LIB_HEALTH
15SUBDIRS += health
16endif
17
18if BUILD_LIB_HASHTABLE
19SUBDIRS += hashtable
20endif
21
22if BUILD_LIB_KERNEL_CTL
23SUBDIRS += kernel-ctl
24endif
25
26if BUILD_LIB_SESSIOND_COMM
27SUBDIRS += sessiond-comm
28endif
29
30if BUILD_LIB_RELAYD
31SUBDIRS += relayd
32endif
33
34if BUILD_LIB_KERNEL_CONSUMER
35SUBDIRS += kernel-consumer
36endif
37
38if BUILD_LIB_UST_CONSUMER
39SUBDIRS += ust-consumer
40endif
41
42if BUILD_LIB_TESTPOINT
43SUBDIRS += testpoint
44endif
45
46if BUILD_LIB_INDEX
47SUBDIRS += index
48endif
49
50if BUILD_LIB_CONFIG
51SUBDIRS += config
52endif
53
54if BUILD_LIB_CONSUMER
55SUBDIRS += consumer
56endif
10a8a223 57
0b5fb049 58noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
331744e3 59 uri.h utils.h lttng-kernel-old.h \
395d6b02 60 align.h bitfield.h bug.h time.h
1c39da61 61
00e2e675 62# Common library
10a8a223 63noinst_LTLIBRARIES = libcommon.la
654f9f5e 64EXTRA_DIST = mi-lttng-3.0.xsd
10a8a223 65
6242251b 66libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
9fd92637 67 common.h futex.c futex.h uri.c uri.h defaults.c \
99ed9c43 68 pipe.c pipe.h readwrite.c readwrite.h \
c7e35b03 69 mi-lttng.h mi-lttng.c \
7567352f 70 daemonize.c daemonize.h \
0b83088a
MJ
71 dynamic-buffer.h dynamic-buffer.c \
72 buffer-view.h buffer-view.c \
2038dd6c 73 unix.c unix.h \
71a559f8 74 filter.c filter.h context.c context.h
7567352f 75
c7e35b03 76libcommon_la_LIBADD = \
c7e35b03 77 $(top_builddir)/src/common/config/libconfig.la
81ba8833
MJ
78if LTTNG_BUILD_WITH_LIBUUID
79libcommon_la_LIBADD += -luuid
80endif
81if LTTNG_BUILD_WITH_LIBC_UUID
82libcommon_la_LIBADD += -lc
83endif
10a8a223 84
c49fc5e4
JR
85all-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
92clean-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.057904 seconds and 5 git commands to generate.