Mon Apr 11 15:20:30 2011 UTC ()
Use bsd.klinks.mk to create machine and ${MACHINE_ARCH} symlinks.


(tsutsui)
diff -r1.5 -r1.6 src/sys/arch/x68k/stand/Makefile.booters

cvs diff -r1.5 -r1.6 src/sys/arch/x68k/stand/Makefile.booters (expand / switch to unified diff)

--- src/sys/arch/x68k/stand/Makefile.booters 2009/01/12 07:56:31 1.5
+++ src/sys/arch/x68k/stand/Makefile.booters 2011/04/11 15:20:30 1.6
@@ -1,30 +1,16 @@ @@ -1,30 +1,16 @@
1# $NetBSD: Makefile.booters,v 1.5 2009/01/12 07:56:31 tsutsui Exp $ 1# $NetBSD: Makefile.booters,v 1.6 2011/04/11 15:20:30 tsutsui Exp $
2 2
3S?= ${.CURDIR}/../../../.. 3S?= ${.CURDIR}/../../../..
4 4
5CFLAGS+= -ffreestanding 5CFLAGS+= -ffreestanding
6CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith 6CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
7CFLAGS+= -Wno-pointer-sign 7CFLAGS+= -Wno-pointer-sign
8CFLAGS+= -Werror 8CFLAGS+= -Werror
9 9
10.if !make(obj) && !make(clean) && !make(cleandir) 10.include <bsd.klinks.mk>
11.NOPATH: machine ${MACHINE_ARCH} 
12.BEGIN: machine ${MACHINE_ARCH} 
13 
14machine:: 
15 -rm -f machine && \ 
16 ln -s $S/arch/${MACHINE}/include machine 
17 
18m68k:: 
19 -rm -f ${MACHINE_ARCH} && \ 
20 ln -s $S/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} 
21.endif 
22 
23CLEANFILES+= machine ${MACHINE_ARCH} 
24 
25 11
26# XXX SHOULD NOT NEED TO DEFINE THESE! 12# XXX SHOULD NOT NEED TO DEFINE THESE!
27LIBCRT0= 13LIBCRT0=
28LIBC= 14LIBC=
29LIBCRTBEGIN= 15LIBCRTBEGIN=
30LIBCRTEND= 16LIBCRTEND=