Browse Source

[2871] Empty benchmark binary

Create all the necessary makefiles and other stuff, to have a place to
put the benchmarks to later.
Michal 'vorner' Vaner 12 years ago
parent
commit
146f2e6c67
4 changed files with 23 additions and 1 deletions
  1. 1 0
      configure.ac
  2. 1 1
      src/bin/resolver/Makefile.am
  3. 18 0
      src/bin/resolver/bench/Makefile.am
  4. 3 0
      src/bin/resolver/bench/main.cc

+ 1 - 0
configure.ac

@@ -1190,6 +1190,7 @@ AC_CONFIG_FILES([Makefile
                  src/bin/dhcp4/tests/Makefile
                  src/bin/resolver/Makefile
                  src/bin/resolver/tests/Makefile
+                 src/bin/resolver/bench/Makefile
                  src/bin/sysinfo/Makefile
                  src/bin/sockcreator/Makefile
                  src/bin/sockcreator/tests/Makefile

+ 1 - 1
src/bin/resolver/Makefile.am

@@ -1,4 +1,4 @@
-SUBDIRS = . tests
+SUBDIRS = . tests bench
 
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin

+ 18 - 0
src/bin/resolver/bench/Makefile.am

@@ -0,0 +1,18 @@
+AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
+AM_CPPFLAGS += -I$(top_builddir)/src/lib/dns -I$(top_srcdir)/src/bin
+AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
+AM_CPPFLAGS += -I$(top_builddir)/src/bin/resolver
+AM_CPPFLAGS += $(BOOST_INCLUDES)
+
+AM_CXXFLAGS = $(B10_CXXFLAGS)
+
+if USE_STATIC_LINK
+AM_LDFLAGS = -static
+endif
+
+CLEANFILES = *.gcno *.gcda
+
+noinst_PROGRAMS = resolver-bench
+
+resolver_bench_SOURCES = main.cc
+resolver_bench_LDADD  = $(GTEST_LDADD)

+ 3 - 0
src/bin/resolver/bench/main.cc

@@ -0,0 +1,3 @@
+int main(int, const char**) {
+    return 0;
+}