X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2FMakefile.am;h=2b16f1e4baa93e3958ff6a9dd96a050dc5d7a306;hp=3ecca8c2c24d61f3637f78d090479eabc0832d9b;hb=9843982dca5a80c001fc5989a9ce5a2283b0740f;hpb=4c8bfb7e0a9cef6e74cefa38ed54bf8cbd424183 diff --git a/converter/Makefile.am b/converter/Makefile.am index 3ecca8c2..2b16f1e4 100644 --- a/converter/Makefile.am +++ b/converter/Makefile.am @@ -1,12 +1,26 @@ -AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include +AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -lpopt -bin_PROGRAMS = babeltrace +bin_PROGRAMS = babeltrace babeltrace-log babeltrace_SOURCES = \ babeltrace.c +# -Wl,--no-as-needed is needed for recent gold linker who seems to think +# it knows better and considers libraries with constructors having +# side-effects as dead code. Note: we put plugin dependencies on the +# executable rather than the library because libtool does not seem to +# issue the LDFLAGS before the rpaths, which makes it useless. +babeltrace_LDFLAGS = -Wl,--no-as-needed babeltrace_LDADD = \ - $(top_srcdir)/types/libtypes.a \ - $(top_srcdir)/formats/libregistry.a + $(top_builddir)/lib/libbabeltrace.la \ + $(top_builddir)/formats/libbabeltrace_registry.la \ + $(top_builddir)/formats/ctf/libctf.la \ + $(top_builddir)/formats/ctf/metadata/libctf-ast.la \ + $(top_builddir)/formats/ctf-text/libctf-text.la \ + $(top_builddir)/formats/bt-dummy/libbt-dummy.la +babeltrace_log_SOURCES = babeltrace-log.c +babeltrace_log_LDADD = \ + $(top_builddir)/formats/libbabeltrace_registry.la \ + $(top_builddir)/formats/ctf/libctf.la