11.12Sdyoung#	$NetBSD: Makefile,v 1.12 2011/04/03 23:14:12 dyoung Exp $
21.6Ssoda#	$OpenBSD: Makefile,v 1.5 1997/05/19 10:34:53 pefo Exp $
31.6Ssoda#	from: @(#)Makefile	8.1 (Berkeley) 6/16/93
41.1Sjonathan
51.6Ssoda# Makefile for arc tags file and boot blocks
61.3Smycroft
71.3Smycroft# Find where mips source files are for inclusion in tags
81.3Smycroft.include <../mips/Makefile.inc>
91.3Smycroft
101.12SdyoungTARC=	${SYSDIR}/arch/arc/tags
111.12SdyoungSARC=	${SYSDIR}/arch/arc/arc/*.[ch] ${SYSDIR}/arch/arc/dev/*.[ch] \
121.12Sdyoung	${SYSDIR}/arch/arc/dti/*.[ch] ${SYSDIR}/arch/arc/include/*.h \
131.12Sdyoung	${SYSDIR}/arch/arc/isa/*.[ch] \
141.12Sdyoung	${SYSDIR}/arch/arc/pci/*.[ch] ${SYSDIR}/arch/arc/jazz/*.[ch]
151.12SdyoungAARC=	${SYSDIR}/arch/arc/arc/*.S
161.3Smycroft
171.3Smycroft# Directories in which to place tags links
181.9StsutsuiDARC=	arc dev dti include isa pci jazz
191.1Sjonathan
201.4Scgd.include "../../kern/Make.tags.inc"
211.1Sjonathan
221.3Smycrofttags:
231.12Sdyoung	-rm -f ${TARC}
241.12Sdyoung	-echo ${SARC} ${SMIPS} | xargs ctags -wadtf ${TARC}
251.12Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TARC}
261.6Ssoda	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AARC} ${AMIPS} | \
271.11Sapb	    ${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
281.6Ssoda	    >> ${TARC}
291.6Ssoda	sort -o ${TARC} ${TARC}
301.1Sjonathan
311.3Smycroftlinks:
321.6Ssoda	-for i in ${DARC}; do \
331.3Smycroft	    cd $$i && rm -f tags; ln -s ../tags tags; done
341.1Sjonathan
351.3Smycroft
361.8SlukemSUBDIR=	compile include stand
371.3Smycroft
381.3Smycroft.include <bsd.subdir.mk>
39