11.5Sapb#	$NetBSD: Makefile,v 1.5 2008/10/25 22:27:38 apb Exp $
21.1Swdk
31.1Swdk# Makefile for mipsco tags file
41.1Swdk
51.1Swdk# Find where mips source files are for inclusion in tags
61.1Swdk.include <../mips/Makefile.inc>
71.1Swdk
81.1SwdkTMIPSCO=	../mipsco/tags
91.1SwdkSMIPSCO=	../mipsco/mipsco/*.[ch] ../mipsco/include/*.h \
101.2Ssoren		../mipsco/obio/*.[ch]
111.1SwdkAMIPSCO=	../mipsco/mipsco/*.S
121.1Swdk
131.1Swdk# Directories in which to place tags links
141.2SsorenDMIPSCO=	obio include
151.1Swdk
161.1Swdk.include "../../kern/Make.tags.inc"
171.1Swdk
181.1Swdktags:
191.1Swdk	-ctags -wdtf ${TMIPSCO} ${SMIPSCO} ${SMIPS} ${COMM}
201.1Swdk	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMIPSCO} ${AMIPS} | \
211.5Sapb	    ${TOOL_SED} -e \
221.5Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
231.1Swdk	    >> ${TMIPSCO}
241.1Swdk	sort -o ${TMIPSCO} ${TMIPSCO}
251.1Swdk
261.1Swdklinks:
271.1Swdk	-for i in ${DMIPSCO}; do \
281.1Swdk	    cd $$i && rm -f tags; ln -s ../tags tags; done
291.1Swdk
301.4SlukemSUBDIR=	compile include stand
311.1Swdk
321.1Swdk.include <bsd.subdir.mk>
33