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