Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/common add libcompat.o/.po targets for COMPAT_AS=obj



details:   https://anonhg.NetBSD.org/src/rev/000d2fd400a9
branches:  trunk
changeset: 768206:000d2fd400a9
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Aug 11 21:23:09 2011 +0000

description:
add libcompat.o/.po targets for COMPAT_AS=obj

diffstat:

 sys/compat/common/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 9c7f185e5686 -r 000d2fd400a9 sys/compat/common/Makefile
--- a/sys/compat/common/Makefile        Thu Aug 11 20:56:34 2011 +0000
+++ b/sys/compat/common/Makefile        Thu Aug 11 21:23:09 2011 +0000
@@ -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 @@
 .undef DESTDIR
 .include <bsd.lib.mk>
 
+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}



Home | Main Index | Thread Index | Old Index