xref: /netbsd/sys/lib/libkern/Makefile (revision 6550d01e)
1#	$NetBSD: Makefile,v 1.95 2009/01/18 20:42:11 he 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}
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}
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}
31	@echo ${.ALLSRC}
32