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