From a2d8a0afcbc6bc463ad07c1a104cced178801f4d Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 5 Jun 2018 00:58:17 +0000 Subject: [PATCH] use the standard rules, instead of rolling our own. --- sys/compat/common/Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sys/compat/common/Makefile b/sys/compat/common/Makefile index 4adafbeace30..6ffde9db913d 100644 --- a/sys/compat/common/Makefile +++ b/sys/compat/common/Makefile @@ -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 -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}