Makefile revision 1.1
1#	$NetBSD: Makefile,v 1.1 2003/04/26 18:39:25 fvdl Exp $
2
3# Makefile for x86_64 tags file and boot blocks
4
5TX86_64=	${SYSDIR}/arch/x86_64/tags
6SX86_64=	${SYSDIR}/arch/x86_64/x86_64/*.[ch] \
7		${SYSDIR}/arch/x86_64/include/*.h \
8		${SYSDIR}/arch/x86_64/isa/*.[ch] \
9		${SYSDIR}/arch/x86_64/pci/*.[ch]
10AX86_64=	${SYSDIR}/arch/x86_64/x86_64/*.s ${SYSDIR}/arch/x86_64/isa/*.s
11
12# Directories in which to place tags links
13DX86_64=	x86_64 isa include pci
14
15.include "../../kern/Make.tags.inc"
16
17tags:
18	rm -f ${TX86_64}
19	-echo ${SX86_64} ${COMM} | xargs ctags -wadtf ${TX86_64}
20	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AX86_64} | \
21	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
22		>> ${TX86_64}
23	sort -o ${TX86_64} ${TX86_64}
24
25links:
26	-for i in ${DX86_64}; do \
27	    (cd $$i && rm -f tags; ln -s ../tags tags); done
28
29
30SUBDIR=	compile include ../x86/include ../i386/stand
31
32.include <bsd.subdir.mk>
33