Module Name:    src
Committed By:   matt
Date:           Wed Aug 21 06:56:14 UTC 2013

Modified Files:
        src/sys/arch/next68k/stand/boot: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/next68k/stand/boot/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/next68k/stand/boot/Makefile
diff -u src/sys/arch/next68k/stand/boot/Makefile:1.26 src/sys/arch/next68k/stand/boot/Makefile:1.27
--- src/sys/arch/next68k/stand/boot/Makefile:1.26	Mon Nov  5 16:53:25 2012
+++ src/sys/arch/next68k/stand/boot/Makefile	Wed Aug 21 06:56:14 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.26 2012/11/05 16:53:25 apb Exp $
+#	$NetBSD: Makefile,v 1.27 2013/08/21 06:56:14 matt Exp $
 
 NOMAN=	# defined
 
@@ -44,7 +44,7 @@ SRCS=   boot.c machdep.c conf.c devopen.
 .PATH: ${S}/lib/libsa
 SRCS+=	dev_net.c
 
-CLEANFILES+= srt0.o boot.elf boot.raw machine ${MACHINE_ARCH} limits.h
+CLEANFILES+= srt0.o boot.elf boot.raw limits.h
 CLEANFILES+= vers.c build.c build	# generated dynamically
 
 BINDIR=	/usr/mdec
@@ -65,6 +65,7 @@ function x(v) { printf "\\0\\%o\\%o\\%o"
 }'
 
 ${PROG}: srt0.o ${OBJS} ${LIBS}
+	${_MKTARGET_LINK}
 	${LD} -N -Ttext ${RELOC} -e start srt0.o ${OBJS} ${LIBS} -o $@.elf
 	${SIZE} $@.elf
 	${OBJCOPY} -O binary $@.elf $@.raw
@@ -89,17 +90,5 @@ vers.c: version
 
 # utilities
 
-.if !make(obj) && !make(clean) && !make(cleandir)
-.NOPATH: machine ${MACHINE_ARCH}
-.BEGIN: machine ${MACHINE_ARCH}
-
-machine:
-	-rm -f machine
-	ln -s ${S}/arch/${MACHINE}/include machine
-
-${MACHINE_ARCH}:
-	-rm -f ${MACHINE_ARCH}
-	ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
-.endif
-
 .include <bsd.prog.mk>
+.include <bsd.klinks.mk>

Reply via email to