Move liblttng-ust to 'src/lib/'
[lttng-ust.git] / src / lib / lttng-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 wait.h \
84 jhash.h \
85 lttng-ust-uuid.h \
86 error.h \
87 tracef.c \
88 lttng-ust-tracef-provider.h \
89 tracelog.c \
90 lttng-ust-tracelog-provider.h \
91 getenv.h \
92 string-utils.c \
93 string-utils.h \
94 event-notifier-notification.c \
95 ns.h \
96 creds.h \
97 rculfhash.c \
98 rculfhash.h \
99 rculfhash-internal.h \
100 rculfhash-mm-chunk.c \
101 rculfhash-mm-mmap.c \
102 rculfhash-mm-order.c \
103 compat_futex.c \
104 futex.h
105
106 if HAVE_PERF_EVENT
107 liblttng_ust_runtime_la_SOURCES += \
108 lttng-context-perf-counters.c \
109 perf_event.h
110 endif
111
112 liblttng_ust_support_la_SOURCES = \
113 lttng-tracer.h \
114 lttng-tracer-core.h \
115 ust-core.c \
116 getenv.h \
117 getenv.c \
118 lttng-ust-dynamic-type.c \
119 lttng-rb-clients.h \
120 lttng-ring-buffer-client-template.h \
121 lttng-ring-buffer-client-discard.c \
122 lttng-ring-buffer-client-discard-rt.c \
123 lttng-ring-buffer-client-overwrite.c \
124 lttng-ring-buffer-client-overwrite-rt.c \
125 lttng-ring-buffer-metadata-client-template.h \
126 lttng-ring-buffer-metadata-client.c \
127 lttng-counter-client.h \
128 lttng-counter-client-percpu-32-modular.c \
129 lttng-counter-client-percpu-64-modular.c \
130 lttng-clock.c lttng-getcpu.c
131
132 liblttng_ust_la_SOURCES =
133
134 liblttng_ust_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION)
135
136 liblttng_ust_support_la_LIBADD = \
137 $(top_builddir)/src/common/libringbuffer.la \
138 $(top_builddir)/src/common/libcounter.la
139
140 liblttng_ust_la_LIBADD = \
141 -lrt \
142 liblttng-ust-common.la \
143 $(top_builddir)/src/common/libustcomm.la \
144 $(top_builddir)/src/common/libcommon.la \
145 liblttng-ust-tracepoint.la \
146 liblttng-ust-runtime.la liblttng-ust-support.la \
147 $(DL_LIBS)
148
149 liblttng_ust_la_CFLAGS = -DUST_COMPONENT="liblttng_ust" $(AM_CFLAGS)
This page took 0.034316 seconds and 5 git commands to generate.