summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-12 16:57:58 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-12 16:57:58 -0500
commit2afbbde4cb6aab900cdf41a27da126ccbc361e52 (patch)
tree535adc0208fb12a264d97572999dd4724b77dc9b /tests
parent98f1ff740af109f99cd35ae44108f3fc5842a4d5 (diff)
downloaddimension-2afbbde4cb6aab900cdf41a27da126ccbc361e52.tar.xz
Implement profile-guided optimization builds.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/Makefile.am14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/libdimension/Makefile.am b/tests/libdimension/Makefile.am
index fe19ad4..50fa645 100644
--- a/tests/libdimension/Makefile.am
+++ b/tests/libdimension/Makefile.am
@@ -28,11 +28,19 @@ check_PROGRAMS = error-test \
TESTS = $(check_PROGRAMS)
XFAIL_TESTS = error-test
-.PHONY: clean-local-png-test
-clean-local: clean-local-png-test
+.PHONY: clean-local-tests clean-local-png-test
+clean-local: clean-local-tests clean-local-png-test
libdimension_tests_la_SOURCES = tests.c tests.h
-libdimension_tests_la_LIBADD = $(top_builddir)/libdimension/libdimension.la
+
+if PGO
+libdimension_tests_la_LIBADD = $(top_builddir)/libdimension/libdimension-pgo.la
+clean-local-tests:
+ rm -rf ./pgo
+else
+libdimension_tests_la_LIBADD = $(top_builddir)/libdimension/libdimension.la
+clean-local-tests:
+endif
error_test_SOURCES = error.c
error_test_LDADD = libdimension-tests.la