Home | History | Annotate | Line # | Download | only in libefi
      1 #	$NetBSD: Makefile,v 1.6 2016/08/04 16:22:40 scole Exp $
      2 
      3 S?=	${.CURDIR}/../../../../../
      4 
      5 .PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
      6 
      7 LIB= efi
      8 NOPROFILE=# defined
      9 INTERNALLIB=#	defined
     10 
     11 CPPFLAGS= -I${EFICPPFLAGS} ${EFIMISCCPPFLAGS}
     12 CPPFLAGS+= -I${.CURDIR}/../include
     13 CPPFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
     14 
     15 # Pick up the bootstrap header for some interface items
     16 CPPFLAGS+= -I${.CURDIR}/../../common
     17 
     18 SRCS=  copy.c delay.c efi.c efi_console.c devicename.c bootinfo.c
     19 SRCS+= time.c efifs.c efi_console.c module.c exec.c efinet.c
     20 
     21 .if ${MACHINE_ARCH} == "ia64"
     22 SRCS+=	efifpswa.c pal.S
     23 .endif
     24 
     25 .include <bsd.own.mk>
     26 .undef DESTDIR
     27 .include <bsd.lib.mk>
     28 
     29 lib${LIB}.o:: ${OBJS:O}
     30 	@echo building standard ${LIB} $OBJS} library
     31 	@rm -f lib${LIB}.o
     32 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     33