Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/bebox/stand Use <bsd.klinks.mk>



details:   https://anonhg.NetBSD.org/src/rev/1cca002e17e6
branches:  trunk
changeset: 789524:1cca002e17e6
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 21 06:53:10 2013 +0000

description:
Use <bsd.klinks.mk>

diffstat:

 sys/arch/bebox/stand/boot/Makefile   |  18 +++---------------
 sys/arch/bebox/stand/common/Makefile |  18 +++---------------
 2 files changed, 6 insertions(+), 30 deletions(-)

diffs (79 lines):

diff -r fa65e4a5b6ae -r 1cca002e17e6 sys/arch/bebox/stand/boot/Makefile
--- a/sys/arch/bebox/stand/boot/Makefile        Wed Aug 21 06:49:44 2013 +0000
+++ b/sys/arch/bebox/stand/boot/Makefile        Wed Aug 21 06:53:10 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.32 2012/09/01 00:29:00 matt Exp $
+#      $NetBSD: Makefile,v 1.33 2013/08/21 06:53:10 matt Exp $
 
 NOMAN= # defined
 
@@ -56,23 +56,10 @@
 
 RELOC= 0x700000
 
-CLEANFILES+= vers.c machine powerpc ${PROG}.elf
+CLEANFILES+= vers.c ${PROG}.elf
 
 LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
 
-.if !make(obj) && !make(clean) && !make(cleandir)
-.BEGIN: machine powerpc
-.NOPATH: machine powerpc
-
-machine::
-       -rm -f $@
-       ln -s ${S}/arch/${MACHINE}/include $@
-
-powerpc::
-       -rm -f $@
-       ln -s ${S}/arch/powerpc/include $@
-.endif
-
 vers.c: ${.CURDIR}/../boot/version
        ${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
            ${.CURDIR}/../boot/version "bebox" ${NEWVERSWHAT}
@@ -84,3 +71,4 @@
        ${STRIP} -o ${PROG} ${PROG}.elf
 
 .include <bsd.prog.mk>
+.include <bsd.klinks.mk>
diff -r fa65e4a5b6ae -r 1cca002e17e6 sys/arch/bebox/stand/common/Makefile
--- a/sys/arch/bebox/stand/common/Makefile      Wed Aug 21 06:49:44 2013 +0000
+++ b/sys/arch/bebox/stand/common/Makefile      Wed Aug 21 06:53:10 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2010/05/27 06:58:13 dholland Exp $
+#      $NetBSD: Makefile,v 1.3 2013/08/21 06:53:10 matt Exp $
 
 S= ${.CURDIR}/../../../..
 
@@ -11,20 +11,8 @@
 
 CFLAGS= -Os -mmultiple -ffreestanding
 
-CLEANFILES+= machine powerpc
-
-.if !make(obj) && !make(clean) && !make(cleandir)
-.PHONY: machine-links
-beforedepend: machine-links
-
-machine-links:
-       -rm -f machine
-       ln -s ${S}/arch/${MACHINE}/include machine
-       -rm -f ${MACHINE_ARCH}
-       ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
-.endif
-
 .include <bsd.prog.mk>
+.include <bsd.klinks.mk>
 
 ### find out what to use for libkern
 KERN_AS=       library
@@ -44,7 +32,7 @@
 
 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
 
-realall: machine-links ${LIBS}
+realall: ${LIBS}
 
 cleandir distclean: .WAIT cleanlibdir
 



Home | Main Index | Thread Index | Old Index