Use the standard build rules.
This commit is contained in:
parent
4cb6d5fb56
commit
de3955c3eb
@ -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
|
LIB= kern
|
||||||
NOPIC= # defined
|
NOPIC= # defined
|
||||||
@ -17,15 +17,9 @@ libinstall::
|
|||||||
.undef DESTDIR
|
.undef DESTDIR
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
||||||
lib${LIB}.o:: ${OBJS:O}
|
lib${LIB}.o:: ${OBJS:O} __buildstdlib
|
||||||
@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:O}
|
lib${LIB}.po:: ${POBJS:O} __buildproflib
|
||||||
@echo building profiled ${LIB} library
|
|
||||||
@rm -f lib${LIB}.po
|
|
||||||
@${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
|
|
||||||
|
|
||||||
showsources: ${SRCS:O}
|
showsources: ${SRCS:O}
|
||||||
@echo ${.ALLSRC}
|
@echo ${.ALLSRC}
|
||||||
|
@ -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
|
LIB= sa
|
||||||
LIBISPRIVATE?= yes
|
LIBISPRIVATE?= yes
|
||||||
@ -79,10 +79,7 @@ SRCS+= ufs.c
|
|||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
||||||
lib${LIB}.o:: ${OBJS:O}
|
lib${LIB}.o:: ${OBJS:O} __buildstdlib
|
||||||
@echo building standard ${LIB} library
|
|
||||||
@rm -f lib${LIB}.o
|
|
||||||
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
|
|
||||||
|
|
||||||
CPPFLAGS+= -Wno-pointer-sign
|
CPPFLAGS+= -Wno-pointer-sign
|
||||||
|
|
||||||
|
@ -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
|
LIB= z
|
||||||
LIBISPRIVATE= yes
|
LIBISPRIVATE= yes
|
||||||
@ -24,10 +24,7 @@ CLEANFILES+= lib${LIB}.o
|
|||||||
.undef DESTDIR
|
.undef DESTDIR
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
||||||
lib${LIB}.o:: ${OBJS:O}
|
lib${LIB}.o:: ${OBJS:O} __buildstdlib
|
||||||
@echo building standard ${LIB} library
|
|
||||||
@rm -f lib${LIB}.o
|
|
||||||
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
|
|
||||||
|
|
||||||
.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
|
.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
|
||||||
COPTS.inftrees.c+= -O0
|
COPTS.inftrees.c+= -O0
|
||||||
|
Loading…
Reference in New Issue
Block a user