Tests build fix: undefined MAGIC_VALUE macro
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
26821431
MD
1AUTOMAKE_OPTIONS = subdir-objects
2
9c55c241 3SUBDIRS = string-utils
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 \
8419e18f
JG
8 kernel-consumer ust-consumer testpoint index config consumer \
9 string-utils
b3f35e02
FD
10#
11# Common library
12noinst_LTLIBRARIES = libcommon.la
13EXTRA_DIST = mi-lttng-3.0.xsd
14
b1b34226 15libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.h runas.c \
b3f35e02
FD
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 \
ba49ae8c 20 unix.c unix.h \
b3f35e02
FD
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 \
b178f53e 30 userspace-probe.c event.c time.c \
18710679 31 session-descriptor.c credentials.h
b3f35e02 32
b1b34226
MJ
33if HAVE_ELF_H
34libcommon_la_SOURCES += lttng-elf.h lttng-elf.c
35endif
36
b3f35e02
FD
37libcommon_la_LIBADD = \
38 $(top_builddir)/src/common/config/libconfig.la \
18710679 39 $(top_builddir)/src/common/compat/libcompat.la \
b3f35e02
FD
40 $(UUID_LIBS)
41
87fb9fc0
JR
42if BUILD_LIB_COMPAT
43SUBDIRS += compat
44endif
45
46if BUILD_LIB_HEALTH
47SUBDIRS += health
48endif
49
50if BUILD_LIB_HASHTABLE
51SUBDIRS += hashtable
52endif
53
54if BUILD_LIB_KERNEL_CTL
55SUBDIRS += kernel-ctl
56endif
57
58if BUILD_LIB_SESSIOND_COMM
59SUBDIRS += sessiond-comm
60endif
61
62if BUILD_LIB_RELAYD
63SUBDIRS += relayd
64endif
65
66if BUILD_LIB_KERNEL_CONSUMER
67SUBDIRS += kernel-consumer
68endif
69
70if BUILD_LIB_UST_CONSUMER
71SUBDIRS += ust-consumer
72endif
73
74if BUILD_LIB_TESTPOINT
75SUBDIRS += testpoint
76endif
77
78if BUILD_LIB_INDEX
79SUBDIRS += index
80endif
81
82if BUILD_LIB_CONFIG
83SUBDIRS += config
84endif
85
86if BUILD_LIB_CONSUMER
87SUBDIRS += consumer
88endif
10a8a223 89
0b5fb049 90noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
331744e3 91 uri.h utils.h lttng-kernel-old.h \
395d6b02 92 align.h bitfield.h bug.h time.h
1c39da61 93
c49fc5e4
JR
94all-local:
95 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
96 for script in $(EXTRA_DIST); do \
97 cp -f $(srcdir)/$$script $(builddir); \
98 done; \
99 fi
100
101clean-local:
102 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
103 for script in $(EXTRA_DIST); do \
104 rm -f $(builddir)/$$script; \
105 done; \
106 fi
This page took 0.065559 seconds and 5 git commands to generate.