Home | History | Annotate | Line # | Download | only in evbmips
Makefile revision 1.6.20.1
      1 #	$NetBSD: Makefile,v 1.6.20.1 2009/05/04 08:11:01 yamt 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 	-rm -f ${TEVBMIPS}
     22 	-echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS}
     23 	-${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS}
     24 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
     25 	    ${TOOL_SED} -e \
     26 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     27 	    >> ${TEVBMIPS}
     28 	sort -o ${TEVBMIPS} ${TEVBMIPS}
     29 
     30 links:
     31 	-for i in ${DEVBMIPS}; do \
     32 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     33 
     34 
     35 SUBDIR=	compile include
     36 
     37 .include <bsd.subdir.mk>
     38