1 # $NetBSD: Makefile,v 1.11 2013/05/30 20:08:47 macallan Exp $ 2 3 # Makefile for sparc tags file and boot blocks 4 5 TSPARC= ${SYSDIR}/arch/sparc/tags 6 SSPARC= ${SYSDIR}/arch/sparc/dev/*.[ch] \ 7 ${SYSDIR}/arch/sparc/fpu/*.[ch] \ 8 ${SYSDIR}/arch/sparc/sparc/*.[ch] \ 9 ${SYSDIR}/arch/sparc/include/*.h 10 ASPARC= ${SYSDIR}/arch/sparc/sparc/*.s 11 12 # Directories in which to place tags links 13 DSPARC= sparc dev fpu include 14 15 .include "../../kern/Make.tags.inc" 16 17 tags: 18 -rm -f ${TSPARC} 19 -echo ${SSPARC} | xargs ctags -wadtf ${TSPARC} 20 -${FINDCOMM} | xargs ctags -wadtf ${TSPARC} 21 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \ 22 ${TOOL_SED} -e \ 23 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 24 >> ${TSPARC} 25 sort -o ${TSPARC} ${TSPARC} 26 27 links: 28 -for i in ${DSPARC}; do \ 29 (cd $$i && rm -f tags; ln -s ../tags tags); done 30 31 32 SUBDIR= compile include stand dev 33 34 .include <bsd.subdir.mk> 35