xref: /netbsd-src/sys/arch/sparc/Makefile (revision be5435b2d3ad766b2b8e2eaab0b7b3137e3a64eb)
1#	$NetBSD: Makefile,v 1.11 2013/05/30 20:08:47 macallan Exp $
2
3# Makefile for sparc tags file and boot blocks
4
5TSPARC=	${SYSDIR}/arch/sparc/tags
6SSPARC=	${SYSDIR}/arch/sparc/dev/*.[ch] \
7	${SYSDIR}/arch/sparc/fpu/*.[ch] \
8	${SYSDIR}/arch/sparc/sparc/*.[ch] \
9	${SYSDIR}/arch/sparc/include/*.h
10ASPARC=	${SYSDIR}/arch/sparc/sparc/*.s
11
12# Directories in which to place tags links
13DSPARC=	sparc dev fpu include
14
15.include "../../kern/Make.tags.inc"
16
17tags:
18	-rm -f ${TSPARC}
19	-echo ${SSPARC} | xargs ctags -wadtf ${TSPARC}
20	-${FINDCOMM} | xargs ctags -wadtf ${TSPARC}
21	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \
22	    ${TOOL_SED} -e \
23	"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
24		>> ${TSPARC}
25	sort -o ${TSPARC} ${TSPARC}
26
27links:
28	-for i in ${DSPARC}; do \
29	    (cd $$i && rm -f tags; ln -s ../tags tags); done
30
31
32SUBDIR=	compile include stand dev
33
34.include <bsd.subdir.mk>
35