Sync ax_have_epoll.m4 with autoconf-archive
[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
01fac814 25EXTRA_DIST = mi-lttng-4.0.xsd
b3f35e02 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 \
2d97a006 65 tracker.c \
f5ea0241
JG
66 waiter.c waiter.h \
67 fs-handle.h fs-handle-internal.h fs-handle.c
b3f35e02 68
b1b34226 69if HAVE_ELF_H
28b6dfc8
SM
70libcommon_la_SOURCES += \
71 lttng-elf.c lttng-elf.h
b1b34226
MJ
72endif
73
b3f35e02 74libcommon_la_LIBADD = \
28b6dfc8
SM
75 $(top_builddir)/src/common/config/libconfig.la \
76 $(top_builddir)/src/common/compat/libcompat.la \
8bb66c3c
JG
77 $(top_builddir)/src/common/hashtable/libhashtable.la \
78 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
b3f35e02 79
87fb9fc0
JR
80if BUILD_LIB_COMPAT
81SUBDIRS += compat
82endif
83
84if BUILD_LIB_HEALTH
85SUBDIRS += health
86endif
87
88if BUILD_LIB_HASHTABLE
89SUBDIRS += hashtable
90endif
91
92if BUILD_LIB_KERNEL_CTL
93SUBDIRS += kernel-ctl
94endif
95
96if BUILD_LIB_SESSIOND_COMM
97SUBDIRS += sessiond-comm
98endif
99
100if BUILD_LIB_RELAYD
aa360a35
JG
101SUBDIRS += relayd
102endif
103
104if BUILD_LIB_FD_TRACKER
105SUBDIRS += fd-tracker
87fb9fc0
JR
106endif
107
108if BUILD_LIB_KERNEL_CONSUMER
109SUBDIRS += kernel-consumer
110endif
111
112if BUILD_LIB_UST_CONSUMER
113SUBDIRS += ust-consumer
114endif
115
116if BUILD_LIB_TESTPOINT
117SUBDIRS += testpoint
118endif
119
120if BUILD_LIB_INDEX
121SUBDIRS += index
122endif
123
124if BUILD_LIB_CONFIG
125SUBDIRS += config
126endif
127
128if BUILD_LIB_CONSUMER
129SUBDIRS += consumer
130endif
10a8a223 131
28b6dfc8
SM
132noinst_HEADERS = \
133 align.h \
134 bug.h \
135 defaults.h \
136 error.h \
137 futex.h \
138 lttng-kernel.h \
139 lttng-kernel-old.h \
140 macros.h \
141 time.h \
142 uri.h \
143 utils.h
1c39da61 144
c49fc5e4
JR
145all-local:
146 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
147 for script in $(EXTRA_DIST); do \
148 cp -f $(srcdir)/$$script $(builddir); \
149 done; \
150 fi
151
152clean-local:
153 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
154 for script in $(EXTRA_DIST); do \
155 rm -f $(builddir)/$$script; \
156 done; \
157 fi
This page took 0.093659 seconds and 4 git commands to generate.