| 1 | # SPDX-FileCopyrightText: 2023 EfficiOS, Inc |
| 2 | # |
| 3 | # SPDX-License-Identifier: LGPL-2.1-only |
| 4 | |
| 5 | AM_CPPFLAGS += -I$(srcdir) |
| 6 | |
| 7 | noinst_PROGRAMS = hello hello-compatapi1 |
| 8 | |
| 9 | hello_SOURCES = hello.c tp.c ust_tests_hello.h |
| 10 | hello_CFLAGS = -Werror=old-style-definition $(AM_CFLAGS) |
| 11 | hello_LDADD = \ |
| 12 | $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ |
| 13 | $(DL_LIBS) |
| 14 | |
| 15 | # Compile without API0 compat macros |
| 16 | hello_compatapi1_SOURCES = hello.c tp.c ust_tests_hello.h |
| 17 | hello_compatapi1_CFLAGS = -Werror=old-style-definition -DLTTNG_UST_COMPAT_API_VERSION=1 $(AM_CFLAGS) |
| 18 | hello_compatapi1_LDADD = \ |
| 19 | $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ |
| 20 | $(DL_LIBS) |
| 21 | |
| 22 | EXTRA_DIST = \ |
| 23 | Makefile.example.bsd \ |
| 24 | Makefile.example.linux \ |
| 25 | README.md |