Fix: liblttng-ust-tracepoint missing symbols when using ld "no-undefined"
[lttng-ust.git] / liblttng-ust / Makefile.am
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-internal.h \
11 ltt-tracer-core.h \
12 jhash.h \
13 error.h
14 liblttng_ust_tracepoint_la_LIBADD = \
15 -lurcu-bp \
16 $(top_builddir)/snprintf/libustsnprintf.la \
17 liblttng-ust-support.la
18
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" -fno-strict-aliasing
21
22 liblttng_ust_runtime_la_SOURCES = \
23 lttng-ust-comm.c \
24 lttng-ust-abi.c \
25 ltt-probes.c \
26 probes/lttng-probe-ust.c \
27 probes/lttng-probe-ust.h \
28 lttng-context-vtid.c \
29 lttng-context-vpid.c \
30 lttng-context-pthread-id.c \
31 lttng-context-procname.c \
32 ltt-context.c \
33 ltt-events.c \
34 tracepoint-internal.h \
35 clock.h \
36 compat.h \
37 wait.h \
38 jhash.h \
39 error.h \
40 lttng-ust-uuid.h
41
42 liblttng_ust_support_la_SOURCES = \
43 ltt-tracer.h \
44 ltt-tracer-core.h \
45 ust-core.c \
46 ltt-ring-buffer-client.h \
47 ltt-ring-buffer-client-discard.c \
48 ltt-ring-buffer-client-overwrite.c \
49 ltt-ring-buffer-metadata-client.h \
50 ltt-ring-buffer-metadata-client.c
51
52 liblttng_ust_la_SOURCES =
53
54 liblttng_ust_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION)
55
56 liblttng_ust_support_la_LIBADD = \
57 $(top_builddir)/libringbuffer/libringbuffer.la
58
59 liblttng_ust_la_LIBADD = \
60 -lpthread \
61 -lrt \
62 -llttng-ust-tracepoint \
63 $(top_builddir)/snprintf/libustsnprintf.la \
64 $(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \
65 liblttng-ust-runtime.la liblttng-ust-support.la
66
67 if LTTNG_UST_BUILD_WITH_LIBUUID
68 liblttng_ust_la_LIBADD += -luuid
69 endif
70 if LTTNG_UST_BUILD_WITH_LIBC_UUID
71 liblttng_ust_la_LIBADD += -lc
72 endif
73
74 liblttng_ust_la_CFLAGS = -DUST_COMPONENT="liblttng_ust" -fno-strict-aliasing
This page took 0.030202 seconds and 4 git commands to generate.