1 # $NetBSD: Makefile,v 1.9 2008/10/25 22:27:38 apb Exp $ 2 3 # Makefile for sparc tags file and boot blocks 4 5 TSPARC= ../sparc/tags 6 SSPARC= ../sparc/dev/*.[ch] ../sparc/fpu/*.[ch] \ 7 ../sparc/include/*.[ch] ../sparc/sparc/*.[ch] 8 ASPARC= ../sparc/sparc/*.s 9 10 # Directories in which to place tags links 11 DSPARC= conf dev fpu include sparc 12 13 tags: 14 -ctags -wdtf ${TSPARC} ${SSPARC} ${COMM} 15 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \ 16 ${TOOL_SED} -e \ 17 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 18 >> tags 19 sort -o ${TSPARC} ${TSPARC} 20 21 links: 22 -for i in ${DSPARC}; do \ 23 cd $$i && rm -f tags; ln -s ../tags tags; done 24 25 26 SUBDIR= compile include stand 27 28 .include <bsd.subdir.mk> 29