Makefile revision 318576
1205859Sjoel# Copyright 1998 Juniper Networks, Inc. 2162886Snetchild# All rights reserved. 3159687Snetchild# 4159687Snetchild# Redistribution and use in source and binary forms, with or without 5159687Snetchild# modification, are permitted provided that the following conditions 6159687Snetchild# are met: 7159687Snetchild# 1. Redistributions of source code must retain the above copyright 8159687Snetchild# notice, this list of conditions and the following disclaimer. 9159687Snetchild# 2. Redistributions in binary form must reproduce the above copyright 10159687Snetchild# notice, this list of conditions and the following disclaimer in the 11159687Snetchild# documentation and/or other materials provided with the distribution. 12159687Snetchild# 13159687Snetchild# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14159687Snetchild# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15159687Snetchild# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16159687Snetchild# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17159687Snetchild# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18159687Snetchild# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19159687Snetchild# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20159687Snetchild# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21159687Snetchild# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22159687Snetchild# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23159687Snetchild# SUCH DAMAGE. 24162886Snetchild# 25159687Snetchild# $FreeBSD: stable/11/lib/libefivar/Makefile 318576 2017-05-20 16:12:44Z kib $ 26159687Snetchild 27159687Snetchild.include <src.opts.mk> 28159687Snetchild 29170031SjoelEFIBOOT=${SRCTOP}/sys/boot/efi 30170031SjoelEDK2INC=${SRCTOP}/sys/contrib/edk2/Include 31170031Sjoel 32170031Sjoel.PATH: ${EFIBOOT}/libefi 33170031Sjoel 34170031SjoelPACKAGE=lib${LIB} 35170031SjoelLIB= efivar 36170031SjoelSRCS= efivar.c efichar.c efivar-dp-format.c \ 37170031Sjoel efivar-dp-parse.c \ 38170031Sjoel uefi-guid.c uefi-dputil.c 39170031SjoelINCS= efivar.h efivar-dp.h 40193640SariffSHLIB_MAJOR= 1 41193640SariffMAN= efivar.3 42193640Sariff 43193640SariffCFLAGS+= -I${EFIBOOT}/include 44159687SnetchildCFLAGS+= -I${.CURDIR} -I${EDK2INC} 45159687Snetchild 46162886SnetchildCFLAGS.efivar-dp-format.c=-Wno-unused-parameter 47162886Snetchild 48159687SnetchildMLINKS+=efivar.3 efi_set_variables_supported.3 \ 49159689Snetchild efivar.3 efi_del_variable.3 \ 50159689Snetchild efivar.3 efi_get_variable.3 \ 51159687Snetchild efivar.3 efi_get_variable_attributes.3 \ 52159687Snetchild efivar.3 efi_get_variable_size.3 \ 53159687Snetchild efivar.3 efi_append_variable.3 \ 54165306Sariff efivar.3 efi_set_variable.3 \ 55165306Sariff efivar.3 efi_get_next_variable_name.3 \ 56227293Sed efivar.3 efi_str_to_guid.3 \ 57159687Snetchild efivar.3 efi_guid_to_str.3 \ 58159687Snetchild efivar.3 efi_name_to_guid.3 \ 59159687Snetchild efivar.3 efi_guid_to_name.3 \ 60159687Snetchild efivar.3 efi_guid_to_symbol.3 \ 61159687Snetchild efivar.3 libefivar.3 62162886Snetchild 63162886SnetchildWARNS?= 9 64162886Snetchild 65162886Snetchild.include <bsd.lib.mk> 66162886Snetchild 67159687SnetchildCFLAGS+= -Wno-cast-align -Wno-unused-parameter 68162886Snetchild