Makefile revision 1.29
11.29Sdyoung#	$NetBSD: Makefile,v 1.29 2007/08/10 22:36:59 dyoung Exp $
21.1Scgd
31.3Scgd# Makefile for i386 tags file and boot blocks
41.16Sperry
51.16SperryTI386=	${SYSDIR}/arch/i386/tags
61.16SperrySI386=	${SYSDIR}/arch/i386/i386/*.[ch] ${SYSDIR}/arch/i386/include/*.h \
71.16Sperry	${SYSDIR}/arch/i386/eisa/*.[ch] ${SYSDIR}/arch/i386/isa/*.[ch] \
81.22Sdyoung	${SYSDIR}/arch/i386/pci/*.[ch] \
91.28Sdyoung	${SYSDIR}/contrib/dev/ath/*.[ch] \
101.28Sdyoung	${SYSDIR}/contrib/dev/ath/netbsd/*.[ch] \
111.28Sdyoung	${SYSDIR}/contrib/dev/ath/public/*.[ch]
121.27SdyoungSI386+=	${SYSDIR}/arch/x86/x86/*.[ch] ${SYSDIR}/arch/x86/include/*.h \
131.27Sdyoung	${SYSDIR}/arch/x86/isa/*.[ch] \
141.27Sdyoung	${SYSDIR}/arch/x86/pci/*.[ch]
151.28SdyoungAI386=	${SYSDIR}/arch/i386/i386/*.[sS]
161.1Scgd
171.13Smycroft# Directories in which to place tags links
181.16SperryDI386=	i386 eisa isa include pci
191.11Smycroft
201.11Smycroft.include "../../kern/Make.tags.inc"
211.1Scgd
221.1Scgdtags:
231.28Sdyoung	-rm -f ${TI386}
241.29Sdyoung	-echo ${SI386} | xargs ctags -wadtf ${TI386}
251.29Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TI386}
261.1Scgd	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
271.24Sdyoung	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
281.1Scgd		>> ${TI386}
291.1Scgd	sort -o ${TI386} ${TI386}
301.1Scgd
311.1Scgdlinks:
321.1Scgd	-for i in ${DI386}; do \
331.16Sperry	    (cd $$i && rm -f tags; ln -s ../tags tags); done
341.13Smycroft
351.13Smycroft
361.21SfvdlSUBDIR=	compile include stand ../x86/include
371.3Scgd
381.11Smycroft.include <bsd.subdir.mk>
39