Home | History | Annotate | Line # | Download | only in evbmips
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 2006/08/06 17:21:58 dyoung Exp $
      2 
      3 # Makefile for evbmips tags file and boot blocks
      4 
      5 # Find where mips source files are for inclusion in tags
      6 .include <../mips/Makefile.inc>
      7 
      8 # XXX !  fix this
      9 TEVBMIPS=	${SYSDIR}/arch/evbmips/tags
     10 SEVBMIPS=	${SYSDIR}/arch/evbmips/evbmips/*.[ch] \
     11 		${SYSDIR}/arch/evbmips/include/*.h \
     12 		${SYSDIR}/arch/evbmips/isa/*.[ch]
     13 AEVBMIPS=	${SYSDIR}/arch/evbmips/evbmips/*.S
     14 
     15 # Directories in which to place tags links
     16 DEVBMIPS= evbmips include isa pci
     17 
     18 .include "../../kern/Make.tags.inc"
     19 
     20 tags:
     21 	-echo ${SEVBMIPS} ${SMIPS} ${COMM} | xargs ctags -wadtf ${TEVBMIPS}
     22 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
     23 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     24 	    >> ${TEVBMIPS}
     25 	sort -o ${TEVBMIPS} ${TEVBMIPS}
     26 
     27 links:
     28 	-for i in ${DEVBMIPS}; do \
     29 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     30 
     31 
     32 SUBDIR=	compile include
     33 
     34 .include <bsd.subdir.mk>
     35