# # Scale Stack # # Copyright 2010 Eric Day # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ACLOCAL_AMFLAGS = -I m4 LDADD = libscalestack.la AM_DEFAULT_SOURCE_EXT = .cc bin_PROGRAMS = check_PROGRAMS = noinst_PROGRAMS = lib_LTLIBRARIES = noinst_LTLIBRARIES = nobase_include_HEADERS = noinst_HEADERS = pkgplugin_LTLIBRARIES = CLEANFILES = DISTCLEANFILES = config/top.h EXTRA_DIST = \ docs/doxyfile \ docs/header.html.in \ test_run.sh # # Definitions for libscalestack. # lib_LTLIBRARIES += libscalestack.la libscalestack_la_SOURCES = \ scalestack/kernel/core.cc \ scalestack/kernel/exception.cc \ scalestack/kernel/log_console.cc \ scalestack/kernel/module.cc \ scalestack/kernel/option.cc nobase_include_HEADERS += \ scalestack/kernel/core.h \ scalestack/kernel/delete_pointer.h \ scalestack/kernel/exception.h \ scalestack/kernel/log.h \ scalestack/kernel/log_console.h \ scalestack/kernel/logger.h \ scalestack/kernel/module.h \ scalestack/kernel/option.h \ scalestack/kernel/service.h \ scalestack/kernel/test.h nobase_nodist_include_HEADERS = scalestack/kernel/macros.h EXTRA_DIST += scalestack/kernel/macros.h.in libscalestack_la_CXXFLAGS = \ $(AM_CXXFLAGS) \ $(NO_OLD_STYLE_CAST) \ -DBUILDING_SCALESTACK \ "-DSCALESTACK_MODULE_PATH=$(pkglibdir)" libscalestack_la_LIBADD = $(LIBDL_LIBS) $(GCOV_LIBS) libscalestack_la_LDFLAGS = \ $(AM_LDFLAGS) \ -version-info $(LIBSCALESTACK_VERSION) check_PROGRAMS += \ scalestack/kernel/test/core \ scalestack/kernel/test/module \ scalestack/kernel/test/option scalestack_kernel_test_core_CXXFLAGS = \ $(AM_CXXFLAGS) \ "-DSCALESTACK_SOURCE_PATH=\"$(srcdir)\"" EXTRA_DIST += \ scalestack/kernel/test/config_file1 \ scalestack/kernel/test/config_file2 \ scalestack/kernel/test/config_file3 \ scalestack/kernel/test/config_file4 \ scalestack/kernel/test/config_file5 # # Simple scalestack application. # bin_PROGRAMS += bin/scalestack bin_scalestack_SOURCES = bin/scalestack.cc # # Include module configuration. # include config/pandora-plugin.am # # Tests, docs, and code coverage commands. # TESTS = $(check_PROGRAMS) TESTS_ENVIRONMENT = ${top_srcdir}/test_run.sh check-verbose: @SCALESTACK_TEST_ARGS="v" make check check-debug: @SCALESTACK_TEST_ARGS="vvvv" make check check-valgrind: @SCALESTACK_TEST_PREFIX="valgrind -q --leak-check=full \ --show-reachable=yes --suppressions=valgrind.suppressions" make check check-valgrind-debug: @SCALESTACK_TEST_PREFIX="valgrind -q --leak-check=full \ --show-reachable=yes --suppressions=valgrind.suppressions" \ SCALESTACK_TEST_ARGS="vvv" make check check-gdb: @SCALESTACK_TEST_PREFIX="gdb -q" make check check-time: @SCALESTACK_TEST_PREFIX="/usr/bin/time" make check check-strace: @SCALESTACK_TEST_PREFIX="strace -c" make check check-truss: @SCALESTACK_TEST_PREFIX="truss -c" make check docs: all @echo "/**" > docs/mainpage.h @echo "@mainpage README" >> docs/mainpage.h @echo "
@htmlonly" >> docs/mainpage.h @cat ${top_srcdir}/README | \ sed 's/\(http[^ ]*\)/\1<\/a>/' >> docs/mainpage.h @echo "@endhtmlonly" >> docs/mainpage.h @echo "*/" >> docs/mainpage.h $(DOXYGEN) ${top_srcdir}/docs/doxyfile @rm docs/mainpage.h lcov: lcov-clean check @echo @echo "------------------------------------------------------" @echo "Make sure ./configure was run with '--enable-coverage'" @echo "------------------------------------------------------" @echo lcov --directory . --capture --base-directory . --output-file lcov.out lcov --remove lcov.out '/usr/include/*' --output-file lcov.out lcov --remove lcov.out '/usr/local/include/*' --output-file lcov.out genhtml --no-branch-coverage --legend --output-directory lcov \ --title "$(PACKAGE_STRING) " lcov.out lcov-clean: lcov --directory . --zerocounters