From fe34cb380981c194b2ebdc37c34a2e947a8bb92d Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 23 Mar 2012 06:55:38 -0400 Subject: [PATCH] Create src/tests --- configure.ac | 7 +++++++ src/Makefile.am | 2 +- src/tests/Makefile.am | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/tests/Makefile.am diff --git a/configure.ac b/configure.ac index f2f7e92..b05a707 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,12 @@ AC_ARG_ENABLE([server], [build_server="yes"]) AM_CONDITIONAL([BUILD_SERVER], [test x"$build_server" != xno]) +AC_ARG_ENABLE([tests], + [AS_HELP_STRING([--enable-tests], [Build tests])], + [build_tests="$enableval"], + [build_tests="no"]) +AM_CONDITIONAL([BUILD_TESTS], [test x"$build_tests" != xno]) + AC_ARG_ENABLE([examples], [AS_HELP_STRING([--enable-examples], [Build the miscellaneous programs in src/examples @<:@no@:>@])], [build_examples="$enableval"], @@ -200,6 +206,7 @@ AC_CONFIG_FILES([ src/util/Makefile scripts/Makefile src/examples/Makefile + src/tests/Makefile man/Makefile ]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index f924ab0..2390f7c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1 +1 @@ -SUBDIRS = protobufs util crypto terminal network statesync frontend examples +SUBDIRS = protobufs util crypto terminal network statesync frontend examples tests diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am new file mode 100644 index 0000000..bc1e5d0 --- /dev/null +++ b/src/tests/Makefile.am @@ -0,0 +1 @@ +AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) -fno-default-inline -pipe