]> git.ipfire.org Git - people/ms/strongswan.git/blame - Makefile.am
aesni: Implement 256-bit key schedule
[people/ms/strongswan.git] / Makefile.am
CommitLineData
c75acc4c 1SUBDIRS = src man conf init testing
cf00cffe
TB
2
3if USE_SCRIPTS
4 SUBDIRS += scripts
5endif
6
d0f01a58
MW
7if USE_SILENT_RULES
8 AM_MAKEFLAGS = -s
9endif
10
c0e56a66 11ACLOCAL_AMFLAGS = -I m4/config
e455ae13 12
3fa8d773 13EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk
dcb4651d 14CLEANFILES = Doxyfile
3fa8d773
TB
15BUILT_SOURCES = Android.common.mk
16MAINTAINERCLEANFILES = Android.common.mk
807c12ce 17
b188f231 18if USE_DEV_HEADERS
7300eb29
MW
19config_includedir = $(ipseclibdir)/include
20nodist_config_include_HEADERS = config.h
b188f231 21endif
7300eb29 22
127f65db
TB
23# we leave config files behind intentionally so prevent distcheck from complaining
24distuninstallcheck_listfiles = find . -type f \! -name '*.conf' -print
25
c577b5eb 26Android.common.mk : Android.common.mk.in configure.ac
0be946dc 27 $(AM_V_GEN) \
807c12ce
TB
28 sed \
29 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
30 $(srcdir)/$@.in > $@
b1e69188
MW
31
32Doxyfile : Doxyfile.in
0be946dc 33 $(AM_V_GEN) \
b1e69188
MW
34 sed \
35 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
36 -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
945fdeb9 37 -e "s:\@SRC_DIR\@:$(srcdir):g" \
ea7e89c7 38 $(srcdir)/$@.in > $@
b1e69188
MW
39
40apidoc : Doxyfile
41 doxygen
dcb4651d 42
ab73ae67 43cov-reset-common:
1f14b4a1 44 @rm -rf $(top_builddir)/coverage
6122bfd2 45 @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcda" -delete
ab73ae67
TB
46
47if COVERAGE
48cov-reset: cov-reset-common
1f14b4a1
TB
49 @lcov --zerocounters --directory $(top_builddir)
50
51cov-report:
52 @mkdir $(top_builddir)/coverage
906a4fd1
TB
53 lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \
54 --rc lcov_branch_coverage=1
ab73ae67 55 lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
906a4fd1
TB
56 -o $(top_builddir)/coverage/coverage.cleaned.info \
57 --rc lcov_branch_coverage=1
b98551c7 58 genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \
1f14b4a1
TB
59 -t "$(PACKAGE_STRING)" \
60 -o $(top_builddir)/coverage/html \
61 -p `readlink -m $(abs_top_srcdir)`/src \
ab73ae67 62 $(top_builddir)/coverage/coverage.cleaned.info
1f14b4a1
TB
63 @echo "Coverage Report at $(top_builddir)/coverage/html" >&2
64
65coverage:
66 @$(MAKE) cov-reset
67 @$(MAKE) check
68 @$(MAKE) cov-report
69else
1f14b4a1
TB
70coverage:
71 @echo "reconfigure with --enable-coverage"
72endif
73
ab73ae67 74clean-local: cov-reset-common
6122bfd2 75 @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcno" -delete
ab73ae67
TB
76 @rm -rf apidoc
77
c577b5eb 78.PHONY: cov-reset-common cov-reset cov-report coverage