Commit | Line | Data |
---|---|---|
9fec62f7 CB |
1 | AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(srcdir) -O2 -g |
2 | AM_LDFLAGS = | |
3 | ||
4 | if LTTNG_TOOLS_BUILD_WITH_LIBDL | |
5 | AM_LDFLAGS += -ldl | |
6 | endif | |
7 | if LTTNG_TOOLS_BUILD_WITH_LIBC_DL | |
8 | AM_LDFLAGS += -lc | |
9 | endif | |
10 | ||
11 | if HAVE_LIBLTTNG_UST_CTL | |
12 | noinst_PROGRAMS = gen-ust-events | |
13 | gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h | |
14 | gen_ust_events_LDADD = -llttng-ust | |
15 | endif | |
16 | ||
9d806fbf CB |
17 | noinst_SCRIPTS = test_unsupported_op test_invalid_filter test_valid_filter |
18 | EXTRA_DIST = test_unsupported_op test_invalid_filter test_valid_filter | |
c83e7ca0 DG |
19 | |
20 | all-local: | |
21 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
22 | for script in $(EXTRA_DIST); do \ | |
23 | cp -f $(srcdir)/$$script $(builddir); \ | |
24 | done; \ | |
25 | fi | |
26 | ||
27 | clean-local: | |
28 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
29 | for script in $(EXTRA_DIST); do \ | |
30 | rm -f $(builddir)/$$script; \ | |
31 | done; \ | |
32 | fi |