NetBSD/sys/lib/libkern/Makefile

32 lines
665 B
Makefile

# $NetBSD: Makefile,v 1.100 2016/03/22 08:25:23 mrg Exp $
LIB= kern
NOPIC= # defined
LLIBS= # defined
.include "Makefile.libkern"
.ifndef ARCHSUBDIR
.BEGIN:
@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
@false
.endif
# only needed during build
libinstall::
.undef DESTDIR
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS:O}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}`
lib${LIB}.po:: ${POBJS:O}
@echo building profiled ${LIB} library
@rm -f lib${LIB}.po
@${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
showsources: ${SRCS:O}
@echo ${.ALLSRC}