X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tests%2Fhello%2FMakefile.am;h=847e64d907200685a2f3a8c41560bf19f835bbce;hb=9501d22f55b3a23f382f631c99b2325d1419b5da;hp=ce0ad2fe86d1af397482f6cb9bfabe42650ca17d;hpb=fbca6b624335eef18c8d86194aeb101a720168f4;p=lttng-ust.git diff --git a/tests/hello/Makefile.am b/tests/hello/Makefile.am index ce0ad2fe..847e64d9 100644 --- a/tests/hello/Makefile.am +++ b/tests/hello/Makefile.am @@ -1,8 +1,15 @@ -AM_CPPFLAGS = -I$(top_builddir)/include +AM_CPPFLAGS = -I$(top_srcdir)/include -Wsystem-headers noinst_PROGRAMS = hello -hello_SOURCES = hello.c tp.c tp.h -hello_LDADD = $(top_builddir)/libust/libust.la +hello_SOURCES = hello.c tp.c ust_tests_hello.h +hello_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la + +if LTTNG_UST_BUILD_WITH_LIBDL +hello_LDADD += -ldl +endif +if LTTNG_UST_BUILD_WITH_LIBC_DL +hello_LDADD += -lc +endif noinst_SCRIPTS = run EXTRA_DIST = run