/share/examples/kld/cdev/test/Makefile

https://bitbucket.org/freebsd/freebsd-head/ · Makefile · 95 lines · 22 code · 5 blank · 68 comment · 1 complexity · a4239973e105f81257282dd96b2d959b MD5 · raw file

  1. # 05 Jun 93
  2. #
  3. # Makefile for testmisc
  4. #
  5. # 05 Jun 93 Rajesh Vaidheeswarran Original
  6. #
  7. # Copyright (c) 1993 Rajesh Vaidheeswarran.
  8. # All rights reserved.
  9. #
  10. # Redistribution and use in source and binary forms, with or without
  11. # modification, are permitted provided that the following conditions
  12. # are met:
  13. # 1. Redistributions of source code must retain the above copyright
  14. # notice, this list of conditions and the following disclaimer.
  15. # 2. Redistributions in binary form must reproduce the above copyright
  16. # notice, this list of conditions and the following disclaimer in the
  17. # documentation and/or other materials provided with the distribution.
  18. # 3. All advertising materials mentioning features or use of this software
  19. # must display the following acknowledgement:
  20. # This product includes software developed by Rajesh Vaidheeswarran.
  21. # 4. The name Rajesh Vaidheeswarran may not be used to endorse or promote
  22. # products derived from this software without specific prior written
  23. # permission.
  24. #
  25. # THIS SOFTWARE IS PROVIDED BY RAJESH VAIDHEESWARRAN ``AS IS'' AND ANY
  26. # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28. # ARE DISCLAIMED. IN NO EVENT SHALL THE RAJESH VAIDHEESWARRAN BE LIABLE
  29. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  31. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  32. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  33. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  34. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  35. # SUCH DAMAGE.
  36. #
  37. # Copyright (c) 1993 Terrence R. Lambert.
  38. # All rights reserved.
  39. #
  40. # Redistribution and use in source and binary forms, with or without
  41. # modification, are permitted provided that the following conditions
  42. # are met:
  43. # 1. Redistributions of source code must retain the above copyright
  44. # notice, this list of conditions and the following disclaimer.
  45. # 2. Redistributions in binary form must reproduce the above copyright
  46. # notice, this list of conditions and the following disclaimer in the
  47. # documentation and/or other materials provided with the distribution.
  48. # 3. All advertising materials mentioning features or use of this software
  49. # must display the following acknowledgement:
  50. # This product includes software developed by Terrence R. Lambert.
  51. # 4. The name Terrence R. Lambert may not be used to endorse or promote
  52. # products derived from this software without specific prior written
  53. # permission.
  54. #
  55. # THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY
  56. # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  57. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  58. # ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE
  59. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  60. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  61. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  62. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  63. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  64. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  65. # SUCH DAMAGE.
  66. #
  67. # $FreeBSD$
  68. #
  69. PROG= testcdev
  70. NO_MAN=
  71. WARNS?= 5
  72. MODSTAT= /sbin/kldstat
  73. load:
  74. @echo "This test program will call the sample kld characer device ";
  75. @echo "driver."
  76. @echo
  77. @echo "The sample driver will display a message on the"
  78. @echo "system console each time an ioctl is sent to it."
  79. @echo
  80. @echo
  81. @echo
  82. @./testcdev
  83. unload:
  84. @echo "This test program will cause an error if the driver"
  85. @echo "has been successfully unloaded by building 'unload' in"
  86. @echo "the 'module' subdirectory."
  87. @echo
  88. ${MODSTAT} -n cdev
  89. install:
  90. .include <bsd.prog.mk>