11.12Sapb#	$NetBSD: Makefile,v 1.12 2008/10/25 22:27:38 apb Exp $
21.4Scgd
31.5Sjonathan# Makefile for pmax tags file and boot blocks
41.1Sderaadt
51.9Smycroft# Find where mips source files are for inclusion in tags
61.5Sjonathan.include <../mips/Makefile.inc>
71.1Sderaadt
81.5SjonathanTPMAX=	../pmax/tags
91.5SjonathanSPMAX=	../pmax/pmax/*.[ch] ../pmax/include/*.h \
101.5Sjonathan	../pmax/dev/*.[ch] ../pmax/tc/*.[ch]
111.5SjonathanAPMAX=	../pmax/pmax/*.S
121.2Sglass
131.9Smycroft# Directories in which to place tags links
141.5SjonathanDPMAX=	dev tc include
151.2Sglass
161.7Smycroft.include "../../kern/Make.tags.inc"
171.7Smycroft
181.7Smycrofttags:
191.7Smycroft	-ctags -wdtf ${TPMAX} ${SPMAX} ${SMIPS} ${COMM}
201.5Sjonathan	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \
211.12Sapb	    ${TOOL_SED} -e \
221.12Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
231.7Smycroft	    >> ${TPMAX}
241.5Sjonathan	sort -o ${TPMAX} ${TPMAX}
251.5Sjonathan
261.5Sjonathanlinks:
271.5Sjonathan	-for i in ${DPMAX}; do \
281.5Sjonathan	    cd $$i && rm -f tags; ln -s ../tags tags; done
291.9Smycroft
301.9Smycroft
311.11SlukemSUBDIR=	compile include stand
321.5Sjonathan
331.7Smycroft.include <bsd.subdir.mk>
34