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