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