libcommon: move event.c to libcommon-lgpl
[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 = libpath.la libcommon-lgpl.la libcommon-gpl.la
27 EXTRA_DIST = mi-lttng-4.0.xsd
28
29 # The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
30 # meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
31 # contains libcommon-lgpl.la.
32 libcommon_lgpl_la_SOURCES = \
33 action.c \
34 buffer-view.h buffer-view.c \
35 buffer-usage.c \
36 channel.c \
37 credentials.h \
38 condition.c \
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 location.c \
47 mi-lttng.c mi-lttng.h \
48 notification.c \
49 notify.c \
50 readwrite.c readwrite.h \
51 runas.c runas.h \
52 session-consumed-size.c \
53 session-descriptor.c \
54 session-rotation.c \
55 spawn-viewer.c spawn-viewer.h \
56 time.c \
57 tracker.c tracker.h \
58 trigger.c \
59 unix.c unix.h \
60 uri.c uri.h \
61 userspace-probe.c \
62 utils.c utils.h
63
64 if HAVE_ELF_H
65 libcommon_lgpl_la_SOURCES += \
66 lttng-elf.c lttng-elf.h
67 endif
68
69 libcommon_lgpl_la_LIBADD = \
70 $(top_builddir)/src/common/config/libconfig.la \
71 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la
72
73 # The libpath static archive contains GPLv2 compatible code. It is
74 # meant to be used by GPL executables.
75
76 libpath_la_SOURCES = \
77 path.c path.h
78
79 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
80 # meant to be used by GPL executables.
81 libcommon_gpl_la_SOURCES = \
82 common.h \
83 context.c context.h \
84 daemonize.c daemonize.h \
85 filter.c filter.h \
86 fs-handle.c fs-handle.h fs-handle-internal.h \
87 futex.c futex.h \
88 optional.h \
89 pipe.c pipe.h \
90 trace-chunk.c trace-chunk.h \
91 trace-chunk-registry.h \
92 uuid.c uuid.h \
93 waiter.c waiter.h
94
95 libcommon_gpl_la_LIBADD = \
96 -lurcu -lurcu-common \
97 libcommon-lgpl.la \
98 libpath.la \
99 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
100 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
101
102 if BUILD_LIB_COMPAT
103 SUBDIRS += compat
104 libcommon_lgpl_la_LIBADD += \
105 $(top_builddir)/src/common/compat/libcompat.la
106 endif
107
108 if BUILD_LIB_HEALTH
109 SUBDIRS += health
110 endif
111
112 if BUILD_LIB_HASHTABLE
113 SUBDIRS += hashtable
114 endif
115
116 if BUILD_LIB_KERNEL_CTL
117 SUBDIRS += kernel-ctl
118 endif
119
120 if BUILD_LIB_SESSIOND_COMM
121 SUBDIRS += sessiond-comm
122 endif
123
124 if BUILD_LIB_RELAYD
125 SUBDIRS += relayd
126 endif
127
128 if BUILD_LIB_FD_TRACKER
129 SUBDIRS += fd-tracker
130 endif
131
132 if BUILD_LIB_KERNEL_CONSUMER
133 SUBDIRS += kernel-consumer
134 endif
135
136 if BUILD_LIB_UST_CONSUMER
137 SUBDIRS += ust-consumer
138 endif
139
140 if BUILD_LIB_TESTPOINT
141 SUBDIRS += testpoint
142 endif
143
144 if BUILD_LIB_INDEX
145 SUBDIRS += index
146 endif
147
148 if BUILD_LIB_CONFIG
149 SUBDIRS += config
150 endif
151
152 if BUILD_LIB_CONSUMER
153 SUBDIRS += consumer
154 endif
155
156 noinst_HEADERS = \
157 align.h \
158 bug.h \
159 defaults.h \
160 error.h \
161 futex.h \
162 lttng-kernel.h \
163 lttng-kernel-old.h \
164 macros.h \
165 time.h \
166 uri.h \
167 utils.h
168
169 all-local:
170 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
171 for script in $(EXTRA_DIST); do \
172 cp -f $(srcdir)/$$script $(builddir); \
173 done; \
174 fi
175
176 clean-local:
177 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
178 for script in $(EXTRA_DIST); do \
179 rm -f $(builddir)/$$script; \
180 done; \
181 fi
This page took 0.034804 seconds and 4 git commands to generate.