xref: /netbsd-src/sys/arch/i386/Makefile (revision 3fe138c1461e710931a50b66f08982c5f52c371f)
1#	$NetBSD: Makefile,v 1.13 1997/10/11 09:12:20 mycroft Exp $
2
3# Makefile for i386 tags file and boot blocks
4
5TI386=	../i386/tags
6SI386=	../i386/i386/*.[ch] ../i386/include/*.h \
7	../i386/eisa/*.[ch] ../i386/isa/*.[ch] ../i386/pci/*.[ch]
8AI386=	../i386/i386/*.s
9
10# Directories in which to place tags links
11DI386=	eisa isa include pci
12
13.include "../../kern/Make.tags.inc"
14
15tags:
16	-ctags -wdtf ${TI386} ${SI386} ${COMM}
17	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
18	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
19		>> ${TI386}
20	sort -o ${TI386} ${TI386}
21
22links:
23	-for i in ${DI386}; do \
24	    cd $$i && rm -f tags; ln -s ../tags tags; done
25
26
27SUBDIR=	stand
28
29.include <bsd.subdir.mk>
30