2001-01-08 11:29:59 +03:00
|
|
|
# $NetBSD: Makefile,v 1.8 2001/01/08 08:30:00 itojun Exp $
|
1997-05-19 00:14:21 +04:00
|
|
|
|
|
|
|
LIB= posix
|
|
|
|
|
1999-08-21 07:28:54 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1997-10-23 06:53:50 +04:00
|
|
|
CPPFLAGS+=-D_REENTRANT -I${.CURDIR}/../libc/include
|
2001-01-08 11:29:59 +03:00
|
|
|
.if exists(${.CURDIR}/../libc/arch/${MACHINE_ARCH})
|
1999-02-24 18:10:16 +03:00
|
|
|
ARCHDIR= ${.CURDIR}/../libc/arch/${MACHINE_ARCH}
|
2001-01-08 11:29:59 +03:00
|
|
|
.elif exists(${.CURDIR}/../libc/arch/${MACHINE_CPU})
|
|
|
|
ARCHDIR= ${.CURDIR}/../libc/arch/${MACHINE_CPU}
|
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@echo no ARCHDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
|
|
|
|
@false
|
1999-02-24 18:10:16 +03:00
|
|
|
.endif
|
2001-01-08 11:29:59 +03:00
|
|
|
|
1999-02-24 18:10:16 +03:00
|
|
|
AINC= -I${ARCHDIR}
|
1997-06-01 01:21:13 +04:00
|
|
|
.if defined(DESTDIR)
|
|
|
|
AINC+= -nostdinc -idirafter ${DESTDIR}/usr/include
|
1997-05-19 00:14:21 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "${.CURDIR}/sys/Makefile.inc"
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|