Makefile revision 1.28
1#	$NetBSD: Makefile,v 1.28 2014/08/10 23:25:49 matt Exp $
2
3.include <bsd.own.mk>
4
5# These should always be a MACHINE_CPU value
6ARCHDIRS= alpha arm i386 m68k sparc x86_64
7
8.for arch in ${ARCHDIRS}
9.include "${.CURDIR}/${arch}/Makefile.inc"
10.PATH:	${.CURDIR}/${arch}
11.endfor
12
13OBJS+= ${ASM}
14POBJS+=	${ASM:.o=.po}
15CLEANFILES+= ${ASM} ${POBJS}
16
17LIBC_MACHINE_CPU?=	${MACHINE_CPU}
18
19# Build the library if SRCS is now defined ...
20.if defined(SRCS)
21.if defined(MLIBDIR) && ${MLIBDIR} != "none" && ${LIBC_MACHINE_CPU} != "arm"
22LIB=	${MLIBDIR}
23.else
24LIB=	${LIBC_MACHINE_CPU}
25.endif
26SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version
27
28.include <bsd.lib.mk>
29.else
30# ... otherwise just build the manpages
31.include <bsd.man.mk>
32.endif
33.include <bsd.subdir.mk>
34