1# $NetBSD$ 2 3# Makefile for sbmips tags file and boot blocks 4 5# Find where mips source files are for inclusion in tags 6.include <../mips/Makefile.inc> 7 8# XXX ! fix this 9TSBMIPS= ${SYSDIR}/arch/sbmips/tags 10SSBMIPS= ${SYSDIR}/arch/sbmips/sbmips/*.[ch] 11SSBMIPS+= ${SYSDIR}/arch/sbmips/include/*.h 12ASBMIPS= ${SYSDIR}/arch/sbmips/sbmips/*.S 13 14# Directories in which to place tags links 15DSBMIPS= sbmips include 16 17.include "../../kern/Make.tags.inc" 18 19tags: 20 -rm -f ${TSBMIPS} 21 -echo ${SSBMIPS} ${SMIPS} | xargs ctags -wadtf ${TSBMIPS} 22 -${FINDCOMM} | xargs ctags -wadtf ${TSBMIPS} 23 egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${ASBMIPS} ${AMIPS} | \ 24 ${TOOL_SED} -e \ 25 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 26 >> ${TSBMIPS} 27 sort -o ${TSBMIPS} ${TSBMIPS} 28 29links: 30 -for i in ${DSBMIPS}; do \ 31 cd $$i && rm -f tags; ln -s ../tags tags; done 32 33 34SUBDIR= compile include stand 35 36.include <bsd.subdir.mk> 37