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