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