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