1#	$NetBSD: Makefile,v 1.2 2023/09/04 18:16:53 riastradh Exp $
2#
3
4# libc routines with strictly aligned memory access
5
6USE_SHLIBDIR=	yes
7
8.include <bsd.own.mk>
9
10LIBC_MACHINE_CPU?= ${MACHINE_CPU}
11
12.if exists(arch/${LIBC_MACHINE_CPU})
13.include "arch/${LIBC_MACHINE_CPU}/Makefile.inc"
14.PATH: ${.CURDIR}/arch/${LIBC_MACHINE_CPU}
15.elif exists(arch/${MACHINE_ARCH})
16.include "arch/${MACHINE_ARCH}/Makefile.inc"
17.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
18.elif exists(arch/${MACHINE})
19.include "arch/${MACHINE}/Makefile.inc"
20.PATH: ${.CURDIR}/arch/${MACHINE}
21.endif
22
23.if !empty(SRCS)
24
25LIB?=		c_aligned
26
27.include <bsd.lib.mk>
28.endif
29