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


(tsutsui)
diff -r1.14 -r1.15 src/sys/arch/sun68k/stand/Makefile.inc

cvs diff -r1.14 -r1.15 src/sys/arch/sun68k/stand/Makefile.inc (expand / switch to unified diff)

--- src/sys/arch/sun68k/stand/Makefile.inc 2009/01/12 07:00:59 1.14
+++ src/sys/arch/sun68k/stand/Makefile.inc 2009/03/15 14:08:17 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.inc,v 1.14 2009/01/12 07:00:59 tsutsui Exp $ 1# $NetBSD: Makefile.inc,v 1.15 2009/03/15 14:08:17 tsutsui Exp $
2 2
3# Must have S=/usr/src/sys (or equivalent) 3# Must have S=/usr/src/sys (or equivalent)
4# But note: this is w.r.t. a subdirectory 4# But note: this is w.r.t. a subdirectory
5S= ${.CURDIR}/../../../.. 5S= ${.CURDIR}/../../../..
6 6
7.if defined(SA_PROG) 7.if defined(SA_PROG)
8 8
9.include <bsd.own.mk> 9.include <bsd.own.mk>
10 10
11LIBSA!=cd ${.CURDIR}/../libsa && ${PRINTOBJDIR} 11LIBSA!=cd ${.CURDIR}/../libsa && ${PRINTOBJDIR}
12 12
13MDEC_DIR?=/usr/mdec 13MDEC_DIR?=/usr/mdec
14 14
@@ -35,30 +35,14 @@ ${SA_PROG} : ${OBJS} ${DPADD} ${SRTLIB} @@ -35,30 +35,14 @@ ${SA_PROG} : ${OBJS} ${DPADD} ${SRTLIB}
35 ${LD} -N -Ttext ${RELOC} -e start ${SA_LDFLAGS} -o $@ \ 35 ${LD} -N -Ttext ${RELOC} -e start ${SA_LDFLAGS} -o $@ \
36 ${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB} 36 ${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB}
37 @${SIZE} $@ 37 @${SIZE} $@
38 38
39.if !target(proginstall) 39.if !target(proginstall)
40realall: ${SA_PROG} ${SA_PROG}.bin 40realall: ${SA_PROG} ${SA_PROG}.bin
41proginstall: ${SA_PROG}.bin 41proginstall: ${SA_PROG}.bin
42 ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 42 ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
43 ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG} 43 ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
44.endif 44.endif
45 45
46.endif # defined(SA_PROG) 46.endif # defined(SA_PROG)
47 47
48CLEANFILES+= machine m68k sun68k 48.include <bsd.klinks.mk>
49.if !make(obj) && !make(clean) && !make(cleandir) 
50.BEGIN: machine m68k sun68k 
51.NOPATH: machine m68k sun68k 
52.endif 
53 
54machine : 
55 -rm -f $@ 
56 ln -s ${S}/arch/${MACHINE}/include $@ 
57 
58m68k : 
59 -rm -f $@ 
60 ln -s ${S}/arch/m68k/include $@ 
61 
62sun68k : 
63 -rm -f $@ 
64 ln -s ${S}/arch/sun68k/include $@