1 1.2 rmind # $NetBSD: Makefile,v 1.2 2007/04/30 14:44:29 rmind Exp $ 2 1.1 thorpej # 3 1.1 thorpej 4 1.1 thorpej WARNS= 2 5 1.1 thorpej 6 1.1 thorpej LIB= rt 7 1.1 thorpej SRCS= sem.c 8 1.1 thorpej 9 1.1 thorpej MAN+= sem_destroy.3 sem_getvalue.3 sem_init.3 sem_open.3 sem_post.3 \ 10 1.1 thorpej sem_wait.3 11 1.1 thorpej 12 1.1 thorpej MLINKS+= sem_open.3 sem_close.3 13 1.1 thorpej MLINKS+= sem_open.3 sem_unlink.3 14 1.1 thorpej MLINKS+= sem_wait.3 sem_trywait.3 15 1.1 thorpej 16 1.2 rmind .include <bsd.own.mk> 17 1.2 rmind 18 1.2 rmind .if exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH}) 19 1.2 rmind ARCHDIR= ${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH} 20 1.2 rmind .elif exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_CPU}) 21 1.2 rmind ARCHDIR= ${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_CPU} 22 1.2 rmind .else 23 1.2 rmind .BEGIN: 24 1.2 rmind @echo no ARCHDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU} 25 1.2 rmind @false 26 1.2 rmind .endif 27 1.2 rmind 28 1.2 rmind AFLAGS+=-I${ARCHDIR} 29 1.2 rmind 30 1.2 rmind .include "${.CURDIR}/sys/Makefile.inc" 31 1.2 rmind 32 1.1 thorpej .include <bsd.lib.mk> 33