| 1 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include |
| 2 | AM_CFLAGS += -fno-strict-aliasing |
| 3 | |
| 4 | noinst_LTLIBRARIES = liblttng-ust-runtime.la liblttng-ust-support.la |
| 5 | |
| 6 | lib_LTLIBRARIES = liblttng-ust-tracepoint.la liblttng-ust.la |
| 7 | |
| 8 | liblttng_ust_tracepoint_la_SOURCES = \ |
| 9 | tracepoint.c \ |
| 10 | tracepoint-weak-test.c \ |
| 11 | tracepoint-internal.h \ |
| 12 | lttng-tracer-core.h \ |
| 13 | jhash.h \ |
| 14 | error.h |
| 15 | liblttng_ust_tracepoint_la_LIBADD = \ |
| 16 | -lurcu-bp \ |
| 17 | -lpthread \ |
| 18 | $(top_builddir)/snprintf/libustsnprintf.la |
| 19 | liblttng_ust_tracepoint_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION) |
| 20 | liblttng_ust_tracepoint_la_CFLAGS = -DUST_COMPONENT="liblttng_ust_tracepoint" $(AM_CFLAGS) |
| 21 | |
| 22 | if LTTNG_UST_BUILD_WITH_LIBDL |
| 23 | liblttng_ust_tracepoint_la_LIBADD += -ldl |
| 24 | endif |
| 25 | if LTTNG_UST_BUILD_WITH_LIBC_DL |
| 26 | liblttng_ust_tracepoint_la_LIBADD += -lc |
| 27 | endif |
| 28 | |
| 29 | liblttng_ust_runtime_la_SOURCES = \ |
| 30 | lttng-ust-comm.c \ |
| 31 | lttng-ust-abi.c \ |
| 32 | lttng-probes.c \ |
| 33 | lttng-context-provider.c \ |
| 34 | lttng-context-vtid.c \ |
| 35 | lttng-context-vpid.c \ |
| 36 | lttng-context-pthread-id.c \ |
| 37 | lttng-context-procname.c \ |
| 38 | lttng-context-ip.c \ |
| 39 | lttng-context-cpu-id.c \ |
| 40 | lttng-context.c \ |
| 41 | lttng-events.c \ |
| 42 | lttng-filter.c \ |
| 43 | lttng-filter.h \ |
| 44 | lttng-filter-validator.c \ |
| 45 | lttng-filter-specialize.c \ |
| 46 | lttng-filter-interpreter.c \ |
| 47 | filter-bytecode.h \ |
| 48 | lttng-hash-helper.h \ |
| 49 | lttng-ust-elf.c \ |
| 50 | lttng-ust-statedump.c \ |
| 51 | lttng-ust-statedump.h \ |
| 52 | lttng-ust-statedump-provider.h \ |
| 53 | ust_lib.c \ |
| 54 | ust_lib.h \ |
| 55 | tracepoint-internal.h \ |
| 56 | clock.h \ |
| 57 | compat.h \ |
| 58 | wait.h \ |
| 59 | jhash.h \ |
| 60 | lttng-ust-uuid.h \ |
| 61 | error.h \ |
| 62 | tracef.c \ |
| 63 | lttng-ust-tracef-provider.h \ |
| 64 | tracelog.c \ |
| 65 | lttng-ust-tracelog-provider.h \ |
| 66 | getenv.h \ |
| 67 | string-utils.c \ |
| 68 | string-utils.h |
| 69 | |
| 70 | liblttng_ust_runtime_la_CFLAGS = -DLTTNG_UST_LIBRARY_VERSION_MAJOR=\"$(LTTNG_UST_LIBRARY_VERSION_MAJOR)\" |
| 71 | |
| 72 | if HAVE_PERF_EVENT |
| 73 | liblttng_ust_runtime_la_SOURCES += \ |
| 74 | lttng-context-perf-counters.c \ |
| 75 | perf_event.h |
| 76 | endif |
| 77 | |
| 78 | liblttng_ust_support_la_SOURCES = \ |
| 79 | lttng-tracer.h \ |
| 80 | lttng-tracer-core.h \ |
| 81 | ust-core.c \ |
| 82 | getenv.h \ |
| 83 | getenv.c \ |
| 84 | lttng-ust-dynamic-type.c \ |
| 85 | lttng-rb-clients.h \ |
| 86 | lttng-ring-buffer-client.h \ |
| 87 | lttng-ring-buffer-client-discard.c \ |
| 88 | lttng-ring-buffer-client-discard-rt.c \ |
| 89 | lttng-ring-buffer-client-overwrite.c \ |
| 90 | lttng-ring-buffer-client-overwrite-rt.c \ |
| 91 | lttng-ring-buffer-metadata-client.h \ |
| 92 | lttng-ring-buffer-metadata-client.c \ |
| 93 | lttng-clock.c lttng-getcpu.c |
| 94 | |
| 95 | liblttng_ust_la_SOURCES = |
| 96 | |
| 97 | liblttng_ust_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION) |
| 98 | |
| 99 | liblttng_ust_support_la_LIBADD = \ |
| 100 | $(top_builddir)/libringbuffer/libringbuffer.la |
| 101 | |
| 102 | liblttng_ust_la_LIBADD = \ |
| 103 | -lpthread \ |
| 104 | -lrt \ |
| 105 | -lurcu-cds \ |
| 106 | $(top_builddir)/snprintf/libustsnprintf.la \ |
| 107 | $(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \ |
| 108 | liblttng-ust-tracepoint.la \ |
| 109 | liblttng-ust-runtime.la liblttng-ust-support.la |
| 110 | |
| 111 | if LTTNG_UST_BUILD_WITH_LIBDL |
| 112 | liblttng_ust_la_LIBADD += -ldl |
| 113 | endif |
| 114 | if LTTNG_UST_BUILD_WITH_LIBC_DL |
| 115 | liblttng_ust_la_LIBADD += -lc |
| 116 | endif |
| 117 | |
| 118 | liblttng_ust_la_CFLAGS = -DUST_COMPONENT="liblttng_ust" $(AM_CFLAGS) |