1fa0f6e62SHans Petter Selasky# 2fa0f6e62SHans Petter Selasky# Copyright (c) 2010 Hans Petter Selasky. All rights reserved. 3fa0f6e62SHans Petter Selasky# 4fa0f6e62SHans Petter Selasky# Redistribution and use in source and binary forms, with or without 5fa0f6e62SHans Petter Selasky# modification, are permitted provided that the following conditions 6fa0f6e62SHans Petter Selasky# are met: 7fa0f6e62SHans Petter Selasky# 1. Redistributions of source code must retain the above copyright 8fa0f6e62SHans Petter Selasky# notice, this list of conditions and the following disclaimer. 9fa0f6e62SHans Petter Selasky# 2. Redistributions in binary form must reproduce the above copyright 10fa0f6e62SHans Petter Selasky# notice, this list of conditions and the following disclaimer in the 11fa0f6e62SHans Petter Selasky# documentation and/or other materials provided with the distribution. 12fa0f6e62SHans Petter Selasky# 13fa0f6e62SHans Petter Selasky# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14fa0f6e62SHans Petter Selasky# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15fa0f6e62SHans Petter Selasky# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16fa0f6e62SHans Petter Selasky# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17fa0f6e62SHans Petter Selasky# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18fa0f6e62SHans Petter Selasky# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19fa0f6e62SHans Petter Selasky# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20fa0f6e62SHans Petter Selasky# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21fa0f6e62SHans Petter Selasky# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22fa0f6e62SHans Petter Selasky# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23fa0f6e62SHans Petter Selasky# SUCH DAMAGE. 24fa0f6e62SHans Petter Selasky# 25fa0f6e62SHans Petter Selasky 26*a70cba95SGlen BarberPACKAGE=lib${LIB} 27fa0f6e62SHans Petter SelaskyLIB= cuse 28fa0f6e62SHans Petter SelaskySHLIB_MAJOR= 1 29fa0f6e62SHans Petter SelaskySHLIB_MINOR= 0 30fa0f6e62SHans Petter SelaskySRCS= cuse_lib.c 31fa0f6e62SHans Petter SelaskyINCS= cuse.h 32fa0f6e62SHans Petter SelaskyMAN= cuse.3 33fa0f6e62SHans Petter SelaskyCFLAGS+= -D_GNU_SOURCE 34fa0f6e62SHans Petter Selasky.if defined(HAVE_DEBUG) 35fa0f6e62SHans Petter SelaskyCFLAGS+= -g 36fa0f6e62SHans Petter SelaskyCFLAGS+= -DHAVE_DEBUG 37fa0f6e62SHans Petter Selasky.endif 386b129086SBaptiste DaroussinLIBADD= pthread 39fa0f6e62SHans Petter Selasky 40fa0f6e62SHans Petter SelaskyMLINKS= 41fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_alloc_unit_number.3 42556f150aSChristian BruefferMLINKS+= cuse.3 cuse_alloc_unit_number_by_id.3 43fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_copy_in.3 44fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_copy_out.3 45fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_dev_create.3 46fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_dev_destroy.3 47fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_dev_get_current.3 48fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_dev_get_per_file_handle.3 49fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_dev_get_priv0.3 50fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_dev_get_priv1.3 51fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_dev_set_per_file_handle.3 52556f150aSChristian BruefferMLINKS+= cuse.3 cuse_dev_set_priv0.3 53556f150aSChristian BruefferMLINKS+= cuse.3 cuse_dev_set_priv1.3 54fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_free_unit_number.3 55556f150aSChristian BruefferMLINKS+= cuse.3 cuse_free_unit_number_by_id.3 56fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_got_peer_signal.3 57fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_init.3 58fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_poll_wakeup.3 59fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_set_local.3 60fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_get_local.3 61fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_uninit.3 62fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_vmalloc.3 63fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_is_vmalloc_addr.3 64fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_vmfree.3 65556f150aSChristian BruefferMLINKS+= cuse.3 cuse_vmoffset.3 66fa0f6e62SHans Petter SelaskyMLINKS+= cuse.3 cuse_wait_and_process.3 67fa0f6e62SHans Petter Selasky 68fa0f6e62SHans Petter Selasky.include <bsd.lib.mk> 69