Home | History | Annotate | Line # | Download | only in algor
Makefile revision 1.2.108.1
      1  1.2.108.1     yamt #	$NetBSD: Makefile,v 1.2.108.1 2009/05/04 08:10:26 yamt 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.1  thorpej TALGOR= ../algor/tags
      9        1.1  thorpej SALGOR= ../algor/algor/*.[ch] ../algor/include/*.h ../algor/isa/*.[ch] \
     10        1.1  thorpej 	../algor/pci/*.[ch]
     11        1.1  thorpej AALGOR= ../algor/algor/*.S
     12        1.1  thorpej 
     13        1.1  thorpej # Directories in which to place tags links
     14        1.1  thorpej DALGOR= algor include isa pci
     15        1.1  thorpej 
     16        1.1  thorpej .include "../../kern/Make.tags.inc"
     17        1.1  thorpej 
     18        1.1  thorpej tags:
     19        1.1  thorpej 	-ctags -wdtf ${TALGOR} ${SALGOR} ${SMIPS} ${COMM}
     20        1.1  thorpej 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
     21  1.2.108.1     yamt 	    ${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     22        1.1  thorpej 	    >> ${TARC}
     23        1.1  thorpej 	sort -o ${TALGOR} ${TALGOR}
     24        1.1  thorpej 
     25        1.1  thorpej links:
     26        1.1  thorpej 	-for i in ${DALGOR}; do \
     27        1.1  thorpej 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     28        1.1  thorpej 
     29        1.1  thorpej 
     30        1.2    lukem SUBDIR=	compile include
     31        1.1  thorpej 
     32        1.1  thorpej .include <bsd.subdir.mk>
     33