diff --git a/sys/compat/common/Makefile b/sys/compat/common/Makefile index d4024a83591a..b5537424c720 100644 --- a/sys/compat/common/Makefile +++ b/sys/compat/common/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.46 2011/01/17 15:57:04 pooka Exp $ +# $NetBSD: Makefile,v 1.47 2011/08/11 21:23:09 jmcneill Exp $ LIB= compat NOPIC= # defined @@ -57,5 +57,15 @@ libinstall:: .undef DESTDIR .include +lib${LIB}.o:: ${OBJS} + @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} + @echo building profiled ${LIB} library + @rm -f lib${LIB}.po + @${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}` + showsources: ${SRCS} @echo ${.ALLSRC}