1107852Ssam# $FreeBSD$ 2112394Ssam# 3112394Ssam# Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting 4112394Ssam# All rights reserved. 5112394Ssam# 6112394Ssam# Redistribution and use in source and binary forms, with or without 7112394Ssam# modification, are permitted provided that the following conditions 8112394Ssam# are met: 9112394Ssam# 1. Redistributions of source code must retain the above copyright 10112394Ssam# notice, this list of conditions and the following disclaimer. 11112394Ssam# 2. Redistributions in binary form must reproduce the above copyright 12112394Ssam# notice, this list of conditions and the following disclaimer in the 13112394Ssam# documentation and/or other materials provided with the distribution. 14112394Ssam# 15112394Ssam# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16112394Ssam# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17112394Ssam# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18112394Ssam# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19112394Ssam# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20112394Ssam# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21112394Ssam# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22112394Ssam# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23112394Ssam# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24112394Ssam# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25112394Ssam# SUCH DAMAGE. 26112394Ssam# 27107852Ssam 28134911SsamALL= cryptotest cryptokeytest cryptostats \ 29117852Ssam ubsecstats hifnstats ipsecstats safestats 30123261SsamBINDIR= /usr/local/bin 31107852Ssam 32107852Ssamall: ${ALL} 33107852Ssam 34112394Ssam# program to test asymmetric crypto functions 35108833Ssamcryptokeytest: cryptokeytest.c 36108833Ssam ${CC} -o cryptokeytest cryptokeytest.c -lcrypto 37108833Ssam 38112394Ssam# program to dump statistics kept by the core crypto code 39108833Ssamcryptostats: cryptostats.c 40108833Ssam ${CC} -o cryptostats cryptostats.c 41108833Ssam 42112394Ssam# program to print statistics kept by the Broadcom driver 43112098Ssamubsecstats: ubsecstats.c 44112098Ssam ${CC} -o ubsecstats ubsecstats.c 45112098Ssam 46112394Ssam# program to print statistics kept by the HIFN driver 47112394Ssamhifnstats: hifnstats.c 48112394Ssam ${CC} -o hifnstats hifnstats.c 49112394Ssam 50117852Ssam# program to print statistics kept by the SafeNet driver 51117852Ssamsafestats: safestats.c 52117852Ssam ${CC} -o safestats safestats.c 53117852Ssam 54112394Ssam# program to print statistics kept by fast ipsec 55112394Ssamipsecstats: ipsecstats.c 56112394Ssam ${CC} -o ipsecstats ipsecstats.c 57112394Ssam 58107852Ssamclean: 59107852Ssam rm -f ${ALL} core a.out 60123261Ssam 61123261Ssaminstall: ${ALL} 62123261Ssam for i in ${ALL}; do \ 63123261Ssam install $$i ${DESTDIR}${BINDIR}; \ 64123261Ssam done 65