Sun Mar 15 13:57:57 2009 UTC ()
Use <bsd.klinks.mk> to create MD include dir symlinks.


(tsutsui)
diff -r1.6 -r1.7 src/sys/arch/arc/stand/boot/Makefile

cvs diff -r1.6 -r1.7 src/sys/arch/arc/stand/boot/Makefile (expand / switch to unified diff)

--- src/sys/arch/arc/stand/boot/Makefile 2006/08/28 13:42:39 1.6
+++ src/sys/arch/arc/stand/boot/Makefile 2009/03/15 13:57:57 1.7
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.6 2006/08/28 13:42:39 tsutsui Exp $ 1# $NetBSD: Makefile,v 1.7 2009/03/15 13:57:57 tsutsui Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.include <bsd.sys.mk> # for ${HOST_SH} 4.include <bsd.sys.mk> # for ${HOST_SH}
5 5
6S!= cd ${.CURDIR}/../../../..; pwd 6S!= cd ${.CURDIR}/../../../..; pwd
7 7
8PROG= boot 8PROG= boot
9MKMAN= no # defined 9MKMAN= no # defined
10STRIPFLAG= 10STRIPFLAG=
11BINMODE= 444 11BINMODE= 444
12 12
13NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh 13NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh
14 14
@@ -24,41 +24,26 @@ LIBCRTEND= @@ -24,41 +24,26 @@ LIBCRTEND=
24AFLAGS= -x assembler-with-cpp -traditional-cpp -mno-abicalls -mips2 24AFLAGS= -x assembler-with-cpp -traditional-cpp -mno-abicalls -mips2
25AFLAGS+= -D_LOCORE -D_KERNEL 25AFLAGS+= -D_LOCORE -D_KERNEL
26CFLAGS= -Os -mmemcpy -G 1024 26CFLAGS= -Os -mmemcpy -G 1024
27CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2 27CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2
28CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 28CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
29CPPFLAGS+= -nostdinc -I. -I${S} 29CPPFLAGS+= -nostdinc -I. -I${S}
30CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE} 30CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE}
31CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY 31CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY
32CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' 32CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
33#CPPFLAGS+= -DBOOT_DEBUG 33#CPPFLAGS+= -DBOOT_DEBUG
34LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript 34LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript
35TEXTADDR= 0x80f00000 35TEXTADDR= 0x80f00000
36 36
37.if !make(obj) && !make(clean) && !make(cleandir) 
38.BEGIN: machine mips 
39.NOPATH: machine mips 
40 
41machine:: 
42 -rm -f $@ 
43 ln -s ${S}/arch/${MACHINE}/include $@ 
44 
45mips:: 
46 -rm -f $@ 
47 ln -s ${S}/arch/mips/include $@ 
48.endif 
49 
50CLEANFILES+= machine mips 
51 
52# if there is a 'version' file, add rule for vers.c and add it to SRCS 37# if there is a 'version' file, add rule for vers.c and add it to SRCS
53# and CLEANFILES 38# and CLEANFILES
54.if exists(version) 39.if exists(version)
55.PHONY: vers.c 40.PHONY: vers.c
56vers.c: ${.CURDIR}/version 41vers.c: ${.CURDIR}/version
57 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version ${MACHINE} 42 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version ${MACHINE}
58 43
59SRCS+= vers.c 44SRCS+= vers.c
60CLEANFILES+= vers.c 45CLEANFILES+= vers.c
61.endif 46.endif
62 47
63### find out what to use for libsa 48### find out what to use for libsa
64SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 49SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
@@ -79,14 +64,15 @@ cleandir distclean: cleanlibdir @@ -79,14 +64,15 @@ cleandir distclean: cleanlibdir
79cleanlibdir: 64cleanlibdir:
80 -rm -rf lib 65 -rm -rf lib
81 66
82${PROG}: ${OBJS} ${LIBS} 67${PROG}: ${OBJS} ${LIBS}
83 ${LD} -Map ${PROG}.map -N -x -Ttext ${TEXTADDR} -T ${LDSCRIPT} \ 68 ${LD} -Map ${PROG}.map -N -x -Ttext ${TEXTADDR} -T ${LDSCRIPT} \
84 -e start -o ${PROG}.elf ${OBJS} ${LIBS} 69 -e start -o ${PROG}.elf ${OBJS} ${LIBS}
85 @${SIZE} ${PROG}.elf 70 @${SIZE} ${PROG}.elf
86 ${OBJCOPY} --impure -O ecoff-littlemips \ 71 ${OBJCOPY} --impure -O ecoff-littlemips \
87 -R .pdr -R .mdebug.abi32 -R .comment -R .ident \ 72 -R .pdr -R .mdebug.abi32 -R .comment -R .ident \
88 ${PROG}.elf ${.TARGET} 73 ${PROG}.elf ${.TARGET}
89 74
90CLEANFILES+= ${PROG}.elf ${PROG}.map 75CLEANFILES+= ${PROG}.elf ${PROG}.map
91 76
 77.include <bsd.klinks.mk>
92.include <bsd.prog.mk> 78.include <bsd.prog.mk>