1 1.98 uebayasi # $NetBSD: Makefile,v 1.98 2015/09/07 03:20:18 uebayasi Exp $ 2 1.1 cgd 3 1.68 perry LIB= kern 4 1.97 njoly NOPIC= # defined 5 1.97 njoly LLIBS= # defined 6 1.9 deraadt 7 1.94 pooka .include "Makefile.libkern" 8 1.95 he .ifndef ARCHSUBDIR 9 1.59 bjh21 .BEGIN: 10 1.60 enami @echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU} 11 1.60 enami @false 12 1.59 bjh21 .endif 13 1.59 bjh21 14 1.97 njoly # only needed during build 15 1.97 njoly libinstall:: 16 1.97 njoly 17 1.97 njoly .undef DESTDIR 18 1.1 cgd .include <bsd.lib.mk> 19 1.23 mycroft 20 1.23 mycroft lib${LIB}.o:: ${OBJS} 21 1.23 mycroft @echo building standard ${LIB} library 22 1.23 mycroft @rm -f lib${LIB}.o 23 1.37 gwr @${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}` 24 1.98 uebayasi @echo done 25 1.23 mycroft 26 1.23 mycroft lib${LIB}.po:: ${POBJS} 27 1.23 mycroft @echo building profiled ${LIB} library 28 1.23 mycroft @rm -f lib${LIB}.po 29 1.37 gwr @${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}` 30 1.98 uebayasi @echo done 31 1.65 wrstuden 32 1.98 uebayasi showsources: ${SRCS:O} 33 1.65 wrstuden @echo ${.ALLSRC} 34