6a841e92a703bc82d4f85b73ba228e44dd383157
[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 filter
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 filter
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/group.c \
32 actions/notify.c \
33 actions/rotate-session.c \
34 actions/snapshot-session.c \
35 actions/start-session.c \
36 actions/stop-session.c \
37 buffer-usage.c \
38 buffer-view.h buffer-view.c \
39 common.h \
40 condition.c \
41 context.c context.h \
42 credentials.c credentials.h \
43 daemonize.c daemonize.h \
44 defaults.c \
45 dynamic-array.c dynamic-array.h \
46 dynamic-buffer.c dynamic-buffer.h \
47 endpoint.c \
48 error.c error.h \
49 evaluation.c \
50 event.c \
51 filter.c filter.h \
52 fd-handle.c fd-handle.h \
53 fs-handle.c fs-handle.h fs-handle-internal.h \
54 futex.c futex.h \
55 location.c \
56 mi-lttng.c mi-lttng.h \
57 notification.c \
58 optional.h \
59 payload.c payload.h \
60 payload-view.c payload-view.h \
61 pipe.c pipe.h \
62 readwrite.c readwrite.h \
63 runas.c runas.h \
64 session-consumed-size.c \
65 session-descriptor.c \
66 session-rotation.c \
67 snapshot.c snapshot.h \
68 spawn-viewer.c spawn-viewer.h \
69 time.c \
70 trace-chunk.c trace-chunk.h \
71 trace-chunk-registry.h \
72 trigger.c \
73 unix.c unix.h \
74 uri.c uri.h \
75 userspace-probe.c \
76 utils.c utils.h \
77 uuid.c uuid.h \
78 tracker.c tracker.h \
79 waiter.c waiter.h
80
81 if HAVE_ELF_H
82 libcommon_la_SOURCES += \
83 lttng-elf.c lttng-elf.h
84 endif
85
86 libcommon_la_LIBADD = \
87 $(top_builddir)/src/common/config/libconfig.la \
88 $(top_builddir)/src/common/compat/libcompat.la \
89 $(top_builddir)/src/common/hashtable/libhashtable.la \
90 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
91 $(top_builddir)/src/common/filter/libfilter.la
92
93 if BUILD_LIB_COMPAT
94 SUBDIRS += compat
95 endif
96
97 if BUILD_LIB_HEALTH
98 SUBDIRS += health
99 endif
100
101 if BUILD_LIB_HASHTABLE
102 SUBDIRS += hashtable
103 endif
104
105 if BUILD_LIB_KERNEL_CTL
106 SUBDIRS += kernel-ctl
107 endif
108
109 if BUILD_LIB_SESSIOND_COMM
110 SUBDIRS += sessiond-comm
111 endif
112
113 if BUILD_LIB_RELAYD
114 SUBDIRS += relayd
115 endif
116
117 if BUILD_LIB_FD_TRACKER
118 SUBDIRS += fd-tracker
119 endif
120
121 if BUILD_LIB_KERNEL_CONSUMER
122 SUBDIRS += kernel-consumer
123 endif
124
125 if BUILD_LIB_UST_CONSUMER
126 SUBDIRS += ust-consumer
127 endif
128
129 if BUILD_LIB_TESTPOINT
130 SUBDIRS += testpoint
131 endif
132
133 if BUILD_LIB_INDEX
134 SUBDIRS += index
135 endif
136
137 if BUILD_LIB_CONFIG
138 SUBDIRS += config
139 endif
140
141 if BUILD_LIB_CONSUMER
142 SUBDIRS += consumer
143 endif
144
145 noinst_HEADERS = \
146 align.h \
147 bug.h \
148 defaults.h \
149 error.h \
150 futex.h \
151 lttng-kernel.h \
152 lttng-kernel-old.h \
153 macros.h \
154 time.h \
155 uri.h \
156 utils.h
157
158 all-local:
159 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
160 for script in $(EXTRA_DIST); do \
161 cp -f $(srcdir)/$$script $(builddir); \
162 done; \
163 fi
164
165 clean-local:
166 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
167 for script in $(EXTRA_DIST); do \
168 rm -f $(builddir)/$$script; \
169 done; \
170 fi
This page took 0.044685 seconds and 4 git commands to generate.