Commit 434281db authored by Roland Levillain's avatar Roland Levillain
Browse files

Make Milena tools (milena/tools/) optional.

	* configure.ac: Add option `--enable-tools'.
	(ENABLE_TOOLS): New conditional.
	Gather lines related to tools.
	* milena/Makefile.am (SUBDIRS) [ENABLE_TOOLS]: Add tools.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3814 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent d521088e
2009-05-11 Roland Levillain <roland@lrde.epita.fr>
Make Milena tools (milena/tools/) optional.
* configure.ac: Add option `--enable-tools'.
(ENABLE_TOOLS): New conditional.
Gather lines related to tools.
* milena/Makefile.am (SUBDIRS) [ENABLE_TOOLS]: Add tools.
2009-05-11 Roland Levillain <roland@lrde.epita.fr>
Make Milena applications (milena/apps/) optional.
......
......@@ -87,15 +87,7 @@ if test "$GXX" = yes && test -z "$TESTS_CXXFLAGS_DEBUG"; then
TESTS_CXXFLAGS_DEBUG="-O0 -ggdb -Wall -W -D_GLIBCXX_DEBUG -D_GLIBCXX_CONCEPT_CHECKS"
fi
# ----------------- #
# Flags for tools. #
# ----------------- #
AC_ARG_VAR([TOOLS_CXXFLAGS])
# We want fast binaries for tools.
if test "$GXX" = yes && test -z "$TOOLS_CXXFLAGS"; then
TOOLS_CXXFLAGS="-O3 -DNDEBUG -ggdb -Wall -W"
fi
## ------------------ ##
......@@ -176,10 +168,8 @@ AC_CONFIG_FILES([
milena/doc/tutorial/Makefile
milena/doc/white_paper/Makefile
milena/mesh/Makefile
milena/tools/Makefile
])
## ------- ##
## Tests. ##
## ------- ##
......@@ -333,4 +323,24 @@ if test "$GXX" = yes && test -z "$APPS_CXXFLAGS"; then
APPS_CXXFLAGS="-O3 -DNDEBUG -ggdb -Wall -W"
fi
## ------- ##
## Tools. ##
## ------- ##
AC_ARG_ENABLE([tools],
[AS_HELP_STRING([--enable-tools],
[enable tools])])
AM_CONDITIONAL([ENABLE_TOOLS], [test "x$enable_tools" = "xyes"])
# Ask for the creation of tools' Makefiles.
AC_CONFIG_FILES([milena/tools/Makefile])
# Flags for tools.
AC_ARG_VAR([TOOLS_CXXFLAGS])
# We want fast binaries for tools.
if test "$GXX" = yes && test -z "$TOOLS_CXXFLAGS"; then
TOOLS_CXXFLAGS="-O3 -DNDEBUG -ggdb -Wall -W"
fi
AC_OUTPUT
......@@ -9,6 +9,10 @@ if ENABLE_APPS
SUBDIRS += apps
endif ENABLE_APPS
if ENABLE_TOOLS
SUBDIRS += tools
endif ENABLE_TOOLS
.PHONY: doc tutorial tools
doc:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment