186d7f5d3SJohn Marino# 05 Jun 93 286d7f5d3SJohn Marino# 386d7f5d3SJohn Marino# Makefile for testmisc 486d7f5d3SJohn Marino# 586d7f5d3SJohn Marino# 05 Jun 93 Rajesh Vaidheeswarran Original 686d7f5d3SJohn Marino# 786d7f5d3SJohn Marino# Copyright (c) 1993 Rajesh Vaidheeswarran. 886d7f5d3SJohn Marino# All rights reserved. 986d7f5d3SJohn Marino# 1086d7f5d3SJohn Marino# Redistribution and use in source and binary forms, with or without 1186d7f5d3SJohn Marino# modification, are permitted provided that the following conditions 1286d7f5d3SJohn Marino# are met: 1386d7f5d3SJohn Marino# 1. Redistributions of source code must retain the above copyright 1486d7f5d3SJohn Marino# notice, this list of conditions and the following disclaimer. 1586d7f5d3SJohn Marino# 2. Redistributions in binary form must reproduce the above copyright 1686d7f5d3SJohn Marino# notice, this list of conditions and the following disclaimer in the 1786d7f5d3SJohn Marino# documentation and/or other materials provided with the distribution. 1886d7f5d3SJohn Marino# 3. All advertising materials mentioning features or use of this software 1986d7f5d3SJohn Marino# must display the following acknowledgement: 2086d7f5d3SJohn Marino# This product includes software developed by Rajesh Vaidheeswarran. 2186d7f5d3SJohn Marino# 4. The name Rajesh Vaidheeswarran may not be used to endorse or promote 2286d7f5d3SJohn Marino# products derived from this software without specific prior written 2386d7f5d3SJohn Marino# permission. 2486d7f5d3SJohn Marino# 2586d7f5d3SJohn Marino# THIS SOFTWARE IS PROVIDED BY RAJESH VAIDHEESWARRAN ``AS IS'' AND ANY 2686d7f5d3SJohn Marino# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2786d7f5d3SJohn Marino# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2886d7f5d3SJohn Marino# ARE DISCLAIMED. IN NO EVENT SHALL THE RAJESH VAIDHEESWARRAN BE LIABLE 2986d7f5d3SJohn Marino# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3086d7f5d3SJohn Marino# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3186d7f5d3SJohn Marino# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3286d7f5d3SJohn Marino# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3386d7f5d3SJohn Marino# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3486d7f5d3SJohn Marino# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3586d7f5d3SJohn Marino# SUCH DAMAGE. 3686d7f5d3SJohn Marino# 3786d7f5d3SJohn Marino# Copyright (c) 1993 Terrence R. Lambert. 3886d7f5d3SJohn Marino# All rights reserved. 3986d7f5d3SJohn Marino# 4086d7f5d3SJohn Marino# Redistribution and use in source and binary forms, with or without 4186d7f5d3SJohn Marino# modification, are permitted provided that the following conditions 4286d7f5d3SJohn Marino# are met: 4386d7f5d3SJohn Marino# 1. Redistributions of source code must retain the above copyright 4486d7f5d3SJohn Marino# notice, this list of conditions and the following disclaimer. 4586d7f5d3SJohn Marino# 2. Redistributions in binary form must reproduce the above copyright 4686d7f5d3SJohn Marino# notice, this list of conditions and the following disclaimer in the 4786d7f5d3SJohn Marino# documentation and/or other materials provided with the distribution. 4886d7f5d3SJohn Marino# 3. All advertising materials mentioning features or use of this software 4986d7f5d3SJohn Marino# must display the following acknowledgement: 5086d7f5d3SJohn Marino# This product includes software developed by Terrence R. Lambert. 5186d7f5d3SJohn Marino# 4. The name Terrence R. Lambert may not be used to endorse or promote 5286d7f5d3SJohn Marino# products derived from this software without specific prior written 5386d7f5d3SJohn Marino# permission. 5486d7f5d3SJohn Marino# 5586d7f5d3SJohn Marino# THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY 5686d7f5d3SJohn Marino# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 5786d7f5d3SJohn Marino# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 5886d7f5d3SJohn Marino# ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE 5986d7f5d3SJohn Marino# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6086d7f5d3SJohn Marino# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6186d7f5d3SJohn Marino# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6286d7f5d3SJohn Marino# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6386d7f5d3SJohn Marino# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6486d7f5d3SJohn Marino# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6586d7f5d3SJohn Marino# SUCH DAMAGE. 6686d7f5d3SJohn Marino# 6786d7f5d3SJohn Marino# $FreeBSD: src/share/examples/kld/cdev/test/Makefile,v 1.2.2.1 2000/10/25 09:02:34 sobomax Exp $ 6886d7f5d3SJohn Marino# $DragonFly: src/share/examples/kld/cdev/test/Makefile,v 1.2 2003/06/17 04:36:57 dillon Exp $ 6986d7f5d3SJohn Marino# 7086d7f5d3SJohn MarinoPROG= testcdev 7186d7f5d3SJohn MarinoNOMAN= 7286d7f5d3SJohn Marino 7386d7f5d3SJohn MarinoMODSTAT= /sbin/kldstat 7486d7f5d3SJohn Marino 7586d7f5d3SJohn Marinoload: 7686d7f5d3SJohn Marino @echo "This test program will call the sample kld characer device "; 7786d7f5d3SJohn Marino @echo "driver." 7886d7f5d3SJohn Marino @echo 7986d7f5d3SJohn Marino @echo "The sample driver will display a message on the" 8086d7f5d3SJohn Marino @echo "system console each time an ioctl is sent to it." 8186d7f5d3SJohn Marino @echo 8286d7f5d3SJohn Marino @echo 8386d7f5d3SJohn Marino @echo 8486d7f5d3SJohn Marino @./testcdev 8586d7f5d3SJohn Marino 8686d7f5d3SJohn Marinounload: 8786d7f5d3SJohn Marino @echo "This test program will cause an error if the driver" 8886d7f5d3SJohn Marino @echo "has been successfully unloaded by building 'unload' in" 8986d7f5d3SJohn Marino @echo "the 'module' subdirectory." 9086d7f5d3SJohn Marino @echo 9186d7f5d3SJohn Marino ${MODSTAT} -n cdev 9286d7f5d3SJohn Marino 9386d7f5d3SJohn Marino.include <bsd.prog.mk> 94