11.12Sapb#	$NetBSD: Makefile,v 1.12 2008/10/25 22:27:37 apb Exp $
21.1Scgd
31.5Sthorpej# Makefile for hp300 tags file and boot blocks
41.1Scgd
51.9Smycroft# Find where m68k source files are for inclusion in tags
61.9Smycroft.include <../m68k/Makefile.inc>
71.1Scgd
81.1ScgdTHP300=	../hp300/tags
91.1ScgdSHP300=	../hp300/hp300/*.[ch] ../hp300/include/*.h \
101.5Sthorpej	../hp300/dev/*.[ch]
111.1ScgdAHP300=	../hp300/hp300/*.s
121.1Scgd
131.9Smycroft# Directories in which to place tags links
141.5SthorpejDHP300=	dev hp300 include
151.1Scgd
161.7Smycroft.include "../../kern/Make.tags.inc"
171.7Smycroft
181.1Scgdtags:
191.9Smycroft	-ctags -wdtf ${THP300} ${SHP300} ${SM68K} ${COMM}
201.9Smycroft	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHP300} ${AM68K} | \
211.12Sapb	    ${TOOL_SED} -e \
221.12Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
231.7Smycroft	    >> ${THP300}
241.1Scgd	sort -o ${THP300} ${THP300}
251.1Scgd
261.1Scgdlinks:
271.1Scgd	-for i in ${DHP300}; do \
281.5Sthorpej	    cd $$i && rm -f tags; ln -s ../tags tags; done
291.9Smycroft
301.9Smycroft
311.11SlukemSUBDIR=	compile include stand
321.3Shpeyerl
331.7Smycroft.include <bsd.subdir.mk>
34