1# $NetBSD: Makefile,v 1.1 2006/04/07 14:21:32 cherry Exp $ 2 3S?= ${.CURDIR}/../../../../../ 4 5.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH} 6 7LIB= efi 8NOPROFILE=# defined 9INTERNALLIB=# defined 10 11EFI_INCLUDE_NET?= no 12 13CPPFLAGS= -I${EFICPPFLAGS} ${EFIMISCCPPFLAGS} 14CPPFLAGS+= -I${.CURDIR}/../include 15CPPFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH} 16 17# Pick up the bootstrap header for some interface items 18CPPFLAGS+= -I${.CURDIR}/../../common 19 20SRCS= copy.c delay.c efi.c efi_console.c devicename.c bootinfo.c 21SRCS+= time.c efifs.c efi_console.c module.c exec.c #efinet.c 22 23.if ${MACHINE_ARCH} == "ia64" 24SRCS+= efifpswa.c pal.S 25.endif 26 27.if (${EFI_INCLUDE_NET} == "yes") 28SRCS+= efinet.c #etc. 29.endif 30 31.include <bsd.own.mk> 32.undef DESTDIR 33.include <bsd.lib.mk> 34 35lib${LIB}.o:: ${OBJS} 36 @echo building standard ${LIB} $OBJS} library 37 @rm -f lib${LIB}.o 38 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 39