| 1 | AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -lpopt |
| 2 | |
| 3 | bin_PROGRAMS = babeltrace babeltrace-log |
| 4 | |
| 5 | babeltrace_SOURCES = \ |
| 6 | babeltrace.c |
| 7 | |
| 8 | # -Wl,--no-as-needed is needed for recent gold linker who seems to think |
| 9 | # it knows better and considers libraries with constructors having |
| 10 | # side-effects as dead code. Note: we put plugin dependencies on the |
| 11 | # executable rather than the library because libtool does not seem to |
| 12 | # issue the LDFLAGS before the rpaths, which makes it useless. |
| 13 | babeltrace_LDFLAGS = -Wl,--no-as-needed |
| 14 | babeltrace_LDADD = \ |
| 15 | $(top_builddir)/lib/libbabeltrace.la \ |
| 16 | $(top_builddir)/formats/libbabeltrace_registry.la \ |
| 17 | $(top_builddir)/formats/ctf/libctf.la \ |
| 18 | $(top_builddir)/formats/ctf-text/libctf-text.la \ |
| 19 | $(top_builddir)/formats/bt-dummy/libbt-dummy.la |
| 20 | |
| 21 | babeltrace_log_SOURCES = babeltrace-log.c |
| 22 | |
| 23 | babeltrace_log_LDADD = \ |
| 24 | $(top_builddir)/formats/libbabeltrace_registry.la \ |
| 25 | $(top_builddir)/formats/ctf/libctf.la |