summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/.gitignore3
-rw-r--r--ext/Makefile.am5
-rw-r--r--ext/benchmark/Makefile.am11
3 files changed, 19 insertions, 0 deletions
diff --git a/ext/.gitignore b/ext/.gitignore
new file mode 100644
index 0000000000..7374b7c304
--- /dev/null
+++ b/ext/.gitignore
@@ -0,0 +1,3 @@
+/benchmark
+/gtest
+
diff --git a/ext/Makefile.am b/ext/Makefile.am
index 6cfbdee32f..9a2e830f58 100644
--- a/ext/Makefile.am
+++ b/ext/Makefile.am
@@ -3,3 +3,8 @@ SUBDIRS = coroutine
if HAVE_GTEST_SOURCE
SUBDIRS += gtest
endif
+
+if HAVE_BENCHMARK_SOURCE
+SUBDIRS += benchmark
+endif
+
diff --git a/ext/benchmark/Makefile.am b/ext/benchmark/Makefile.am
new file mode 100644
index 0000000000..1b69232217
--- /dev/null
+++ b/ext/benchmark/Makefile.am
@@ -0,0 +1,11 @@
+SUBDIRS = .
+
+CLEANFILES = benchmark.cc
+
+noinst_LIBRARIES = libbenchmark.a
+libbenchmark_a_CXXFLAGS = $(BENCHMARK_INCLUDES) $(AM_CXXFLAGS)
+nodist_libbenchmark_a_SOURCES = benchmark.cc
+
+benchmark.cc: $(BENCHMARK_SOURCE)/src/benchmark.cc
+ cp -p $(BENCHMARK_SOURCE)/src/benchmark.cc $@
+