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