Home | History | Annotate | Line # | Download | only in algor
Makefile revision 1.4
      1  1.4   dyoung #	$NetBSD: Makefile,v 1.4 2011/04/06 01:24:43 dyoung 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.4   dyoung TALGOR=		${SYSDIR}/arch/algor/tags
      9  1.4   dyoung SALGOR=		${SYSDIR}/arch/algor/algor/*.[ch]
     10  1.4   dyoung SALGOR+=	${SYSDIR}/arch/algor/dev/*.[ch]
     11  1.4   dyoung SALGOR+=	${SYSDIR}/arch/algor/include/*.h
     12  1.4   dyoung SALGOR+=	${SYSDIR}/arch/algor/isa/*.[ch]
     13  1.4   dyoung SALGOR+=	${SYSDIR}/arch/algor/pci/*.[ch]
     14  1.1  thorpej 
     15  1.4   dyoung 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.4   dyoung 	-rm -f ${TALGOR}
     23  1.4   dyoung 	-echo ${SALGOR} ${SMIPS} | xargs ctags -wadtf ${TALGOR}
     24  1.4   dyoung 	-${FINDCOMM} | xargs ctags -wadtf ${TALGOR}
     25  1.1  thorpej 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
     26  1.4   dyoung 	    ${TOOL_SED} -e \
     27  1.4   dyoung 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
     28  1.4   dyoung 	    >> ${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