NetBSD/sys/lib/libgnuefi/Makefile
2015-09-07 03:44:19 +00:00

49 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2015/09/07 03:44:19 uebayasi Exp $
LIB= gnuefi
LIBISPRIVATE?= yes
GNUEFI_USE_CREAD?= no # Read compressed kernels
GNUEFI_INCLUDE_NET?= yes # Netboot via TFTP, NFS
GNUEFI_USE_LOADFILE?= no # Generic executable loading support
GNUEFI_ENABLE_LS_OP?= no # Filesystems ls operation
CPPFLAGS= -I${GNUEFIDIR} ${GNUEFICPPFLAGS} ${GNUEFIMISCCPPFLAGS}
.if ${MACHINE_ARCH} == "i386"
GNUEFIARCH=ia32
.else
GNUEFIARCH=${MACHINE_ARCH}
.endif
.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif
.include <bsd.own.mk>
.PATH.c: ${GNUEFIDIR} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/${GNUEFIARCH} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/runtime
SRCS+= boxdraw.c smbios.c console.c crc.c data.c debug.c dpath.c \
error.c event.c guid.c hand.c hw.c init.c lock.c \
misc.c print.c sread.c str.c \
rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \
initplat.c math.c
COPTS.boxdraw.c= -Wno-missing-field-initializers
COPTS.guid.c= -Wno-missing-field-initializers
COPTS.smbios.c= -Wno-int-to-pointer-cast
COPTS.dpath.c= -Wno-missing-prototypes
COPTS.print.c= -Wno-missing-prototypes
COPTS.hw.c= -Wno-shadow
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS:O}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
@echo done
CPPFLAGS+= -Wno-pointer-sign