| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | AM_CPPFLAGS += -I$(top_srcdir)/tests -I$(srcdir) |
| 4 | |
| 5 | if HAVE_LIBLTTNG_UST_CTL |
| 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 | |
| 13 | noinst_PROGRAMS = gen-ust-events |
| 14 | gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h |
| 15 | gen_ust_events_LDADD = $(UST_LIBS) $(DL_LIBS) |
| 16 | endif |
| 17 | |
| 18 | noinst_SCRIPTS = test_unsupported_op test_invalid_filter test_valid_filter |
| 19 | EXTRA_DIST = test_unsupported_op test_invalid_filter test_valid_filter |
| 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 |