diff options
author | Takuya ASADA <syuu@cvs.openbsd.org> | 2010-09-20 06:30:51 +0000 |
---|---|---|
committer | Takuya ASADA <syuu@cvs.openbsd.org> | 2010-09-20 06:30:51 +0000 |
commit | 410066b00521a084bfe6839faeb3fd889fc52541 (patch) | |
tree | ebfc2cb35fe58e4800ac7bd1326b13647a7a12ae | |
parent | 89b7d30bb900859eceeed12811d4f11ce4936fee (diff) |
Initial revision
-rw-r--r-- | sys/arch/octeon/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys/arch/octeon/Makefile b/sys/arch/octeon/Makefile new file mode 100644 index 00000000000..fc304626feb --- /dev/null +++ b/sys/arch/octeon/Makefile @@ -0,0 +1,43 @@ +# $OpenBSD: Makefile,v 1.1 2010/09/20 06:30:50 syuu Exp $ + +S= ${.CURDIR}/../.. +KFILE= GENERIC +.if exists(conf/GENERIC.MP) +KFILE= GENERIC.MP +.endif +TDIRS= ${_arch} include pci isa eisa +TAGS= ${.CURDIR}/tags + +NOPROG= +NOMAN= +SUBDIR= + +# config the fattest kernel we can find into a temporary dir +# to create a Makefile. Then use make to pull some variables +# out and push them into the sub-shell to expand the paths, +# and finally run ctags. +tags:: + TDIR=`mktemp -d /tmp/_tagXXXXXXXXXX` || exit 1; \ + eval "S=${S}" && \ + config -s ${S} -b $${TDIR} ${.CURDIR}/conf/${KFILE} && \ + eval "_arch=\"`make -V _arch -f $${TDIR}/Makefile`\"" && \ + eval "_mach=\"`make -V _mach -f $${TDIR}/Makefile`\"" && \ + eval "_machdir=\$S/arch/$${_mach}" && \ + eval "_archdir=\$S/arch/$${_arch}" && \ + eval "SFILES=\"`make -V SFILES -f $${TDIR}/Makefile`\"" && \ + eval "CFILES=\"`make -V CFILES -f $${TDIR}/Makefile`\"" && \ + eval "AFILES=\"`make -V AFILES -f $${TDIR}/Makefile`\"" && \ + ctags -wdt -f ${TAGS} $${CFILES} && \ + egrep "^[_A-Z]*ENTRY[_A-Z]*\(.*\)" $${SFILES} $${AFILES} | \ + sed "s;\\([^:]*\\):\\([^(]*\\)(\\([^, )]*\\)\\(.*\\);\\3 \\1 /^\\2(\\3\\4$$/;" \ + >> ${TAGS} && \ + sort -o ${TAGS} ${TAGS} && \ + rm -rf $${TDIR} + +links: + -for i in conf ${TDIRS}; do \ + (cd $$i && rm -f tags; ln -s tags tags); done + +obj: _SUBDIRUSE + +.include <bsd.prog.mk> |