Makefile revision 1.32
1#	$NetBSD: Makefile,v 1.32 2008/01/15 22:26:02 dyoung Exp $
2
3# Makefile for i386 tags file and boot blocks
4
5TI386=	${SYSDIR}/arch/i386/tags
6SI386=	${SYSDIR}/arch/i386/acpi/*.[ch] \
7	${SYSDIR}/arch/i386/eisa/*.[ch] \
8	${SYSDIR}/arch/i386/i386/*.[ch] \
9	${SYSDIR}/arch/i386/include/*.h \
10	${SYSDIR}/arch/i386/isa/*.[ch] \
11	${SYSDIR}/arch/i386/mca/*.[ch] \
12	${SYSDIR}/arch/i386/pci/*.[ch] \
13	${SYSDIR}/arch/i386/pnpbios/*.[ch] \
14	${SYSDIR}/contrib/dev/ath/*.[ch] \
15	${SYSDIR}/contrib/dev/ath/netbsd/*.[ch] \
16	${SYSDIR}/contrib/dev/ath/public/*.[ch]
17SI386+=	${SYSDIR}/arch/x86/x86/*.[ch] ${SYSDIR}/arch/x86/include/*.h \
18	${SYSDIR}/arch/x86/isa/*.[ch] \
19	${SYSDIR}/arch/x86/pci/*.[ch]
20AI386=	${SYSDIR}/arch/i386/i386/*.[sS]
21
22# Directories in which to place tags links
23DI386=	i386 eisa isa include pci
24
25.include "../../kern/Make.tags.inc"
26
27tags:
28	-rm -f ${TI386}
29	-echo ${SI386} | xargs ctags -wadtf ${TI386}
30	-${FINDCOMM} | xargs ctags -wadtf ${TI386}
31	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
32	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
33		>> ${TI386}
34	sort -o ${TI386} ${TI386}
35
36links:
37	-for i in ${DI386}; do \
38	    (cd $$i && rm -f tags; ln -s ../tags tags); done
39
40
41SUBDIR=	compile include stand ../x86/include
42
43.include <bsd.subdir.mk>
44