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