Home | History | Annotate | Line # | Download | only in sgimips
      1  1.7      he #	$NetBSD: Makefile,v 1.7 2008/11/25 09:47:40 he Exp $
      2  1.1   soren 
      3  1.1   soren # Makefile for sgimips tags file
      4  1.1   soren 
      5  1.1   soren # Find where mips source files are for inclusion in tags
      6  1.1   soren .include <../mips/Makefile.inc>
      7  1.1   soren 
      8  1.4  dyoung TSGIMIPS=	${SYSDIR}/arch/sgimips/tags
      9  1.4  dyoung SSGIMIPS=	${SYSDIR}/arch/sgimips/sgimips/*.[ch] \
     10  1.4  dyoung 		${SYSDIR}/arch/sgimips/include/*.h \
     11  1.4  dyoung 		${SYSDIR}/arch/sgimips/dev/*.[ch] \
     12  1.4  dyoung 		${SYSDIR}/arch/sgimips/eisa/*.[ch] \
     13  1.4  dyoung 		${SYSDIR}/arch/sgimips/gio/*.[ch] \
     14  1.4  dyoung 		${SYSDIR}/arch/sgimips/hpc/*.[ch] \
     15  1.4  dyoung 		${SYSDIR}/arch/sgimips/ioc/*.[ch] \
     16  1.4  dyoung 		${SYSDIR}/arch/sgimips/mace/*.[ch] \
     17  1.4  dyoung 		${SYSDIR}/arch/sgimips/pci/*.[ch]
     18  1.4  dyoung ASGIMIPS=	${SYSDIR}/arch/sgimips/sgimips/*.S
     19  1.1   soren 
     20  1.1   soren # Directories in which to place tags links
     21  1.2   soren DSGIMIPS=	dev eisa gio hpc include pci xio
     22  1.1   soren 
     23  1.1   soren .include "../../kern/Make.tags.inc"
     24  1.1   soren 
     25  1.1   soren tags:
     26  1.4  dyoung 	-rm -f ${TSGIMIPS}
     27  1.4  dyoung 	-echo ${SSGIMIPS} ${SMIPS} | xargs ctags -wadtf ${TSGIMIPS}
     28  1.4  dyoung 	-${FINDCOMM} | xargs ctags -wadtf ${TSGIMIPS}
     29  1.1   soren 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASGIMIPS} ${AMIPS} | \
     30  1.6     apb 	    ${TOOL_SED} -e \
     31  1.6     apb 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     32  1.4  dyoung 	    >> ${TSGIMIPS}
     33  1.1   soren 	sort -o ${TSGIMIPS} ${TSGIMIPS}
     34  1.1   soren 
     35  1.1   soren links:
     36  1.1   soren 	-for i in ${DSGIMIPS}; do \
     37  1.1   soren 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     38  1.1   soren 
     39  1.4  dyoung 
     40  1.7      he SUBDIR=	compile include dev stand
     41  1.1   soren 
     42  1.1   soren .include <bsd.subdir.mk>
     43