use the standard rules, instead of rolling our own.

This commit is contained in:
christos 2018-06-05 00:58:17 +00:00
parent de3955c3eb
commit a2d8a0afcb
1 changed files with 3 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.63 2017/12/20 04:46:19 maya Exp $
# $NetBSD: Makefile,v 1.64 2018/06/05 00:58:17 christos Exp $
LIB= compat
NOPIC= # defined
@ -23,15 +23,9 @@ libinstall::
.undef DESTDIR
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS:O}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o ${LDFLAGS} `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}`
lib${LIB}.o:: ${OBJS:O} __buildstdlib
lib${LIB}.po:: ${POBJS:O}
@echo building profiled ${LIB} library
@rm -f lib${LIB}.po
@${LD} -r -o lib${LIB}.po ${LDFLAGS} `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
lib${LIB}.po:: ${POBJS:O} __buildproflib
showsources: ${SRCS}
@echo ${.ALLSRC}