summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bench/libdimension/Makefile.am6
-rw-r--r--tests/libdimension/Makefile.am7
2 files changed, 9 insertions, 4 deletions
diff --git a/bench/libdimension/Makefile.am b/bench/libdimension/Makefile.am
index 609ecd5..8b124bc 100644
--- a/bench/libdimension/Makefile.am
+++ b/bench/libdimension/Makefile.am
@@ -22,13 +22,13 @@ INCLUDES = -I$(top_srcdir)/libdimension
EXTRA_PROGRAMS = bench-array bench-geometry bench-kD_splay_tree
bench_array_SOURCES = array.c
-bench_array_LDADD = -lsandglass $(top_srcdir)/libdimension/libdimension.la
+bench_array_LDADD = -lsandglass $(top_builddir)/libdimension/libdimension.la
bench_geometry_SOURCES = geometry.c
-bench_geometry_LDADD = -lsandglass $(top_srcdir)/libdimension/libdimension.la
+bench_geometry_LDADD = -lsandglass $(top_builddir)/libdimension/libdimension.la
bench_kD_splay_tree_SOURCES = kD_splay_tree.c
-bench_kD_splay_tree_LDADD = -lsandglass $(top_srcdir)/libdimension/libdimension.la
+bench_kD_splay_tree_LDADD = -lsandglass $(top_builddir)/libdimension/libdimension.la
bench: bench-array$(EXEEXT) bench-geometry$(EXEEXT) bench-kD_splay_tree$(EXEEXT)
./bench-array$(EXEEXT)
diff --git a/tests/libdimension/Makefile.am b/tests/libdimension/Makefile.am
index 07a4b8d..fe19ad4 100644
--- a/tests/libdimension/Makefile.am
+++ b/tests/libdimension/Makefile.am
@@ -28,8 +28,11 @@ check_PROGRAMS = error-test \
TESTS = $(check_PROGRAMS)
XFAIL_TESTS = error-test
+.PHONY: clean-local-png-test
+clean-local: clean-local-png-test
+
libdimension_tests_la_SOURCES = tests.c tests.h
-libdimension_tests_la_LIBADD = $(top_srcdir)/libdimension/libdimension.la
+libdimension_tests_la_LIBADD = $(top_builddir)/libdimension/libdimension.la
error_test_SOURCES = error.c
error_test_LDADD = libdimension-tests.la
@@ -42,6 +45,8 @@ kD_splay_tree_test_LDADD = libdimension-tests.la
png_test_SOURCES = png.c
png_test_LDADD = libdimension-tests.la
+clean-local-png-test:
+ rm -f *.png
gl_test_SOURCES = gl.c
gl_test_LDADD = libdimension-tests.la