11.9Smrg#	$NetBSD: Makefile,v 1.9 2017/08/15 10:11:31 mrg Exp $
21.1Ssimonb
31.1Ssimonb# Makefile for evbmips tags file and boot blocks
41.1Ssimonb
51.1Ssimonb# Find where mips source files are for inclusion in tags
61.1Ssimonb.include <../mips/Makefile.inc>
71.1Ssimonb
81.1Ssimonb# XXX !  fix this
91.3SdyoungTEVBMIPS=	${SYSDIR}/arch/evbmips/tags
101.8SdyoungSEVBMIPS=	${SYSDIR}/arch/evbmips/adm5120/*.[ch]
111.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/alchemy/*.[ch]
121.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/atheros/*.[ch]
131.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/evbmips/*.[ch]
141.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/gdium/*.[ch]
151.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/include/*.h
161.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/isa/*.[ch]
171.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/malta/*.[ch]
181.8SdyoungSEVBMIPS+=	${SYSDIR}/arch/evbmips/rmixl/*.[ch]
191.9SmrgSEVBMIPS+=	${SYSDIR}/arch/evbmips/sbmips/*.[ch]
201.3SdyoungAEVBMIPS=	${SYSDIR}/arch/evbmips/evbmips/*.S
211.9SmrgAEVBMIPS+=	${SYSDIR}/arch/evbmips/sbmips/*.S
221.1Ssimonb
231.1Ssimonb# Directories in which to place tags links
241.1SsimonbDEVBMIPS= evbmips include isa pci
251.1Ssimonb
261.1Ssimonb.include "../../kern/Make.tags.inc"
271.1Ssimonb
281.1Ssimonbtags:
291.5Sdyoung	-rm -f ${TEVBMIPS}
301.5Sdyoung	-echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS}
311.5Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS}
321.1Ssimonb	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
331.7Sapb	    ${TOOL_SED} -e \
341.8Sdyoung		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
351.3Sdyoung	    >> ${TEVBMIPS}
361.1Ssimonb	sort -o ${TEVBMIPS} ${TEVBMIPS}
371.1Ssimonb
381.1Ssimonblinks:
391.1Ssimonb	-for i in ${DEVBMIPS}; do \
401.1Ssimonb	    cd $$i && rm -f tags; ln -s ../tags tags; done
411.1Ssimonb
421.1Ssimonb
431.9SmrgSUBDIR=	compile include stand
441.1Ssimonb
451.1Ssimonb.include <bsd.subdir.mk>
46