1bb7548fdSMatthew Dillon# Copyright 1998 Juniper Networks, Inc. 2bb7548fdSMatthew Dillon# All rights reserved. 3bb7548fdSMatthew Dillon# 4bb7548fdSMatthew Dillon# Redistribution and use in source and binary forms, with or without 5bb7548fdSMatthew Dillon# modification, are permitted provided that the following conditions 6bb7548fdSMatthew Dillon# are met: 7bb7548fdSMatthew Dillon# 1. Redistributions of source code must retain the above copyright 8bb7548fdSMatthew Dillon# notice, this list of conditions and the following disclaimer. 9bb7548fdSMatthew Dillon# 2. Redistributions in binary form must reproduce the above copyright 10bb7548fdSMatthew Dillon# notice, this list of conditions and the following disclaimer in the 11bb7548fdSMatthew Dillon# documentation and/or other materials provided with the distribution. 12bb7548fdSMatthew Dillon# 13bb7548fdSMatthew Dillon# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14bb7548fdSMatthew Dillon# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15bb7548fdSMatthew Dillon# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16bb7548fdSMatthew Dillon# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17bb7548fdSMatthew Dillon# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18bb7548fdSMatthew Dillon# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19bb7548fdSMatthew Dillon# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20bb7548fdSMatthew Dillon# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21bb7548fdSMatthew Dillon# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22bb7548fdSMatthew Dillon# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23bb7548fdSMatthew Dillon# SUCH DAMAGE. 24bb7548fdSMatthew Dillon# 254661c169SSascha Wildner# $FreeBSD: head/lib/libefivar/Makefile 326458 2017-12-02 07:29:19Z imp $ 264661c169SSascha Wildner 27479ab7f0SSascha WildnerEFIBOOT=${.CURDIR}/../../stand/boot/efi 28*1370a723SSascha WildnerEDK2INC=${.CURDIR}/../../stand/contrib/edk2/MdePkg/Include 294661c169SSascha Wildner 304661c169SSascha Wildner.PATH: ${EFIBOOT}/libefi 31bb7548fdSMatthew Dillon 32bb7548fdSMatthew DillonLIB= efivar 334661c169SSascha WildnerSRCS= efivar.c libefivar.c efivar-dp-format.c \ 344661c169SSascha Wildner efivar-dp-parse.c \ 354661c169SSascha Wildner efivar-dp-xlate.c \ 364661c169SSascha Wildner uefi-guid.c uefi-dputil.c 374661c169SSascha WildnerINCS= efivar.h efivar-dp.h 38bb7548fdSMatthew DillonSHLIB_MAJOR= 1 39bb7548fdSMatthew DillonMAN= efivar.3 40bb7548fdSMatthew Dillon 414661c169SSascha WildnerCFLAGS+= -I${EFIBOOT}/include 424661c169SSascha WildnerCFLAGS+= -I${.CURDIR} -I${EDK2INC} 434661c169SSascha Wildner 444661c169SSascha Wildner.PATH: ${.CURDIR}/../../sbin/gpt 454661c169SSascha WildnerSRCS+= gpt.c map.c 464661c169SSascha WildnerFLAGS_GROUPS= gpt 47d21d24f1SSascha Wildnergpt_FLAGS= -I${.CURDIR}/../../sbin/gpt -D_LIBEFIVAR 484661c169SSascha Wildnergpt_FLAGS_FILES=efivar-dp-xlate.c gpt.c map.c 494661c169SSascha Wildner 507f4a69bcSSascha WildnerMLINKS+=efivar.3 efi_variables_supported.3 \ 51bb7548fdSMatthew Dillon efivar.3 efi_del_variable.3 \ 52bb7548fdSMatthew Dillon efivar.3 efi_get_variable.3 \ 53bb7548fdSMatthew Dillon efivar.3 efi_get_variable_attributes.3 \ 54bb7548fdSMatthew Dillon efivar.3 efi_get_variable_size.3 \ 55bb7548fdSMatthew Dillon efivar.3 efi_append_variable.3 \ 56bb7548fdSMatthew Dillon efivar.3 efi_set_variable.3 \ 57bb7548fdSMatthew Dillon efivar.3 efi_get_next_variable_name.3 \ 58bb7548fdSMatthew Dillon efivar.3 efi_str_to_guid.3 \ 59bb7548fdSMatthew Dillon efivar.3 efi_guid_to_str.3 \ 60bb7548fdSMatthew Dillon efivar.3 efi_name_to_guid.3 \ 61bb7548fdSMatthew Dillon efivar.3 efi_guid_to_name.3 \ 62bb7548fdSMatthew Dillon efivar.3 efi_guid_to_symbol.3 \ 63bb7548fdSMatthew Dillon efivar.3 libefivar.3 64bb7548fdSMatthew Dillon 654661c169SSascha WildnerWARNS?= 3 664661c169SSascha Wildner 67bb7548fdSMatthew Dillon.include <bsd.lib.mk> 68