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