Makefile revision 1.17
11.17Sapb#	$NetBSD: Makefile,v 1.17 2008/10/25 22:27:38 apb Exp $
21.1Seeh
31.1Seeh# Makefile for sparc64 tags file and boot blocks
41.1Seeh
51.14SdyoungTSPARC64=	${SYSDIR}/arch/sparc64/tags
61.14SdyoungSSPARC64=	${SYSDIR}/arch/sparc64/dev/*.[ch] \
71.14Sdyoung		${SYSDIR}/arch/sparc/fpu/*.[ch] \
81.14Sdyoung		${SYSDIR}/arch/sparc64/include/*.[ch] \
91.14Sdyoung		${SYSDIR}/arch/sparc64/sparc64/*.[ch]
101.14SdyoungASPARC64=	${SYSDIR}/arch/sparc64/sparc64/*.[sS]
111.7Seeh# CSPARC64=	../../compat/*/*.[ch]
121.1Seeh
131.1Seeh# Directories in which to place tags links
141.1SeehDSPARC64=	conf dev fpu include sparc64
151.1Seeh
161.5Seeh.include "../../kern/Make.tags.inc"
171.5Seeh
181.1Seehtags:
191.14Sdyoung	-rm ${TSPARC64}
201.14Sdyoung	-echo ${SSPARC64} ${COMM} | xargs ctags -wadtf ${TSPARC64}
211.1Seeh	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC64} | \
221.17Sapb	    ${TOOL_SED} -e \
231.17Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
241.1Seeh	    >> tags
251.1Seeh	sort -o ${TSPARC64} ${TSPARC64}
261.7Seeh
271.1Seehlinks:
281.1Seeh	-for i in ${DSPARC64}; do \
291.1Seeh	    cd $$i && rm -f tags; ln -s ../tags tags; done
301.1Seeh
311.13SlukemSUBDIR= compile include ../sparc/include stand
321.1Seeh
331.1Seeh.include <bsd.subdir.mk>
34