141681Sdfr# 05 Jun 93
241681Sdfr#
341681Sdfr# Makefile for testmisc
441681Sdfr#
541681Sdfr# 05 Jun 93	Rajesh Vaidheeswarran		Original
641681Sdfr#
741681Sdfr# Copyright (c) 1993 Rajesh Vaidheeswarran.
841681Sdfr# All rights reserved.
941681Sdfr#
1041681Sdfr# Redistribution and use in source and binary forms, with or without
1141681Sdfr# modification, are permitted provided that the following conditions
1241681Sdfr# are met:
1341681Sdfr# 1. Redistributions of source code must retain the above copyright
1441681Sdfr#    notice, this list of conditions and the following disclaimer.
1541681Sdfr# 2. Redistributions in binary form must reproduce the above copyright
1641681Sdfr#    notice, this list of conditions and the following disclaimer in the
1741681Sdfr#    documentation and/or other materials provided with the distribution.
1841681Sdfr# 3. All advertising materials mentioning features or use of this software
1941681Sdfr#    must display the following acknowledgement:
2041681Sdfr#      This product includes software developed by Rajesh Vaidheeswarran.
2141681Sdfr# 4. The name Rajesh Vaidheeswarran may not be used to endorse or promote
2241681Sdfr#    products derived from this software without specific prior written
2341681Sdfr#    permission.
2441681Sdfr#
2541681Sdfr# THIS SOFTWARE IS PROVIDED BY RAJESH VAIDHEESWARRAN ``AS IS'' AND ANY
2641681Sdfr# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2741681Sdfr# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2841681Sdfr# ARE DISCLAIMED.  IN NO EVENT SHALL THE RAJESH VAIDHEESWARRAN BE LIABLE
2941681Sdfr# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3041681Sdfr# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3141681Sdfr# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3241681Sdfr# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3341681Sdfr# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3441681Sdfr# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3541681Sdfr# SUCH DAMAGE.
3641681Sdfr#
3741681Sdfr# Copyright (c) 1993 Terrence R. Lambert.
3841681Sdfr# All rights reserved.
3941681Sdfr#
4041681Sdfr# Redistribution and use in source and binary forms, with or without
4141681Sdfr# modification, are permitted provided that the following conditions
4241681Sdfr# are met:
4341681Sdfr# 1. Redistributions of source code must retain the above copyright
4441681Sdfr#    notice, this list of conditions and the following disclaimer.
4541681Sdfr# 2. Redistributions in binary form must reproduce the above copyright
4641681Sdfr#    notice, this list of conditions and the following disclaimer in the
4741681Sdfr#    documentation and/or other materials provided with the distribution.
4841681Sdfr# 3. All advertising materials mentioning features or use of this software
4941681Sdfr#    must display the following acknowledgement:
5041681Sdfr#      This product includes software developed by Terrence R. Lambert.
5141681Sdfr# 4. The name Terrence R. Lambert may not be used to endorse or promote
5241681Sdfr#    products derived from this software without specific prior written
5341681Sdfr#    permission.
5441681Sdfr#
5541681Sdfr# THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY
5641681Sdfr# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
5741681Sdfr# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
5841681Sdfr# ARE DISCLAIMED.  IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE
5941681Sdfr# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
6041681Sdfr# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
6141681Sdfr# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
6241681Sdfr# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
6341681Sdfr# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
6441681Sdfr# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
6541681Sdfr# SUCH DAMAGE.
6641681Sdfr#
6750476Speter# $FreeBSD: releng/10.3/share/examples/kld/cdev/test/Makefile 276486 2014-12-31 23:25:37Z ngie $
6841681Sdfr#
6941681SdfrPROG=	testcdev
70276486SngieMAN=
71203349SwkoszekWARNS?=	5
7241681Sdfr
7341681SdfrMODSTAT= /sbin/kldstat
7441681Sdfr
7541681Sdfrload:
7641681Sdfr	@echo "This test program will call the sample kld characer device ";
7741681Sdfr	@echo "driver."
7841681Sdfr	@echo
7941681Sdfr	@echo "The sample driver will display a message on the"
8041681Sdfr	@echo "system console each time an ioctl is sent to it."
8141681Sdfr	@echo
8241681Sdfr	@echo
8341681Sdfr	@echo
8441681Sdfr	@./testcdev
8541681Sdfr
8641681Sdfrunload:
8741681Sdfr	@echo "This test program will cause an error if the driver"
8841681Sdfr	@echo "has been successfully unloaded by building 'unload' in"
8941681Sdfr	@echo "the 'module' subdirectory."
9041681Sdfr	@echo
9166549Ssobomax	${MODSTAT} -n cdev
9241681Sdfr
93118385Smbrinstall:
94118385Smbr
9541681Sdfr.include <bsd.prog.mk>
96