1#	$NetBSD: Makefile,v 1.100 2016/03/22 08:25:23 mrg Exp $
2
3LIB=		kern
4NOPIC=		# defined
5LLIBS=		# defined
6
7.include "Makefile.libkern"
8.ifndef ARCHSUBDIR
9.BEGIN:
10	@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
11	@false
12.endif
13
14# only needed during build
15libinstall::
16
17.undef DESTDIR
18.include <bsd.lib.mk>
19
20lib${LIB}.o:: ${OBJS:O}
21	@echo building standard ${LIB} library
22	@rm -f lib${LIB}.o
23	@${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}`
24
25lib${LIB}.po:: ${POBJS:O}
26	@echo building profiled ${LIB} library
27	@rm -f lib${LIB}.po
28	@${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
29
30showsources: ${SRCS:O}
31	@echo ${.ALLSRC}
32