Module Name: src
Committed By: jmcneill
Date: Thu Aug 11 21:23:09 UTC 2011
Modified Files:
src/sys/compat/common: Makefile
Log Message:
add libcompat.o/.po targets for COMPAT_AS=obj
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/compat/common/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/common/Makefile
diff -u src/sys/compat/common/Makefile:1.46 src/sys/compat/common/Makefile:1.47
--- src/sys/compat/common/Makefile:1.46 Mon Jan 17 15:57:04 2011
+++ src/sys/compat/common/Makefile Thu Aug 11 21:23:09 2011
@@ -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}