1 1.3.22.1 jruoho # $NetBSD: Makefile,v 1.3.22.1 2011/06/06 09:04:41 jruoho Exp $ 2 1.1 thorpej 3 1.1 thorpej # Makefile for algor tags file and boot blocks 4 1.1 thorpej 5 1.1 thorpej # Find where mips source files are for inclusion in tags 6 1.1 thorpej .include <../mips/Makefile.inc> 7 1.1 thorpej 8 1.3.22.1 jruoho TALGOR= ${SYSDIR}/arch/algor/tags 9 1.3.22.1 jruoho SALGOR= ${SYSDIR}/arch/algor/algor/*.[ch] 10 1.3.22.1 jruoho SALGOR+= ${SYSDIR}/arch/algor/dev/*.[ch] 11 1.3.22.1 jruoho SALGOR+= ${SYSDIR}/arch/algor/include/*.h 12 1.3.22.1 jruoho SALGOR+= ${SYSDIR}/arch/algor/isa/*.[ch] 13 1.3.22.1 jruoho SALGOR+= ${SYSDIR}/arch/algor/pci/*.[ch] 14 1.1 thorpej 15 1.3.22.1 jruoho AALGOR= ${SYSDIR}/arch/algor/algor/*.S 16 1.1 thorpej # Directories in which to place tags links 17 1.1 thorpej DALGOR= algor include isa pci 18 1.1 thorpej 19 1.1 thorpej .include "../../kern/Make.tags.inc" 20 1.1 thorpej 21 1.1 thorpej tags: 22 1.3.22.1 jruoho -rm -f ${TALGOR} 23 1.3.22.1 jruoho -echo ${SALGOR} ${SMIPS} | xargs ctags -wadtf ${TALGOR} 24 1.3.22.1 jruoho -${FINDCOMM} | xargs ctags -wadtf ${TALGOR} 25 1.1 thorpej egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \ 26 1.3.22.1 jruoho ${TOOL_SED} -e \ 27 1.3.22.1 jruoho "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 28 1.3.22.1 jruoho >> ${TALGOR} 29 1.1 thorpej sort -o ${TALGOR} ${TALGOR} 30 1.1 thorpej 31 1.1 thorpej links: 32 1.1 thorpej -for i in ${DALGOR}; do \ 33 1.1 thorpej cd $$i && rm -f tags; ln -s ../tags tags; done 34 1.1 thorpej 35 1.1 thorpej 36 1.2 lukem SUBDIR= compile include 37 1.1 thorpej 38 1.1 thorpej .include <bsd.subdir.mk> 39