Use the standard build rules.

This commit is contained in:
christos 2018-06-05 00:57:47 +00:00
parent 4cb6d5fb56
commit de3955c3eb
3 changed files with 7 additions and 19 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.100 2016/03/22 08:25:23 mrg Exp $
# $NetBSD: Makefile,v 1.101 2018/06/05 00:57:47 christos Exp $
LIB= kern
NOPIC= # defined
@ -17,15 +17,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 `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 `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
lib${LIB}.po:: ${POBJS:O} __buildproflib
showsources: ${SRCS:O}
@echo ${.ALLSRC}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.87 2016/03/22 08:25:23 mrg Exp $
# $NetBSD: Makefile,v 1.88 2018/06/05 00:57:47 christos Exp $
LIB= sa
LIBISPRIVATE?= yes
@ -79,10 +79,7 @@ SRCS+= ufs.c
.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 `lorder ${OBJS} | tsort`
lib${LIB}.o:: ${OBJS:O} __buildstdlib
CPPFLAGS+= -Wno-pointer-sign

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.22 2016/03/22 08:25:23 mrg Exp $
# $NetBSD: Makefile,v 1.23 2018/06/05 00:57:47 christos Exp $
LIB= z
LIBISPRIVATE= yes
@ -24,10 +24,7 @@ CLEANFILES+= lib${LIB}.o
.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 `lorder ${OBJS} | tsort`
lib${LIB}.o:: ${OBJS:O} __buildstdlib
.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
COPTS.inftrees.c+= -O0