Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libkern Use <bsd.klinks.mk>
details: https://anonhg.NetBSD.org/src/rev/8ad9c867ee53
branches: trunk
changeset: 789513:8ad9c867ee53
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 21 05:45:16 2013 +0000
description:
Use <bsd.klinks.mk>
diffstat:
lib/libkern/Makefile | 49 ++-----------------------------------------------
1 files changed, 2 insertions(+), 47 deletions(-)
diffs (72 lines):
diff -r 703d1333a22d -r 8ad9c867ee53 lib/libkern/Makefile
--- a/lib/libkern/Makefile Wed Aug 21 03:18:05 2013 +0000
+++ b/lib/libkern/Makefile Wed Aug 21 05:45:16 2013 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.4 2013/08/20 20:54:35 matt Exp $
+# $NetBSD: Makefile,v 1.5 2013/08/21 05:45:16 matt Exp $
WITHOUT_MAN=true # defined
.include <bsd.obj.mk> # Pull in OBJDIR name rules.
.include <bsd.own.mk>
+.include <bsd.klinks.mk>
LIB= kern
LIBISPRIVATE?= yes
@@ -20,39 +21,6 @@
CWARNFLAGS+= -Werror
CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
-.if !make(obj) && !make(clean) && !make(cleandir)
-.NOPATH: machine
-.endif
-
-realdepend realall: machine .WAIT
-CLEANFILES+= ${MACHINE_CPU} machine
-
-ARCHDIRS.i386= x86
-ARCHDIRS.m68000= m68k
-ARCHDIRS.sparc64= sparc
-ARCHDIRS.x86_64= x86
-MACHDIRS.sun2= sun68k
-
-machine::
-.if ${MACHINE_CPU} == "arm"
- ln -sf ${S}/arch/${MACHINE_CPU}/include machine
-.else
- ln -sf ${S}/arch/${MACHINE}/include machine
-.endif
-.if !empty(ARCHDIRS.${MACHINE_ARCH})
-.for d in ${ARCHDIRS.${MACHINE_ARCH}}
- ln -sf ${S}/arch/${d}/include ${d}
-.endfor
-.endif
-.if !empty(MACHDIRS.${MACHINE})
-.for d in ${MACHDIRS.${MACHINE}}
- ln -sf ${S}/arch/${d}/include ${d}
-.endfor
-.endif
- ln -sf ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}
-
-${OBJS}: machine
-
### find out what to use for libkern
KERN_AS= library
KERNDIR= ${S}/lib/libkern
@@ -65,16 +33,3 @@
.endif
.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}
Home |
Main Index |
Thread Index |
Old Index