Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
343af227 | 3 | AM_CPPFLAGS += -I$(top_srcdir)/tests -I$(srcdir) |
9fec62f7 | 4 | |
9fec62f7 | 5 | if HAVE_LIBLTTNG_UST_CTL |
19708280 MJ |
6 | # Disable some warnings flags to accomodate the tracepoint headers |
7 | WARN_FLAGS = \ | |
8 | -Wno-redundant-decls | |
9 | ||
10 | AM_CFLAGS += $(WARN_FLAGS) | |
11 | AM_CXXFLAGS += $(WARN_FLAGS) | |
12 | ||
9fec62f7 CB |
13 | noinst_PROGRAMS = gen-ust-events |
14 | gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h | |
20dd2de1 | 15 | gen_ust_events_LDADD = $(UST_LIBS) $(DL_LIBS) |
9fec62f7 CB |
16 | endif |
17 | ||
9d806fbf CB |
18 | noinst_SCRIPTS = test_unsupported_op test_invalid_filter test_valid_filter |
19 | EXTRA_DIST = test_unsupported_op test_invalid_filter test_valid_filter | |
c83e7ca0 DG |
20 | |
21 | all-local: | |
22 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
23 | for script in $(EXTRA_DIST); do \ | |
24 | cp -f $(srcdir)/$$script $(builddir); \ | |
25 | done; \ | |
26 | fi | |
27 | ||
28 | clean-local: | |
29 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
30 | for script in $(EXTRA_DIST); do \ | |
31 | rm -f $(builddir)/$$script; \ | |
32 | done; \ | |
33 | fi |