xref: /netbsd-src/sys/arch/sparc/Makefile (revision daf6c4152fcddc27c445489775ed1f66ab4ea9a9)
1#	$NetBSD: Makefile,v 1.9 2008/10/25 22:27:38 apb Exp $
2
3# Makefile for sparc tags file and boot blocks
4
5TSPARC=	../sparc/tags
6SSPARC=	../sparc/dev/*.[ch] ../sparc/fpu/*.[ch] \
7	../sparc/include/*.[ch] ../sparc/sparc/*.[ch]
8ASPARC=	../sparc/sparc/*.s
9
10# Directories in which to place tags links
11DSPARC=	conf dev fpu include sparc
12
13tags:
14	-ctags -wdtf ${TSPARC} ${SSPARC} ${COMM}
15	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \
16	    ${TOOL_SED} -e \
17		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
18	    >> tags
19	sort -o ${TSPARC} ${TSPARC}
20
21links:
22	-for i in ${DSPARC}; do \
23	    cd $$i && rm -f tags; ln -s ../tags tags; done
24
25
26SUBDIR=	compile include stand
27
28.include <bsd.subdir.mk>
29