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