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