| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | AM_CPPFLAGS += -I$(srcdir) |
| 4 | |
| 5 | # Disable some warnings flags to accomodate the tracepoint headers |
| 6 | AM_CFLAGS += \ |
| 7 | -Wno-redundant-decls |
| 8 | |
| 9 | noinst_PROGRAMS = daemon |
| 10 | daemon_SOURCES = daemon.c ust_tests_daemon.h |
| 11 | daemon_LDADD = $(UST_LIBS) -llttng-ust-fork $(DL_LIBS) |
| 12 | |
| 13 | noinst_SCRIPTS = test_daemon test_daemon.py |
| 14 | EXTRA_DIST = test_daemon test_daemon.py |
| 15 | |
| 16 | all-local: |
| 17 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 18 | for script in $(EXTRA_DIST); do \ |
| 19 | cp -f $(srcdir)/$$script $(builddir); \ |
| 20 | done; \ |
| 21 | fi |
| 22 | |
| 23 | clean-local: |
| 24 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 25 | for script in $(EXTRA_DIST); do \ |
| 26 | rm -f $(builddir)/$$script; \ |
| 27 | done; \ |
| 28 | fi |