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