-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
133 lines (113 loc) · 4.17 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
###########################################################################
# Copyright (c) 2007, 2008 GeNUA mbH <[email protected]>
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
###########################################################################
# gcov/lcov specific settings
LCOV_OUTPUT = $(top_srcdir)/lcov.out
LCOV_LCOV = @LCOV@
LCOV_GENHTML = @GENHTML@
LCOV_GCOV_ENABLED = @GCOV_ENABLED@
if XANOUBIS
xanoubis_mans = man/xanoubis.1 man/xanoubis_guessApp.sh.1
endif
if WITH_TESTS
TESTS_DIR = test
else
TESTS_DIR =
endif
SUBDIRS = contrib src $(TESTS_DIR) include lint support po
# cleanup code coverage files generated by gcov
CLEANFILES = \
*/*.gcda \
*/*.gcdo \
*/*.gcno
# the following is needed to add man pages to the dist file
man_MANS = \
man/anoubis_auth.3 man/anoubischat.3 man/anoubis_client.3 \
man/anoubisctl.8 man/anoubisd.8 man/anoubis_msg.3 \
man/anoubis_notify.3 man/anoubis_server.3 man/anoubis_sig.3 \
man/anoubis_transaction.3 man/anoubis_ui.3 man/apn.3 man/sfssig.8 \
man/dev-anoubis.4 man/eventdev.4 man/eventdev.9 man/anoubis_kernel.9 \
man/anoubisd.conf.5 man/anoubis-keygen.1 man/anoubis-keyinstall.1 \
man/playground.1 $(xanoubis_mans)
EXTRA_DIST = $(man_MANS) @WXFB_PROJECT_FILES@ autogen.sh VERSION \
split_config_h_in.pl
MAINTAINERCLEANFILES= \
aclocal.m4 \
Makefile.in\
configure \
config.log \
config.guess \
config.sub
REPORTS=
if HAVE_FLAWFINDER
REPORTS += flawfinder.report
flawfinder: flawfinder.report
flawfinder.report:
for t in $(SUBDIRS); do cd $$t && make flawfinder && cd ..; done
cat `find $(top_builddir) -name \*_flawfinder` > $@
endif
if HAVE_SPLINT
REPORTS += splint.report
splint: splint.report
splint.report:
for t in $(SUBDIRS); do cd $$t && make splint && cd ..; done
cat `find $(top_builddir) -name \*_splint` > $@
endif
if HAVE_LINT
REPORTS += lint.report
lint: lint.report
lint.report:
for t in $(SUBDIRS); do cd $$t && make lint && cd ..; done
cat `find $(top_builddir) -name \*_lint` > $@
endif
linting: $(REPORTS)
@echo linting done
if GCOV_ENABLED
# automake supports source files in subdirs and generating source
# files with yacc/lex. But it does not support generating source
# files in subdirs with yacc/lex :-(
# As a workaround, link *.[yl] so that lcov finds them
lcov: check
ln src/libanoubis/*/*.[ly] src/libanoubis/*/*/*.[ly] src/libanoubis
$(LCOV_LCOV) --directory . --capture \
--output-file anoubis.info; \
LANG=C $(LCOV_GENHTML) --prefix $(CURDIR) \
--output-directory $(LCOV_OUTPUT) \
--title "Anoubis Code Coverage: $(PACKAGE)-$(VERSION)" \
--show-details anoubis.info;
lcov-clean:
$(RM) anoubis.info
$(RM) -r $(LCOV_OUTPUT)
for f in src/libanoubis/*/*.[ly] src/libanoubis/*/*/*.[ly] ; do \
rm -f src/libanoubis$${f%%*/} ; done
endif
dist-hook:
chmod -R u+w $(distdir)
.PHONY: flawfinder lint splint flawfinder.report lint.report splint.report
clean-local:
rm -f $(REPORTS)
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = KERNELHEADERS=@KERNELHEADERS@