From: Michal 'vorner' Vaner Date: Thu, 4 Apr 2013 09:06:26 +0000 (+0200) Subject: [2871] Empty benchmark binary X-Git-Tag: bind10-1.1.0beta2-release~8^2~10^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=146f2e6c679ee84783d3b260cf96dac35de9511b;p=thirdparty%2Fkea.git [2871] Empty benchmark binary Create all the necessary makefiles and other stuff, to have a place to put the benchmarks to later. --- diff --git a/configure.ac b/configure.ac index eff05ec672..511b422003 100644 --- a/configure.ac +++ b/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 diff --git a/src/bin/resolver/Makefile.am b/src/bin/resolver/Makefile.am index 47e242c1b4..a549e6ab0f 100644 --- a/src/bin/resolver/Makefile.am +++ b/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 diff --git a/src/bin/resolver/bench/Makefile.am b/src/bin/resolver/bench/Makefile.am new file mode 100644 index 0000000000..da968819a3 --- /dev/null +++ b/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) diff --git a/src/bin/resolver/bench/main.cc b/src/bin/resolver/bench/main.cc new file mode 100644 index 0000000000..0a859cee86 --- /dev/null +++ b/src/bin/resolver/bench/main.cc @@ -0,0 +1,3 @@ +int main(int, const char**) { + return 0; +}