| 1 | # SPDX-License-Identifier: LGPL-2.1-only |
| 2 | |
| 3 | AM_CFLAGS += -I$(srcdir) |
| 4 | |
| 5 | lib_LTLIBRARIES = liblttng-ust.la |
| 6 | |
| 7 | liblttng_ust_la_SOURCES = \ |
| 8 | bytecode.h \ |
| 9 | lttng-ust-comm.c \ |
| 10 | lttng-ust-abi.c \ |
| 11 | lttng-probes.c \ |
| 12 | lttng-bytecode.c \ |
| 13 | lttng-bytecode.h \ |
| 14 | lttng-bytecode-validator.c \ |
| 15 | lttng-bytecode-specialize.c \ |
| 16 | lttng-bytecode-interpreter.c \ |
| 17 | lttng-context-provider.c \ |
| 18 | lttng-context-vtid.c \ |
| 19 | lttng-context-vpid.c \ |
| 20 | lttng-context-pthread-id.c \ |
| 21 | lttng-context-procname.c \ |
| 22 | lttng-context-ip.c \ |
| 23 | lttng-context-cpu-id.c \ |
| 24 | lttng-context-cgroup-ns.c \ |
| 25 | lttng-context-ipc-ns.c \ |
| 26 | lttng-context-mnt-ns.c \ |
| 27 | lttng-context-net-ns.c \ |
| 28 | lttng-context-pid-ns.c \ |
| 29 | lttng-context-time-ns.c \ |
| 30 | lttng-context-user-ns.c \ |
| 31 | lttng-context-uts-ns.c \ |
| 32 | lttng-context-vuid.c \ |
| 33 | lttng-context-veuid.c \ |
| 34 | lttng-context-vsuid.c \ |
| 35 | lttng-context-vgid.c \ |
| 36 | lttng-context-vegid.c \ |
| 37 | lttng-context-vsgid.c \ |
| 38 | lttng-context.c \ |
| 39 | lttng-events.c \ |
| 40 | lttng-ust-statedump.c \ |
| 41 | lttng-ust-statedump.h \ |
| 42 | lttng-ust-statedump-provider.h \ |
| 43 | futex.c \ |
| 44 | futex.h \ |
| 45 | ust_lib.c \ |
| 46 | ust_lib.h \ |
| 47 | context-internal.h \ |
| 48 | context-provider-internal.h \ |
| 49 | events.h \ |
| 50 | tracef.c \ |
| 51 | lttng-ust-tracef-provider.h \ |
| 52 | tracelog.c \ |
| 53 | lttng-ust-tracelog-provider.h \ |
| 54 | event-notifier-notification.c \ |
| 55 | rculfhash.c \ |
| 56 | rculfhash.h \ |
| 57 | rculfhash-internal.h \ |
| 58 | rculfhash-mm-chunk.c \ |
| 59 | rculfhash-mm-mmap.c \ |
| 60 | rculfhash-mm-order.c \ |
| 61 | strerror.c \ |
| 62 | lttng-tracer-core.h |
| 63 | |
| 64 | if HAVE_PERF_EVENT |
| 65 | liblttng_ust_la_SOURCES += \ |
| 66 | lttng-context-perf-counters.c \ |
| 67 | perf_event.h |
| 68 | endif |
| 69 | |
| 70 | liblttng_ust_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION) |
| 71 | |
| 72 | liblttng_ust_la_LIBADD = \ |
| 73 | $(top_builddir)/src/common/libringbuffer.la \ |
| 74 | $(top_builddir)/src/common/libringbuffer-clients.la \ |
| 75 | $(top_builddir)/src/common/libcounter.la \ |
| 76 | $(top_builddir)/src/common/libcounter-clients.la \ |
| 77 | $(top_builddir)/src/common/libustcomm.la \ |
| 78 | $(top_builddir)/src/common/libcommon.la \ |
| 79 | $(top_builddir)/src/lib/lttng-ust-common/liblttng-ust-common.la \ |
| 80 | $(top_builddir)/src/lib/lttng-ust-tracepoint/liblttng-ust-tracepoint.la \ |
| 81 | -lrt \ |
| 82 | $(DL_LIBS) |
| 83 | |
| 84 | liblttng_ust_la_CFLAGS = -DUST_COMPONENT="liblttng_ust" $(AM_CFLAGS) |