2014-01-23 13:38:03 +00:00
|
|
|
SUBDIRS = src man conf init testing
|
2009-07-16 08:52:14 +00:00
|
|
|
|
2017-03-08 10:00:22 +00:00
|
|
|
if USE_FUZZING
|
|
|
|
SUBDIRS += fuzz
|
|
|
|
endif
|
|
|
|
|
2009-07-16 08:52:14 +00:00
|
|
|
if USE_SCRIPTS
|
|
|
|
SUBDIRS += scripts
|
|
|
|
endif
|
|
|
|
|
2013-04-10 13:36:14 +00:00
|
|
|
if USE_SILENT_RULES
|
|
|
|
AM_MAKEFLAGS = -s
|
|
|
|
endif
|
|
|
|
|
2009-09-07 13:10:01 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4/config
|
2009-09-07 07:31:31 +00:00
|
|
|
|
2012-02-17 14:39:25 +00:00
|
|
|
EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk
|
2010-07-12 13:28:55 +00:00
|
|
|
CLEANFILES = Doxyfile
|
2012-02-17 14:39:25 +00:00
|
|
|
BUILT_SOURCES = Android.common.mk
|
|
|
|
MAINTAINERCLEANFILES = Android.common.mk
|
2010-03-05 12:11:58 +00:00
|
|
|
|
2012-07-11 09:16:31 +00:00
|
|
|
if USE_DEV_HEADERS
|
2012-07-03 14:45:12 +00:00
|
|
|
config_includedir = $(ipseclibdir)/include
|
|
|
|
nodist_config_include_HEADERS = config.h
|
2012-07-11 09:16:31 +00:00
|
|
|
endif
|
2012-07-03 14:45:12 +00:00
|
|
|
|
2018-11-09 15:48:40 +00:00
|
|
|
# we can't (and shouldn't) install/uninstall system files during make distcheck,
|
|
|
|
# so override the autodetected path for systemd units
|
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--with-systemdsystemunitdir='$$(prefix)/lib/systemd/system'
|
|
|
|
|
2014-02-06 18:21:54 +00:00
|
|
|
# we leave config files behind intentionally so prevent distcheck from complaining
|
2016-09-27 08:08:15 +00:00
|
|
|
distuninstallcheck_listfiles = find . -type f \! -name '*.conf' \! -name '*.secrets' -print
|
2014-02-06 18:21:54 +00:00
|
|
|
|
2013-07-17 12:04:41 +00:00
|
|
|
Android.common.mk : Android.common.mk.in configure.ac
|
2013-04-10 13:35:55 +00:00
|
|
|
$(AM_V_GEN) \
|
2010-03-05 12:11:58 +00:00
|
|
|
sed \
|
|
|
|
-e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
|
|
|
|
$(srcdir)/$@.in > $@
|
2006-05-19 12:10:06 +00:00
|
|
|
|
|
|
|
Doxyfile : Doxyfile.in
|
2013-04-10 13:35:55 +00:00
|
|
|
$(AM_V_GEN) \
|
2006-05-19 12:10:06 +00:00
|
|
|
sed \
|
|
|
|
-e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
|
|
|
|
-e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
|
2015-03-19 11:17:03 +00:00
|
|
|
-e "s:\@SRC_DIR\@:$(srcdir):g" \
|
2009-04-30 17:13:45 +00:00
|
|
|
$(srcdir)/$@.in > $@
|
2006-05-19 12:10:06 +00:00
|
|
|
|
|
|
|
apidoc : Doxyfile
|
2015-04-16 12:37:16 +00:00
|
|
|
@test -d apidoc || doxygen
|
2015-04-20 15:40:52 +00:00
|
|
|
@! find Doxyfile $(top_srcdir)/src/ \( -name '*.h' -o -name '*.md' \) -newer apidoc | \
|
2015-04-16 12:37:16 +00:00
|
|
|
grep -q '' || doxygen && touch apidoc
|
2010-07-12 13:28:55 +00:00
|
|
|
|
2013-03-27 16:41:04 +00:00
|
|
|
cov-reset-common:
|
2013-03-27 10:03:56 +00:00
|
|
|
@rm -rf $(top_builddir)/coverage
|
2014-02-19 11:41:56 +00:00
|
|
|
@find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcda" -delete
|
2013-03-27 16:41:04 +00:00
|
|
|
|
|
|
|
if COVERAGE
|
|
|
|
cov-reset: cov-reset-common
|
2013-03-27 10:03:56 +00:00
|
|
|
@lcov --zerocounters --directory $(top_builddir)
|
|
|
|
|
|
|
|
cov-report:
|
|
|
|
@mkdir $(top_builddir)/coverage
|
2013-11-21 10:05:21 +00:00
|
|
|
lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \
|
|
|
|
--rc lcov_branch_coverage=1
|
2017-03-15 14:54:38 +00:00
|
|
|
lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' '*/suites/*' '/usr*' \
|
2017-08-21 09:08:59 +00:00
|
|
|
-o $(abs_top_builddir)/coverage/coverage.cleaned.info \
|
2013-11-21 10:05:21 +00:00
|
|
|
--rc lcov_branch_coverage=1
|
2014-03-11 13:19:59 +00:00
|
|
|
genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \
|
2013-03-27 10:03:56 +00:00
|
|
|
-t "$(PACKAGE_STRING)" \
|
|
|
|
-o $(top_builddir)/coverage/html \
|
|
|
|
-p `readlink -m $(abs_top_srcdir)`/src \
|
2013-03-27 16:41:04 +00:00
|
|
|
$(top_builddir)/coverage/coverage.cleaned.info
|
2013-03-27 10:03:56 +00:00
|
|
|
@echo "Coverage Report at $(top_builddir)/coverage/html" >&2
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
@$(MAKE) cov-reset
|
|
|
|
@$(MAKE) check
|
|
|
|
@$(MAKE) cov-report
|
|
|
|
else
|
|
|
|
coverage:
|
|
|
|
@echo "reconfigure with --enable-coverage"
|
|
|
|
endif
|
|
|
|
|
2013-03-27 16:41:04 +00:00
|
|
|
clean-local: cov-reset-common
|
2014-02-19 11:41:56 +00:00
|
|
|
@find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcno" -delete
|
2013-03-27 16:41:04 +00:00
|
|
|
@rm -rf apidoc
|
|
|
|
|
2015-04-16 12:37:16 +00:00
|
|
|
.PHONY: cov-reset-common cov-reset cov-report coverage apidoc
|