1 PLUGINS_PATH = $(abs_top_builddir)/plugins
2 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include \
3 -DCONFIG_IN_TREE_PLUGIN_PATH=\"$(PLUGINS_PATH)/ctf:$(PLUGINS_PATH)/text:$(PLUGINS_PATH)/muxer:$(PLUGINS_PATH)/writer:$(PLUGINS_PATH)/utils\"
6 bin_PROGRAMS = babeltrace.bin babeltrace-log
7 noinst_PROGRAMS = babeltrace
8 #check_PROGRAMS = babeltrace
10 babeltrace_bin_SOURCES = \
16 babeltrace-cfg-connect.h \
17 babeltrace-cfg-connect.c
19 # -Wl,--no-as-needed is needed for recent gold linker who seems to think
20 # it knows better and considers libraries with constructors having
21 # side-effects as dead code.
22 babeltrace_bin_LDFLAGS = -Wl, $(LD_NO_AS_NEEDED), -export-dynamic
23 babeltrace_bin_LDADD = \
24 $(top_builddir)/lib/libbabeltrace.la \
25 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
26 $(top_builddir)/compat/libcompat.la \
27 $(top_builddir)/formats/ctf-text/libbabeltrace-ctf-text.la \
28 $(top_builddir)/formats/ctf-metadata/libbabeltrace-ctf-metadata.la \
29 $(top_builddir)/formats/bt-dummy/libbabeltrace-dummy.la \
30 $(top_builddir)/formats/lttng-live/libbabeltrace-lttng-live.la \
31 $(top_builddir)/common/libbabeltrace-common.la
34 babeltrace_bin_LDADD += $(top_builddir)/lib/libdebug-info.la
38 babeltrace_bin_LDFLAGS += -Wl,--whole-archive,$(top_builddir)/plugins/ctf/.libs/libbabeltrace-plugin-ctf.a,$(top_builddir)/plugins/text/.libs/libbabeltrace-plugin-ctf-text.a,$(top_builddir)/plugins/muxer/.libs/libbabeltrace-plugin-muxer.a,$(top_builddir)/plugins/writer/.libs/libbabeltrace-plugin-ctf-writer.a,--no-whole-archive
41 babeltrace_log_SOURCES = babeltrace-log.c
43 babeltrace_log_LDADD = \
44 $(top_builddir)/lib/libbabeltrace.la \
45 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
46 $(top_builddir)/compat/libcompat.la
48 if BABELTRACE_BUILD_WITH_LIBUUID
49 babeltrace_log_LDADD += -luuid
51 if BABELTRACE_BUILD_WITH_LIBC_UUID
52 babeltrace_log_LDADD += -lc
55 if BABELTRACE_BUILD_WITH_MINGW
56 babeltrace_log_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
57 babeltrace_bin_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
60 # Only used for in-tree execution and tests
61 babeltrace_SOURCES = $(babeltrace_bin_SOURCES)
62 babeltrace_LDFLAGS = $(babeltrace_bin_LDFLAGS)
63 babeltrace_LDADD = $(babeltrace_bin_LDADD)
64 babeltrace_CFLAGS = $(AM_CFLAGS) -DBT_SET_DEFAULT_IN_TREE_CONFIGURATION