X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fcompile%2Fapi1%2Fhello%2FMakefile.am;fp=tests%2Fcompile%2Fapi1%2Fhello%2FMakefile.am;h=a4c8c9328b260570d5171adfa7af2fa8e630a6dd;hb=bebb067ef8020d5c36ab48271b0d9d9bb2b24e11;hp=0000000000000000000000000000000000000000;hpb=4405cc3e105e60c95939e595b8dddcd0940a0b92;p=lttng-ust.git diff --git a/tests/compile/api1/hello/Makefile.am b/tests/compile/api1/hello/Makefile.am new file mode 100644 index 00000000..a4c8c932 --- /dev/null +++ b/tests/compile/api1/hello/Makefile.am @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: LGPL-2.1-only + +AM_CPPFLAGS += -I$(srcdir) + +noinst_PROGRAMS = hello hello-compatapi1 + +hello_SOURCES = hello.c tp.c ust_tests_hello.h +hello_CFLAGS = -Werror=old-style-definition $(AM_CFLAGS) +hello_LDADD = \ + $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ + $(DL_LIBS) + +# Compile without API0 compat macros +hello_compatapi1_SOURCES = hello.c tp.c ust_tests_hello.h +hello_compatapi1_CFLAGS = -Werror=old-style-definition -DLTTNG_UST_COMPAT_API_VERSION=1 $(AM_CFLAGS) +hello_compatapi1_LDADD = \ + $(top_builddir)/src/lib/lttng-ust/liblttng-ust.la \ + $(DL_LIBS) + +EXTRA_DIST = README