Commit | Line | Data |
---|---|---|
a2029731 MD |
1 | AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include |
2 | AM_LDFLAGS = -lpopt | |
4c8bfb7e | 3 | |
1e3d1cee | 4 | bin_PROGRAMS = babeltrace babeltrace-log |
4c8bfb7e | 5 | |
847bf71a MD |
6 | babeltrace_SOURCES = \ |
7 | babeltrace.c | |
8 | ||
e7c058b4 MD |
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 | |
30827463 | 11 | # side-effects as dead code. |
e7c058b4 | 12 | babeltrace_LDFLAGS = -Wl,--no-as-needed |
847bf71a | 13 | babeltrace_LDADD = \ |
6f3077a2 | 14 | $(top_builddir)/lib/libbabeltrace.la \ |
30827463 MD |
15 | $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \ |
16 | $(top_builddir)/formats/ctf-text/libbabeltrace-ctf-text.la \ | |
17 | $(top_builddir)/formats/bt-dummy/libbabeltrace-dummy.la | |
1e3d1cee MD |
18 | |
19 | babeltrace_log_SOURCES = babeltrace-log.c | |
20 | ||
21 | babeltrace_log_LDADD = \ | |
e4195791 | 22 | $(top_builddir)/lib/libbabeltrace.la \ |
30827463 | 23 | $(top_builddir)/formats/ctf/libbabeltrace-ctf.la |
a4dfa07b MD |
24 | |
25 | if BABELTRACE_BUILD_WITH_LIBUUID | |
26 | babeltrace_log_LDADD += -luuid | |
27 | endif | |
28 | if BABELTRACE_BUILD_WITH_LIBC_UUID | |
29 | babeltrace_log_LDADD += -lc | |
30 | endif |