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