Home | History | Annotate | Line # | Download | only in alpha
      1 # $NetBSD: Makefile,v 1.15 2011/06/17 03:55:56 matt Exp $
      2 
      3 # Makefile for alpha tags file and boot blocks
      4 
      5 TALPHA=	${SYSDIR}/arch/alpha/tags
      6 SALPHA=	${SYSDIR}/arch/alpha/alpha/*.[ch] ${SYSDIR}/arch/alpha/common/*.[ch] \
      7 	${SYSDIR}/arch/alpha/eisa/*.[ch] ${SYSDIR}/arch/alpha/include/*.h \
      8 	${SYSDIR}/arch/alpha/isa/*.[ch] \
      9 	${SYSDIR}/arch/alpha/jensenio/*.[ch] ${SYSDIR}/arch/alpha/mcbus/*.[ch] \
     10 	${SYSDIR}/arch/alpha/pci/*.[ch] ${SYSDIR}/arch/alpha/sableio/*.[ch] \
     11 	${SYSDIR}/arch/alpha/tc/*.[ch] \
     12 	${SYSDIR}/arch/alpha/tlsb/*.[ch]
     13 AALPHA=	${SYSDIR}/arch/alpha/alpha/*.s ${SYSDIR}/arch/alpha/pci/*.s
     14 
     15 # Directories in which to place tags links
     16 DALPHA=	common eisa include isa jensenio mcbus pci sableio tc tlsb
     17 
     18 .include "../../kern/Make.tags.inc"
     19 
     20 tags:
     21 	-rm -f ${TALPHA}
     22 	-echo ${SALPHA} | xargs ctags -wadtf ${TALPHA}
     23 	-${FINDCOMM} | xargs ctags -wadtf ${TALPHA}
     24 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AALPHA} | \
     25 	    ${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     26 	    >> ${TALPHA}
     27 	sort -o ${TALPHA} ${TALPHA}
     28 
     29 links:
     30 	-for i in ${DALPHA}; do \
     31 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     32 
     33 
     34 SUBDIR=	compile include stand
     35 
     36 .include <bsd.subdir.mk>
     37