Module Name:    src
Committed By:   matt
Date:           Wed Aug 21 06:53:10 UTC 2013

Modified Files:
        src/sys/arch/bebox/stand/boot: Makefile
        src/sys/arch/bebox/stand/common: Makefile

Log Message:
Use <bsd.klinks.mk>


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/bebox/stand/boot/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/bebox/stand/common/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/bebox/stand/boot/Makefile
diff -u src/sys/arch/bebox/stand/boot/Makefile:1.32 src/sys/arch/bebox/stand/boot/Makefile:1.33
--- src/sys/arch/bebox/stand/boot/Makefile:1.32	Sat Sep  1 00:29:00 2012
+++ src/sys/arch/bebox/stand/boot/Makefile	Wed Aug 21 06:53:10 2013
@@ -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 @@ LIBCRTEND=
 
 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 @@ ${PROG}: ${OBJS} ${LIBS}
 	${STRIP} -o ${PROG} ${PROG}.elf
 
 .include <bsd.prog.mk>
+.include <bsd.klinks.mk>

Index: src/sys/arch/bebox/stand/common/Makefile
diff -u src/sys/arch/bebox/stand/common/Makefile:1.2 src/sys/arch/bebox/stand/common/Makefile:1.3
--- src/sys/arch/bebox/stand/common/Makefile:1.2	Thu May 27 06:58:13 2010
+++ src/sys/arch/bebox/stand/common/Makefile	Wed Aug 21 06:53:10 2013
@@ -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 @@ CPPFLAGS+= -Werror -Wall -Wstrict-protot
 
 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 @@ LIBSA=		${SALIB}
 
 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
 
-realall: machine-links ${LIBS}
+realall: ${LIBS}
 
 cleandir distclean: .WAIT cleanlibdir
 

Reply via email to