1 # $NetBSD: Makefile,v 1.98 2015/09/07 03:20:18 uebayasi Exp $ 2 3 LIB= kern 4 NOPIC= # defined 5 LLIBS= # 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 15 libinstall:: 16 17 .undef DESTDIR 18 .include <bsd.lib.mk> 19 20 lib${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 @echo done 25 26 lib${LIB}.po:: ${POBJS} 27 @echo building profiled ${LIB} library 28 @rm -f lib${LIB}.po 29 @${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}` 30 @echo done 31 32 showsources: ${SRCS:O} 33 @echo ${.ALLSRC} 34