Home | History | Annotate | Line # | Download | only in libefi
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2015/09/07 03:44:19 uebayasi 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 EFI_INCLUDE_NET?= no
     12 
     13 CPPFLAGS= -I${EFICPPFLAGS} ${EFIMISCCPPFLAGS}
     14 CPPFLAGS+= -I${.CURDIR}/../include
     15 CPPFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
     16 
     17 # Pick up the bootstrap header for some interface items
     18 CPPFLAGS+= -I${.CURDIR}/../../common
     19 
     20 SRCS=  copy.c delay.c efi.c efi_console.c devicename.c bootinfo.c
     21 SRCS+= time.c efifs.c efi_console.c module.c exec.c #efinet.c
     22 
     23 .if ${MACHINE_ARCH} == "ia64"
     24 SRCS+=	efifpswa.c pal.S
     25 .endif
     26 
     27 .if (${EFI_INCLUDE_NET} == "yes")
     28 SRCS+= efinet.c #etc.
     29 .endif
     30 
     31 .include <bsd.own.mk>
     32 .undef DESTDIR
     33 .include <bsd.lib.mk>
     34 
     35 lib${LIB}.o:: ${OBJS:O}
     36 	@echo building standard ${LIB} $OBJS} library
     37 	@rm -f lib${LIB}.o
     38 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     39 	@echo done
     40