hashtable: add common hashtable hash/equals functions for pointer/string keys
[strongswan.git] / Makefile.am
1 SUBDIRS = src man init testing
2
3 if USE_SCRIPTS
4   SUBDIRS += scripts
5 endif
6
7 if USE_SILENT_RULES
8   AM_MAKEFLAGS = -s
9 endif
10
11 ACLOCAL_AMFLAGS = -I m4/config
12
13 EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk
14 CLEANFILES = Doxyfile
15 BUILT_SOURCES = Android.common.mk
16 MAINTAINERCLEANFILES = Android.common.mk
17
18 if USE_DEV_HEADERS
19 config_includedir = $(ipseclibdir)/include
20 nodist_config_include_HEADERS = config.h
21 endif
22
23 Android.common.mk :     Android.common.mk.in configure.in
24                 $(AM_V_GEN) \
25                 sed \
26                 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
27                 $(srcdir)/$@.in > $@
28
29 Doxyfile :      Doxyfile.in
30                 $(AM_V_GEN) \
31                 sed \
32                 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
33                 -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
34                 -e "s:\@SRC_DIR\@:$(srcdir):" \
35                 $(srcdir)/$@.in > $@
36
37 apidoc :        Doxyfile
38                 doxygen
39
40 cov-reset-common:
41                 @rm -rf $(top_builddir)/coverage
42                 @find $(top_builddir)/{src,scripts} -name "*.gcda" -delete
43
44 if COVERAGE
45 cov-reset: cov-reset-common
46                 @lcov --zerocounters --directory $(top_builddir)
47
48 cov-report:
49                 @mkdir $(top_builddir)/coverage
50                 lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir)
51                 lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
52                          -o $(top_builddir)/coverage/coverage.cleaned.info
53                 genhtml --num-spaces 4 --legend \
54                                 -t "$(PACKAGE_STRING)" \
55                                 -o $(top_builddir)/coverage/html \
56                                 -p `readlink -m $(abs_top_srcdir)`/src \
57                                 $(top_builddir)/coverage/coverage.cleaned.info
58                 @echo "Coverage Report at $(top_builddir)/coverage/html" >&2
59
60 coverage:
61                 @$(MAKE) cov-reset
62                 @$(MAKE) check
63                 @$(MAKE) cov-report
64 else
65 coverage:
66                 @echo "reconfigure with --enable-coverage"
67 endif
68
69 clean-local: cov-reset-common
70                 @find $(top_builddir)/{src,scripts} -name "*.gcno" -delete
71                 @rm -rf apidoc
72
73 .PHONY: cov-reset-common cov-reset cov-report coverage