1 # $NetBSD: Makefile,v 1.94 2009/01/04 18:00:55 pooka 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 25 lib${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 30 showsources: ${SRCS} 31 @echo ${.ALLSRC} 32