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