Home | History | Annotate | Line # | Download | only in libgnuefi
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 2015/09/07 03:44:19 uebayasi Exp $
      2 
      3 LIB=	gnuefi
      4 LIBISPRIVATE?= yes
      5 
      6 GNUEFI_USE_CREAD?= no		# Read compressed kernels
      7 GNUEFI_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
      8 GNUEFI_USE_LOADFILE?= no		# Generic executable loading support
      9 GNUEFI_ENABLE_LS_OP?= no		# Filesystems ls operation
     10 
     11 CPPFLAGS=	-I${GNUEFIDIR} ${GNUEFICPPFLAGS} ${GNUEFIMISCCPPFLAGS}
     12 
     13 .if ${MACHINE_ARCH} == "i386"
     14 GNUEFIARCH=ia32
     15 .else
     16 GNUEFIARCH=${MACHINE_ARCH}
     17 .endif
     18 
     19 .if defined(GNUEFI_EXTRADIR)
     20 .-include "${GNUEFI_EXTRADIR}/Makefile.inc"
     21 .endif
     22 
     23 .include <bsd.own.mk>
     24 
     25 .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
     26 
     27 SRCS+=	boxdraw.c smbios.c console.c crc.c data.c debug.c dpath.c \
     28 	error.c event.c guid.c hand.c hw.c init.c lock.c \
     29 	misc.c print.c sread.c str.c \
     30 	rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \
     31 	initplat.c math.c
     32 
     33 COPTS.boxdraw.c= -Wno-missing-field-initializers
     34 COPTS.guid.c= -Wno-missing-field-initializers
     35 COPTS.smbios.c= -Wno-int-to-pointer-cast
     36 COPTS.dpath.c= -Wno-missing-prototypes
     37 COPTS.print.c= -Wno-missing-prototypes
     38 COPTS.hw.c= -Wno-shadow
     39 
     40 .include <bsd.lib.mk>
     41 
     42 lib${LIB}.o:: ${OBJS:O}
     43 	@echo building standard ${LIB} library
     44 	@rm -f lib${LIB}.o
     45 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     46 	@echo done
     47 
     48 CPPFLAGS+=	-Wno-pointer-sign
     49