1 # $NetBSD: Makefile,v 1.14 2007/06/08 22:59:51 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 ${TSPARC64} 20 -echo ${SSPARC64} ${COMM} | xargs ctags -wadtf ${TSPARC64} 21 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC64} | \ 22 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 23 >> tags 24 sort -o ${TSPARC64} ${TSPARC64} 25 26 SYSDIR?= ../.. 27 .ifmake TAGS 28 COMM!= find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print 29 .endif 30 31 TAGS: ${SSPARC64} ${COMM} ${CSPARC64} ${ASPARC64} 32 etags ${SSPARC64} ${COMM} ${CSPARC64} "--regex=/ENTRY(.*)/" \ 33 "--regex=/FUNC(.*)/" "--regex=/SYSCALL(.*)/" ${ASPARC64} 34 35 links: 36 -for i in ${DSPARC64}; do \ 37 cd $$i && rm -f tags; ln -s ../tags tags; done 38 39 40 SUBDIR= compile include ../sparc/include stand 41 42 .include <bsd.subdir.mk> 43