75ec24dd53
the same API as the GPL'd version of this library. It implements the common Linux API for programatically manipulating UEFI environment varibales using the UEFI Runtime Services the kernel provides. It replaces the old efi library since it is programmed to a different interface, but retails the CHAR16 to UTF-8 and vice versa conversion routines. The new name is to match Linux program's expectations. Differential Revision: https://reviews.freebsd.org/D8128 Reviewed by: kib@, wblock@, Ganael Laplanche
196 lines
7.5 KiB
Makefile
196 lines
7.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
# The include file <bsd.libnames.mk> define library names.
|
|
# Other include files (e.g. bsd.prog.mk, bsd.lib.mk) include this
|
|
# file where necessary.
|
|
|
|
.if !target(__<bsd.init.mk>__)
|
|
.error bsd.libnames.mk cannot be included directly.
|
|
.endif
|
|
|
|
.sinclude <src.libnames.mk>
|
|
|
|
# Src directory locations are also defined in src.libnames.mk.
|
|
|
|
LIBCRT0?= ${DESTDIR}${LIBDIR}/crt0.o
|
|
|
|
LIB80211?= ${DESTDIR}${LIBDIR}/lib80211.a
|
|
LIBALIAS?= ${DESTDIR}${LIBDIR}/libalias.a
|
|
LIBARCHIVE?= ${DESTDIR}${LIBDIR}/libarchive.a
|
|
LIBASN1?= ${DESTDIR}${LIBDIR}/libasn1.a
|
|
LIBATM?= ${DESTDIR}${LIBDIR}/libatm.a
|
|
LIBAUDITD?= ${DESTDIR}${LIBDIR}/libauditd.a
|
|
LIBAVL?= ${DESTDIR}${LIBDIR}/libavl.a
|
|
LIBBEGEMOT?= ${DESTDIR}${LIBDIR}/libbegemot.a
|
|
LIBBLACKLIST?= ${DESTDIR}${LIBDIR}/libblacklist.a
|
|
LIBBLUETOOTH?= ${DESTDIR}${LIBDIR}/libbluetooth.a
|
|
LIBBSDXML?= ${DESTDIR}${LIBDIR}/libbsdxml.a
|
|
LIBBSM?= ${DESTDIR}${LIBDIR}/libbsm.a
|
|
LIBBSNMP?= ${DESTDIR}${LIBDIR}/libbsnmp.a
|
|
LIBBZ2?= ${DESTDIR}${LIBDIR}/libbz2.a
|
|
LIBC?= ${DESTDIR}${LIBDIR}/libc.a
|
|
LIBCALENDAR?= ${DESTDIR}${LIBDIR}/libcalendar.a
|
|
LIBCAM?= ${DESTDIR}${LIBDIR}/libcam.a
|
|
LIBCAP_DNS?= ${DESTDIR}${LIBDIR}/libcap_dns.a
|
|
LIBCAP_GRP?= ${DESTDIR}${LIBDIR}/libcap_grp.a
|
|
LIBCAP_PWD?= ${DESTDIR}${LIBDIR}/libcap_pwd.a
|
|
LIBCAP_RANDOM?= ${DESTDIR}${LIBDIR}/libcap_random.a
|
|
LIBCAP_SYSCTL?= ${DESTDIR}${LIBDIR}/libcap_sysctl.a
|
|
LIBCASPER?= ${DESTDIR}${LIBDIR}/libcasper.a
|
|
LIBCOMPAT?= ${DESTDIR}${LIBDIR}/libcompat.a
|
|
LIBCOMPILER_RT?=${DESTDIR}${LIBDIR}/libcompiler_rt.a
|
|
LIBCOM_ERR?= ${DESTDIR}${LIBDIR}/libcom_err.a
|
|
LIBCPLUSPLUS?= ${DESTDIR}${LIBDIR}/libc++.a
|
|
LIBCRYPT?= ${DESTDIR}${LIBDIR}/libcrypt.a
|
|
LIBCRYPTO?= ${DESTDIR}${LIBDIR}/libcrypto.a
|
|
LIBCTF?= ${DESTDIR}${LIBDIR}/libctf.a
|
|
LIBCURSES?= ${DESTDIR}${LIBDIR}/libcurses.a
|
|
LIBCUSE?= ${DESTDIR}${LIBDIR}/libcuse.a
|
|
LIBCXGB4?= ${DESTDIR}${LIBDIR}/libcxgb4.a
|
|
LIBCXXRT?= ${DESTDIR}${LIBDIR}/libcxxrt.a
|
|
LIBC_PIC?= ${DESTDIR}${LIBDIR}/libc_pic.a
|
|
LIBDEVCTL?= ${DESTDIR}${LIBDIR}/libdevctl.a
|
|
LIBDEVDCTL?= ${DESTDIR}${LIBDIR}/libdevdctl.a
|
|
LIBDEVINFO?= ${DESTDIR}${LIBDIR}/libdevinfo.a
|
|
LIBDEVSTAT?= ${DESTDIR}${LIBDIR}/libdevstat.a
|
|
LIBDIALOG?= ${DESTDIR}${LIBDIR}/libdialog.a
|
|
LIBDNS?= ${DESTDIR}${LIBDIR}/libdns.a
|
|
LIBDPV?= ${DESTDIR}${LIBDIR}/libdpv.a
|
|
LIBDTRACE?= ${DESTDIR}${LIBDIR}/libdtrace.a
|
|
LIBDWARF?= ${DESTDIR}${LIBDIR}/libdwarf.a
|
|
LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a
|
|
LIBEFIVAR?= ${DESTDIR}${LIBDIR}/libefivar.a
|
|
LIBELF?= ${DESTDIR}${LIBDIR}/libelf.a
|
|
LIBEXECINFO?= ${DESTDIR}${LIBDIR}/libexecinfo.a
|
|
LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a
|
|
LIBFIGPAR?= ${DESTDIR}${LIBDIR}/libfigpar.a
|
|
LIBFL?= "don't use LIBFL, use LIBL"
|
|
LIBFORM?= ${DESTDIR}${LIBDIR}/libform.a
|
|
LIBG2C?= ${DESTDIR}${LIBDIR}/libg2c.a
|
|
LIBGEOM?= ${DESTDIR}${LIBDIR}/libgeom.a
|
|
LIBGNUREGEX?= ${DESTDIR}${LIBDIR}/libgnuregex.a
|
|
LIBGPIO?= ${DESTDIR}${LIBDIR}/libgpio.a
|
|
LIBGSSAPI?= ${DESTDIR}${LIBDIR}/libgssapi.a
|
|
LIBGSSAPI_KRB5?= ${DESTDIR}${LIBDIR}/libgssapi_krb5.a
|
|
LIBHDB?= ${DESTDIR}${LIBDIR}/libhdb.a
|
|
LIBHEIMBASE?= ${DESTDIR}${LIBDIR}/libheimbase.a
|
|
LIBHEIMNTLM?= ${DESTDIR}${LIBDIR}/libheimntlm.a
|
|
LIBHEIMSQLITE?= ${DESTDIR}${LIBDIR}/libheimsqlite.a
|
|
LIBHX509?= ${DESTDIR}${LIBDIR}/libhx509.a
|
|
LIBIBCM?= ${DESTDIR}${LIBDIR}/libibcm.a
|
|
LIBIBCOMMON?= ${DESTDIR}${LIBDIR}/libibcommon.a
|
|
LIBIBMAD?= ${DESTDIR}${LIBDIR}/libibmad.a
|
|
LIBIBSDP?= ${DESTDIR}${LIBDIR}/libibsdp.a
|
|
LIBIBUMAD?= ${DESTDIR}${LIBDIR}/libibumad.a
|
|
LIBIBVERBS?= ${DESTDIR}${LIBDIR}/libibverbs.a
|
|
LIBIFCONFIG?= ${DESTDIR}${LIBDIR}/libifconfig.a
|
|
LIBIPSEC?= ${DESTDIR}${LIBDIR}/libipsec.a
|
|
LIBJAIL?= ${DESTDIR}${LIBDIR}/libjail.a
|
|
LIBKADM5CLNT?= ${DESTDIR}${LIBDIR}/libkadm5clnt.a
|
|
LIBKADM5SRV?= ${DESTDIR}${LIBDIR}/libkadm5srv.a
|
|
LIBKAFS5?= ${DESTDIR}${LIBDIR}/libkafs5.a
|
|
LIBKDC?= ${DESTDIR}${LIBDIR}/libkdc.a
|
|
LIBKEYCAP?= ${DESTDIR}${LIBDIR}/libkeycap.a
|
|
LIBKICONV?= ${DESTDIR}${LIBDIR}/libkiconv.a
|
|
LIBKRB5?= ${DESTDIR}${LIBDIR}/libkrb5.a
|
|
LIBKVM?= ${DESTDIR}${LIBDIR}/libkvm.a
|
|
LIBL?= ${DESTDIR}${LIBDIR}/libl.a
|
|
LIBLN?= "don't use LIBLN, use LIBL"
|
|
LIBLZMA?= ${DESTDIR}${LIBDIR}/liblzma.a
|
|
LIBM?= ${DESTDIR}${LIBDIR}/libm.a
|
|
LIBMAGIC?= ${DESTDIR}${LIBDIR}/libmagic.a
|
|
LIBMD?= ${DESTDIR}${LIBDIR}/libmd.a
|
|
LIBMEMSTAT?= ${DESTDIR}${LIBDIR}/libmemstat.a
|
|
LIBMENU?= ${DESTDIR}${LIBDIR}/libmenu.a
|
|
LIBMILTER?= ${DESTDIR}${LIBDIR}/libmilter.a
|
|
LIBMLX4?= ${DESTDIR}${LIBDIR}/libmlx4.a
|
|
LIBMP?= ${DESTDIR}${LIBDIR}/libmp.a
|
|
LIBMT?= ${DESTDIR}${LIBDIR}/libmt.a
|
|
LIBMTHCA?= ${DESTDIR}${LIBDIR}/libmthca.a
|
|
LIBNANDFS?= ${DESTDIR}${LIBDIR}/libnandfs.a
|
|
LIBNCURSES?= ${DESTDIR}${LIBDIR}/libncurses.a
|
|
LIBNCURSESW?= ${DESTDIR}${LIBDIR}/libncursesw.a
|
|
LIBNETGRAPH?= ${DESTDIR}${LIBDIR}/libnetgraph.a
|
|
LIBNGATM?= ${DESTDIR}${LIBDIR}/libngatm.a
|
|
LIBNV?= ${DESTDIR}${LIBDIR}/libnv.a
|
|
LIBNVPAIR?= ${DESTDIR}${LIBDIR}/libnvpair.a
|
|
LIBOPENSM?= ${DESTDIR}${LIBDIR}/libopensm.a
|
|
LIBOPIE?= ${DESTDIR}${LIBDIR}/libopie.a
|
|
LIBOSMCOMP?= ${DESTDIR}${LIBDIR}/libosmcomp.a
|
|
LIBOSMVENDOR?= ${DESTDIR}${LIBDIR}/libosmvendor.a
|
|
LIBPAM?= ${DESTDIR}${LIBDIR}/libpam.a
|
|
LIBPANEL?= ${DESTDIR}${LIBDIR}/libpanel.a
|
|
LIBPANELW?= ${DESTDIR}${LIBDIR}/libpanelw.a
|
|
LIBPCAP?= ${DESTDIR}${LIBDIR}/libpcap.a
|
|
LIBPJDLOG?= ${DESTDIR}${LIBDIR}/libpjdlog.a
|
|
LIBPMC?= ${DESTDIR}${LIBDIR}/libpmc.a
|
|
LIBPROC?= ${DESTDIR}${LIBDIR}/libproc.a
|
|
LIBPROCSTAT?= ${DESTDIR}${LIBDIR}/libprocstat.a
|
|
LIBPTHREAD?= ${DESTDIR}${LIBDIR}/libpthread.a
|
|
LIBRADIUS?= ${DESTDIR}${LIBDIR}/libradius.a
|
|
LIBRDMACM?= ${DESTDIR}${LIBDIR}/librdmacm.a
|
|
LIBROKEN?= ${DESTDIR}${LIBDIR}/libroken.a
|
|
LIBRPCSEC_GSS?= ${DESTDIR}${LIBDIR}/librpcsec_gss.a
|
|
LIBRPCSVC?= ${DESTDIR}${LIBDIR}/librpcsvc.a
|
|
LIBRT?= ${DESTDIR}${LIBDIR}/librt.a
|
|
LIBRTLD_DB?= ${DESTDIR}${LIBDIR}/librtld_db.a
|
|
LIBSBUF?= ${DESTDIR}${LIBDIR}/libsbuf.a
|
|
LIBSDP?= ${DESTDIR}${LIBDIR}/libsdp.a
|
|
LIBSMB?= ${DESTDIR}${LIBDIR}/libsmb.a
|
|
LIBSSL?= ${DESTDIR}${LIBDIR}/libssl.a
|
|
LIBSSP_NONSHARED?= ${DESTDIR}${LIBDIR}/libssp_nonshared.a
|
|
LIBSTAND?= ${DESTDIR}${LIBDIR}/libstand.a
|
|
LIBSTDCPLUSPLUS?= ${DESTDIR}${LIBDIR}/libstdc++.a
|
|
LIBSTDTHREADS?= ${DESTDIR}${LIBDIR}/libstdthreads.a
|
|
LIBSYSDECODE?= ${DESTDIR}${LIBDIR}/libsysdecode.a
|
|
LIBTACPLUS?= ${DESTDIR}${LIBDIR}/libtacplus.a
|
|
LIBTERMCAP?= ${DESTDIR}${LIBDIR}/libtermcap.a
|
|
LIBTERMCAPW?= ${DESTDIR}${LIBDIR}/libtermcapw.a
|
|
LIBTERMLIB?= "don't use LIBTERMLIB, use LIBTERMCAP"
|
|
LIBTINFO?= "don't use LIBTINFO, use LIBNCURSES"
|
|
LIBUFS?= ${DESTDIR}${LIBDIR}/libufs.a
|
|
LIBUGIDFW?= ${DESTDIR}${LIBDIR}/libugidfw.a
|
|
LIBULOG?= ${DESTDIR}${LIBDIR}/libulog.a
|
|
LIBUMEM?= ${DESTDIR}${LIBDIR}/libumem.a
|
|
LIBUSB?= ${DESTDIR}${LIBDIR}/libusb.a
|
|
LIBUSBHID?= ${DESTDIR}${LIBDIR}/libusbhid.a
|
|
LIBUTIL?= ${DESTDIR}${LIBDIR}/libutil.a
|
|
LIBUUTIL?= ${DESTDIR}${LIBDIR}/libuutil.a
|
|
LIBVGL?= ${DESTDIR}${LIBDIR}/libvgl.a
|
|
LIBVMMAPI?= ${DESTDIR}${LIBDIR}/libvmmapi.a
|
|
LIBWIND?= ${DESTDIR}${LIBDIR}/libwind.a
|
|
LIBWRAP?= ${DESTDIR}${LIBDIR}/libwrap.a
|
|
LIBXO?= ${DESTDIR}${LIBDIR}/libxo.a
|
|
LIBXPG4?= ${DESTDIR}${LIBDIR}/libxpg4.a
|
|
LIBY?= ${DESTDIR}${LIBDIR}/liby.a
|
|
LIBYPCLNT?= ${DESTDIR}${LIBDIR}/libypclnt.a
|
|
LIBZ?= ${DESTDIR}${LIBDIR}/libz.a
|
|
LIBZFS?= ${DESTDIR}${LIBDIR}/libzfs.a
|
|
LIBZFS_CORE?= ${DESTDIR}${LIBDIR}/libzfs_core.a
|
|
LIBZPOOL?= ${DESTDIR}${LIBDIR}/libzpool.a
|
|
|
|
# enforce the 2 -lpthread and -lc to always be the last in that exact order
|
|
.if defined(LDADD)
|
|
.if ${LDADD:M-lpthread}
|
|
LDADD:= ${LDADD:N-lpthread} -lpthread
|
|
.endif
|
|
.if ${LDADD:M-lc}
|
|
LDADD:= ${LDADD:N-lc} -lc
|
|
.endif
|
|
.endif
|
|
|
|
# Only do this for src builds.
|
|
.if defined(SRCTOP)
|
|
.if defined(_LIBRARIES) && defined(LIB) && \
|
|
${_LIBRARIES:M${LIB}} != ""
|
|
.if !defined(LIB${LIB:tu})
|
|
.error ${.CURDIR}: Missing value for LIB${LIB:tu} in ${_this:T}. Likely should be: LIB${LIB:tu}?= $${DESTDIR}$${LIBDIR}/lib${LIB}.a
|
|
.endif
|
|
.endif
|
|
|
|
# Derive LIB*SRCDIR from LIB*DIR
|
|
.for lib in ${_LIBRARIES}
|
|
LIB${lib:tu}SRCDIR?= ${SRCTOP}/${LIB${lib:tu}DIR:S,^${OBJTOP}/,,}
|
|
.endfor
|
|
.endif
|