| 1 | # SPDX-FileCopyrightText: 2023 EfficiOS, Inc |
| 2 | # |
| 3 | # SPDX-License-Identifier: LGPL-2.1-only |
| 4 | |
| 5 | AM_CPPFLAGS += -I$(top_srcdir)/tests/utils -I$(srcdir) |
| 6 | |
| 7 | noinst_LTLIBRARIES = \ |
| 8 | libfakeust0.la \ |
| 9 | libone.la \ |
| 10 | libzero.la |
| 11 | |
| 12 | libfakeust0_la_SOURCES = fake-ust.c fake-ust.h |
| 13 | libfakeust0_la_LDFLAGS = -module -shared -avoid-version -rpath $(abs_builddir)/.libs/ |
| 14 | |
| 15 | libzero_la_SOURCES = libzero.c libzero.h |
| 16 | libzero_la_LDFLAGS = -module -shared -avoid-version -rpath $(abs_builddir)/.libs/ |
| 17 | libzero_la_LIBADD = libfakeust0.la |
| 18 | |
| 19 | libone_la_SOURCES = libone.c libone.h |
| 20 | libone_la_LDFLAGS = -module -shared -avoid-version -rpath $(abs_builddir)/.libs/ |
| 21 | libone_la_LIBADD = $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la |
| 22 | |
| 23 | noinst_PROGRAMS = \ |
| 24 | app_noust \ |
| 25 | app_noust_dlopen \ |
| 26 | app_noust_indirect_abi0 \ |
| 27 | app_noust_indirect_abi0_abi1 \ |
| 28 | app_noust_indirect_abi1 \ |
| 29 | app_ust \ |
| 30 | app_ust_dlopen \ |
| 31 | app_ust_indirect_abi0 \ |
| 32 | app_ust_indirect_abi0_abi1 \ |
| 33 | app_ust_indirect_abi1 |
| 34 | |
| 35 | app_ust_SOURCES = app_ust.c tp.c ust_tests_hello.h |
| 36 | app_ust_LDADD = \ |
| 37 | $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ |
| 38 | $(DL_LIBS) |
| 39 | |
| 40 | app_ust_indirect_abi0_SOURCES = app_ust.c tp.c ust_tests_hello.h |
| 41 | app_ust_indirect_abi0_CFLAGS = -DUSE_LIBZERO $(AM_CFLAGS) |
| 42 | app_ust_indirect_abi0_LDADD = \ |
| 43 | $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ |
| 44 | libzero.la \ |
| 45 | $(DL_LIBS) |
| 46 | |
| 47 | app_ust_indirect_abi1_SOURCES = app_ust.c tp.c ust_tests_hello.h |
| 48 | app_ust_indirect_abi1_CFLAGS = -DUSE_LIBONE $(AM_CFLAGS) |
| 49 | app_ust_indirect_abi1_LDADD = \ |
| 50 | $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ |
| 51 | libone.la \ |
| 52 | $(DL_LIBS) |
| 53 | |
| 54 | app_ust_indirect_abi0_abi1_SOURCES = app_ust.c tp.c ust_tests_hello.h |
| 55 | app_ust_indirect_abi0_abi1_CFLAGS = -DUSE_LIBZERO -DUSE_LIBONE $(AM_CFLAGS) |
| 56 | app_ust_indirect_abi0_abi1_LDADD = \ |
| 57 | $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ |
| 58 | libzero.la \ |
| 59 | libone.la \ |
| 60 | $(DL_LIBS) |
| 61 | |
| 62 | app_ust_dlopen_SOURCES = app_ust_dlopen.c tp.c ust_tests_hello.h |
| 63 | app_ust_dlopen_LDADD = \ |
| 64 | $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ |
| 65 | $(DL_LIBS) |
| 66 | |
| 67 | app_noust_SOURCES = app_noust.c |
| 68 | |
| 69 | app_noust_indirect_abi0_SOURCES = app_noust.c |
| 70 | app_noust_indirect_abi0_CFLAGS = -DUSE_LIBZERO $(AM_CFLAGS) |
| 71 | app_noust_indirect_abi0_LDADD = libzero.la |
| 72 | |
| 73 | app_noust_indirect_abi1_SOURCES = app_noust.c |
| 74 | app_noust_indirect_abi1_CFLAGS = -DUSE_LIBONE $(AM_CFLAGS) |
| 75 | app_noust_indirect_abi1_LDADD = libone.la |
| 76 | |
| 77 | app_noust_indirect_abi0_abi1_SOURCES = app_noust.c |
| 78 | app_noust_indirect_abi0_abi1_CFLAGS = -DUSE_LIBZERO -DUSE_LIBONE $(AM_CFLAGS) |
| 79 | app_noust_indirect_abi0_abi1_LDADD = libzero.la libone.la |
| 80 | |
| 81 | app_noust_dlopen_SOURCES = app_noust_dlopen.c |
| 82 | app_noust_dlopen_LDADD = \ |
| 83 | $(DL_LIBS) |
| 84 | |
| 85 | dist_noinst_SCRIPTS = test_abi0_conflict |