Home | History | Annotate | Line # | Download | only in evbmips
      1 #	$NetBSD: Makefile,v 1.9 2017/08/15 10:11:31 mrg 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/adm5120/*.[ch]
     11 SEVBMIPS+=	${SYSDIR}/arch/evbmips/alchemy/*.[ch]
     12 SEVBMIPS+=	${SYSDIR}/arch/evbmips/atheros/*.[ch]
     13 SEVBMIPS+=	${SYSDIR}/arch/evbmips/evbmips/*.[ch]
     14 SEVBMIPS+=	${SYSDIR}/arch/evbmips/gdium/*.[ch]
     15 SEVBMIPS+=	${SYSDIR}/arch/evbmips/include/*.h
     16 SEVBMIPS+=	${SYSDIR}/arch/evbmips/isa/*.[ch]
     17 SEVBMIPS+=	${SYSDIR}/arch/evbmips/malta/*.[ch]
     18 SEVBMIPS+=	${SYSDIR}/arch/evbmips/rmixl/*.[ch]
     19 SEVBMIPS+=	${SYSDIR}/arch/evbmips/sbmips/*.[ch]
     20 AEVBMIPS=	${SYSDIR}/arch/evbmips/evbmips/*.S
     21 AEVBMIPS+=	${SYSDIR}/arch/evbmips/sbmips/*.S
     22 
     23 # Directories in which to place tags links
     24 DEVBMIPS= evbmips include isa pci
     25 
     26 .include "../../kern/Make.tags.inc"
     27 
     28 tags:
     29 	-rm -f ${TEVBMIPS}
     30 	-echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS}
     31 	-${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS}
     32 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
     33 	    ${TOOL_SED} -e \
     34 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
     35 	    >> ${TEVBMIPS}
     36 	sort -o ${TEVBMIPS} ${TEVBMIPS}
     37 
     38 links:
     39 	-for i in ${DEVBMIPS}; do \
     40 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     41 
     42 
     43 SUBDIR=	compile include stand
     44 
     45 .include <bsd.subdir.mk>
     46