Add git-review config
[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.
28b6dfc8
SM
7DIST_SUBDIRS = \
8 compat \
9 health \
10 hashtable \
11 kernel-ctl \
12 sessiond-comm \
13 relayd \
14 kernel-consumer \
15 ust-consumer \
16 testpoint \
17 index \
18 config \
19 consumer \
20 string-utils \
21 fd-tracker
22
b3f35e02
FD
23# Common library
24noinst_LTLIBRARIES = libcommon.la
25EXTRA_DIST = mi-lttng-3.0.xsd
26
28b6dfc8
SM
27libcommon_la_SOURCES = \
28 action.c \
29 buffer-usage.c \
30 buffer-view.h buffer-view.c \
31 common.h \
32 condition.c \
33 context.c context.h \
34 credentials.h \
35 daemonize.c daemonize.h \
36 defaults.c \
37 dynamic-array.c dynamic-array.h \
38 dynamic-buffer.c dynamic-buffer.h \
39 endpoint.c \
40 error.c error.h \
41 evaluation.c \
42 event.c \
43 filter.c filter.h \
44 futex.c futex.h \
45 location.c \
46 mi-lttng.c mi-lttng.h \
47 notification.c \
48 notify.c \
49 optional.h \
50 pipe.c pipe.h \
51 readwrite.c readwrite.h \
52 runas.c runas.h \
53 session-consumed-size.c \
54 session-descriptor.c \
55 session-rotation.c \
56 time.c \
57 trace-chunk.c trace-chunk.h \
58 trace-chunk-registry.h \
59 trigger.c \
60 unix.c unix.h \
61 uri.c uri.h \
62 userspace-probe.c \
63 utils.c utils.h \
64 uuid.c uuid.h \
65 waiter.c waiter.h
b3f35e02 66
b1b34226 67if HAVE_ELF_H
28b6dfc8
SM
68libcommon_la_SOURCES += \
69 lttng-elf.c lttng-elf.h
b1b34226
MJ
70endif
71
b3f35e02 72libcommon_la_LIBADD = \
28b6dfc8
SM
73 $(top_builddir)/src/common/config/libconfig.la \
74 $(top_builddir)/src/common/compat/libcompat.la \
75 $(top_builddir)/src/common/hashtable/libhashtable.la
b3f35e02 76
87fb9fc0
JR
77if BUILD_LIB_COMPAT
78SUBDIRS += compat
79endif
80
81if BUILD_LIB_HEALTH
82SUBDIRS += health
83endif
84
85if BUILD_LIB_HASHTABLE
86SUBDIRS += hashtable
87endif
88
89if BUILD_LIB_KERNEL_CTL
90SUBDIRS += kernel-ctl
91endif
92
93if BUILD_LIB_SESSIOND_COMM
94SUBDIRS += sessiond-comm
95endif
96
97if BUILD_LIB_RELAYD
df038819 98SUBDIRS += relayd fd-tracker
87fb9fc0
JR
99endif
100
101if BUILD_LIB_KERNEL_CONSUMER
102SUBDIRS += kernel-consumer
103endif
104
105if BUILD_LIB_UST_CONSUMER
106SUBDIRS += ust-consumer
107endif
108
109if BUILD_LIB_TESTPOINT
110SUBDIRS += testpoint
111endif
112
113if BUILD_LIB_INDEX
114SUBDIRS += index
115endif
116
117if BUILD_LIB_CONFIG
118SUBDIRS += config
119endif
120
121if BUILD_LIB_CONSUMER
122SUBDIRS += consumer
123endif
10a8a223 124
28b6dfc8
SM
125noinst_HEADERS = \
126 align.h \
127 bug.h \
128 defaults.h \
129 error.h \
130 futex.h \
131 lttng-kernel.h \
132 lttng-kernel-old.h \
133 macros.h \
134 time.h \
135 uri.h \
136 utils.h
1c39da61 137
c49fc5e4
JR
138all-local:
139 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
140 for script in $(EXTRA_DIST); do \
141 cp -f $(srcdir)/$$script $(builddir); \
142 done; \
143 fi
144
145clean-local:
146 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
147 for script in $(EXTRA_DIST); do \
148 rm -f $(builddir)/$$script; \
149 done; \
150 fi
This page took 0.050542 seconds and 4 git commands to generate.