Add utils.dummy component class, move plugins/trimmer to plugins/utils
[babeltrace.git] / converter / Makefile.am
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\"
4 AM_LDFLAGS = -lpopt
5
6 bin_PROGRAMS = babeltrace.bin babeltrace-log
7 noinst_PROGRAMS = babeltrace
8 #check_PROGRAMS = babeltrace
9
10 babeltrace_bin_SOURCES = \
11 babeltrace.c \
12 babeltrace-cfg.c \
13 babeltrace-cfg.h \
14 default-cfg.h \
15 default-cfg.c \
16 babeltrace-cfg-connect.h \
17 babeltrace-cfg-connect.c
18
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
32
33 if ENABLE_DEBUG_INFO
34 babeltrace_bin_LDADD += $(top_builddir)/lib/libdebug-info.la
35 endif
36
37 if BUILT_IN_PLUGINS
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
39 endif
40
41 babeltrace_log_SOURCES = babeltrace-log.c
42
43 babeltrace_log_LDADD = \
44 $(top_builddir)/lib/libbabeltrace.la \
45 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
46 $(top_builddir)/compat/libcompat.la
47
48 if BABELTRACE_BUILD_WITH_LIBUUID
49 babeltrace_log_LDADD += -luuid
50 endif
51 if BABELTRACE_BUILD_WITH_LIBC_UUID
52 babeltrace_log_LDADD += -lc
53 endif
54
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
58 endif
59
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
This page took 0.040947 seconds and 4 git commands to generate.