Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/aa0b586d2d3e
branches:  trunk
changeset: 789522:aa0b586d2d3e
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 21 06:46:26 2013 +0000

description:
Use <bsd.klinks.mk>
Add ${_MKTARGET_LINK}

diffstat:

 sys/arch/ofppc/stand/ofwboot/Makefile |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (40 lines):

diff -r 0e8e66e9f25c -r aa0b586d2d3e sys/arch/ofppc/stand/ofwboot/Makefile
--- a/sys/arch/ofppc/stand/ofwboot/Makefile     Wed Aug 21 06:41:52 2013 +0000
+++ b/sys/arch/ofppc/stand/ofwboot/Makefile     Wed Aug 21 06:46:26 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.27 2011/01/24 19:27:18 joerg Exp $
+#      $NetBSD: Makefile,v 1.28 2013/08/21 06:46:26 matt Exp $
 
 S!=    cd ${.CURDIR}/../../../.. ; pwd
 
@@ -14,6 +14,7 @@
 CPPFLAGS+=     -DHEAP_VARIABLE
 
 .include <bsd.own.mk>
+.include <bsd.klinks.mk>
 
 DBG=           -Os -mmultiple
 
@@ -46,14 +47,6 @@
 CPPFLAGS+=     -DFIRMWORKSBUGS
 CPPFLAGS+=     -DCOMPAT_386BSD_MBRPART
 
-.if !make(obj) && !make(clean) && !make(cleandir)
-.BEGIN:
-       @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
-       @[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc
-.endif
-.NOPATH: machine powerpc
-CLEANFILES+= machine powerpc
-
 ### find out what to use for libkern
 KERN_AS=       library
 .include "${S}/lib/libkern/Makefile.inc"
@@ -76,6 +69,7 @@
            ${.CURDIR}/version "ofppc" ${NEWVERSWHAT}
 
 ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+       ${_MKTARGET_LINK}
        ${LD} -s -N -T ${.CURDIR}/ldscript -Ttext ${RELOC} -Bstatic \
            -e ${ENTRY} -o ${PROG}.X ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
        mv -f ${PROG}.X ${PROG}



Home | Main Index | Thread Index | Old Index