11.10Sapb#	$NetBSD: Makefile,v 1.10 2008/10/25 22:27:37 apb Exp $
21.2Scgd
31.4Smycroft# Makefile for mac68k tags file and boot blocks
41.1Sbriggs
51.4Smycroft# Find where m68k source files are for inclusion in tags
61.4Smycroft.include <../m68k/Makefile.inc>
71.1Sbriggs
81.6SperryTMAC68K=${SYSDIR}/arch/mac68k/tags
91.6SperrySMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.[ch] ${SYSDIR}/arch/mac68k/include/*.h \
101.6Sperry	${SYSDIR}/arch/mac68k/nubus/*.[ch] ${SYSDIR}/arch/mac68k/obio/*.[ch] \
111.6Sperry	${SYSDIR}/arch/mac68k/dev/*.[ch]
121.6SperryAMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.s ${SYSDIR}/arch/mac68k/dev/*.s
131.1Sbriggs
141.4Smycroft# Directories in which to place tags links
151.6SperryDMAC68K=mac68k dev include nubus obio
161.1Sbriggs
171.4Smycroft.include "../../kern/Make.tags.inc"
181.1Sbriggs
191.1Sbriggstags:
201.9Sdyoung	-rm -f ${TMAC68K}
211.9Sdyoung	-echo ${SMAC68K} ${SM68K} ${COMM} | xargs ctags -wdtf ${TMAC68K}
221.4Smycroft	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} ${AM68K} | \
231.10Sapb	    ${TOOL_SED} -e \
241.10Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
251.1Sbriggs	    >> ${TMAC68K}
261.1Sbriggs	sort -o ${TMAC68K} ${TMAC68K}
271.1Sbriggs
281.1Sbriggslinks:
291.1Sbriggs	-for i in ${DMAC68K}; do \
301.6Sperry	    (cd $$i && rm -f tags; ln -s ../tags tags); done
311.1Sbriggs
321.1Sbriggs
331.8SlukemSUBDIR=	compile include
341.4Smycroft
351.4Smycroft.include <bsd.subdir.mk>
36