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