1 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
4 bin_PROGRAMS = babeltrace babeltrace-log
9 # -Wl,--no-as-needed is needed for recent gold linker who seems to think
10 # it knows better and considers libraries with constructors having
11 # side-effects as dead code.
12 babeltrace_LDFLAGS = $(LD_NO_AS_NEEDED)
14 $(top_builddir)/lib/libbabeltrace.la \
15 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
16 $(top_builddir)/compat/libcompat.la \
17 $(top_builddir)/formats/ctf-text/libbabeltrace-ctf-text.la \
18 $(top_builddir)/formats/ctf-metadata/libbabeltrace-ctf-metadata.la \
19 $(top_builddir)/formats/bt-dummy/libbabeltrace-dummy.la \
20 $(top_builddir)/formats/lttng-live/libbabeltrace-lttng-live.la
22 babeltrace_log_SOURCES = babeltrace-log.c
24 babeltrace_log_LDADD = \
25 $(top_builddir)/lib/libbabeltrace.la \
26 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
27 $(top_builddir)/compat/libcompat.la
29 if BABELTRACE_BUILD_WITH_LIBUUID
30 babeltrace_log_LDADD += -luuid
32 if BABELTRACE_BUILD_WITH_LIBC_UUID
33 babeltrace_log_LDADD += -lc
36 if BABELTRACE_BUILD_WITH_MINGW
37 babeltrace_log_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
38 babeltrace_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread