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