| 1 | # SPDX-License-Identifier: LGPL-2.1-only |
| 2 | |
| 3 | AM_CFLAGS += -I$(srcdir) -fno-strict-aliasing |
| 4 | |
| 5 | noinst_LTLIBRARIES = liblttng-ust-runtime.la liblttng-ust-support.la |
| 6 | |
| 7 | lib_LTLIBRARIES = liblttng-ust-common.la liblttng-ust-tracepoint.la liblttng-ust.la |
| 8 | |
| 9 | liblttng_ust_common_la_SOURCES = \ |
| 10 | lttng-ust-urcu.c \ |
| 11 | lttng-ust-urcu-pointer.c |
| 12 | |
| 13 | liblttng_ust_common_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION) |
| 14 | |
| 15 | liblttng_ust_tracepoint_la_SOURCES = \ |
| 16 | tracepoint.c \ |
| 17 | tracepoint-weak-test.c \ |
| 18 | tracepoint-internal.h \ |
| 19 | lttng-tracer-core.h \ |
| 20 | jhash.h \ |
| 21 | error.h |
| 22 | |
| 23 | liblttng_ust_tracepoint_la_LIBADD = \ |
| 24 | liblttng-ust-common.la \ |
| 25 | $(top_builddir)/snprintf/libustsnprintf.la \ |
| 26 | $(DL_LIBS) |
| 27 | |
| 28 | liblttng_ust_tracepoint_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION) |
| 29 | liblttng_ust_tracepoint_la_CFLAGS = -DUST_COMPONENT="liblttng_ust_tracepoint" $(AM_CFLAGS) |
| 30 | |
| 31 | liblttng_ust_runtime_la_SOURCES = \ |
| 32 | bytecode.h \ |
| 33 | lttng-ust-comm.c \ |
| 34 | lttng-ust-abi.c \ |
| 35 | lttng-probes.c \ |
| 36 | lttng-bytecode.c \ |
| 37 | lttng-bytecode.h \ |
| 38 | lttng-bytecode-validator.c \ |
| 39 | lttng-bytecode-specialize.c \ |
| 40 | lttng-bytecode-interpreter.c \ |
| 41 | lttng-context-provider.c \ |
| 42 | lttng-context-vtid.c \ |
| 43 | lttng-context-vpid.c \ |
| 44 | lttng-context-pthread-id.c \ |
| 45 | lttng-context-procname.c \ |
| 46 | lttng-context-ip.c \ |
| 47 | lttng-context-cpu-id.c \ |
| 48 | lttng-context-cgroup-ns.c \ |
| 49 | lttng-context-ipc-ns.c \ |
| 50 | lttng-context-mnt-ns.c \ |
| 51 | lttng-context-net-ns.c \ |
| 52 | lttng-context-pid-ns.c \ |
| 53 | lttng-context-time-ns.c \ |
| 54 | lttng-context-user-ns.c \ |
| 55 | lttng-context-uts-ns.c \ |
| 56 | lttng-context-vuid.c \ |
| 57 | lttng-context-veuid.c \ |
| 58 | lttng-context-vsuid.c \ |
| 59 | lttng-context-vgid.c \ |
| 60 | lttng-context-vegid.c \ |
| 61 | lttng-context-vsgid.c \ |
| 62 | lttng-context.c \ |
| 63 | lttng-events.c \ |
| 64 | lttng-hash-helper.h \ |
| 65 | lttng-ust-elf.c \ |
| 66 | lttng-ust-elf.h \ |
| 67 | lttng-ust-statedump.c \ |
| 68 | lttng-ust-statedump.h \ |
| 69 | lttng-ust-statedump-provider.h \ |
| 70 | ust_lib.c \ |
| 71 | ust_lib.h \ |
| 72 | context-internal.h \ |
| 73 | context-provider-internal.h \ |
| 74 | tracepoint-internal.h \ |
| 75 | ust-events-internal.h \ |
| 76 | clock.h \ |
| 77 | compat.h \ |
| 78 | wait.h \ |
| 79 | jhash.h \ |
| 80 | lttng-ust-uuid.h \ |
| 81 | error.h \ |
| 82 | tracef.c \ |
| 83 | lttng-ust-tracef-provider.h \ |
| 84 | tracelog.c \ |
| 85 | lttng-ust-tracelog-provider.h \ |
| 86 | getenv.h \ |
| 87 | string-utils.c \ |
| 88 | string-utils.h \ |
| 89 | event-notifier-notification.c \ |
| 90 | ns.h \ |
| 91 | creds.h \ |
| 92 | rculfhash.c \ |
| 93 | rculfhash.h \ |
| 94 | rculfhash-internal.h \ |
| 95 | rculfhash-mm-chunk.c \ |
| 96 | rculfhash-mm-mmap.c \ |
| 97 | rculfhash-mm-order.c \ |
| 98 | compat_futex.c \ |
| 99 | futex.h |
| 100 | |
| 101 | if HAVE_PERF_EVENT |
| 102 | liblttng_ust_runtime_la_SOURCES += \ |
| 103 | lttng-context-perf-counters.c \ |
| 104 | perf_event.h |
| 105 | endif |
| 106 | |
| 107 | liblttng_ust_support_la_SOURCES = \ |
| 108 | lttng-tracer.h \ |
| 109 | lttng-tracer-core.h \ |
| 110 | ust-core.c \ |
| 111 | getenv.h \ |
| 112 | getenv.c \ |
| 113 | lttng-ust-dynamic-type.c \ |
| 114 | lttng-rb-clients.h \ |
| 115 | lttng-ring-buffer-client.h \ |
| 116 | lttng-ring-buffer-client-discard.c \ |
| 117 | lttng-ring-buffer-client-discard-rt.c \ |
| 118 | lttng-ring-buffer-client-overwrite.c \ |
| 119 | lttng-ring-buffer-client-overwrite-rt.c \ |
| 120 | lttng-ring-buffer-metadata-client.h \ |
| 121 | lttng-ring-buffer-metadata-client.c \ |
| 122 | lttng-counter-client-percpu-32-modular.c \ |
| 123 | lttng-counter-client-percpu-64-modular.c \ |
| 124 | lttng-clock.c lttng-getcpu.c |
| 125 | |
| 126 | liblttng_ust_la_SOURCES = |
| 127 | |
| 128 | liblttng_ust_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION) |
| 129 | |
| 130 | liblttng_ust_support_la_LIBADD = \ |
| 131 | $(top_builddir)/libringbuffer/libringbuffer.la \ |
| 132 | $(top_builddir)/libcounter/libcounter.la |
| 133 | |
| 134 | liblttng_ust_la_LIBADD = \ |
| 135 | -lrt \ |
| 136 | liblttng-ust-common.la \ |
| 137 | $(top_builddir)/snprintf/libustsnprintf.la \ |
| 138 | $(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \ |
| 139 | liblttng-ust-tracepoint.la \ |
| 140 | liblttng-ust-runtime.la liblttng-ust-support.la \ |
| 141 | $(top_builddir)/libmsgpack/libmsgpack.la \ |
| 142 | $(DL_LIBS) |
| 143 | |
| 144 | liblttng_ust_la_CFLAGS = -DUST_COMPONENT="liblttng_ust" $(AM_CFLAGS) |