---
 tests/hello/Makefile.am    |    7 ++-----
 tests/progress/Makefile.am |    7 ++-----
 2 files changed, 4 insertions(+), 10 deletions(-)

--- a/tests/hello/Makefile.am
+++ b/tests/hello/Makefile.am
@@ -1,12 +1,9 @@
 check_PROGRAMS = otf_hello
 
 otf_hello_SOURCES = hello.c
-otf_hello_LDADD = \
-	$(top_builddir)/otflib/libopen-trace-format.la
+otf_hello_LDADD = -lopen-trace-format
 otf_hello_DEPENDENCIES = $(otf_hello_LDADD)
-otf_hello_CPPFLAGS = $(AM_CPPFLAGS) \
-	-I$(top_builddir)/otflib \
-	-I$(top_srcdir)/otflib
+otf_hello_CPPFLAGS = $(AM_CPPFLAGS)
 
 clean-local:
 	rm -f *.otf *.def *.events *.marker *.otf.z *.def.z *.events.z *.marker.z
--- a/tests/progress/Makefile.am
+++ b/tests/progress/Makefile.am
@@ -1,11 +1,8 @@
 check_PROGRAMS = otf_progress
 
 otf_progress_SOURCES = progress.c
-otf_progress_DEPENDENCIES = $(top_builddir)/otflib/libopen-trace-format.la
-otf_progress_LDADD = $(top_builddir)/otflib/libopen-trace-format.la
-otf_progress_CPPFLAGS = $(AM_CPPFLAGS) \
-	-I$(top_builddir)/otflib \
-	-I$(top_srcdir)/otflib
+otf_progress_LDADD = -lopen-trace-format
+otf_progress_CPPFLAGS = $(AM_CPPFLAGS)
 
 clean-local:
 	rm -f *.otf *.def *.events *.marker *.otf.z *.def.z *.events.z *.marker.z
