Makefile revision 1.35
11.35Sapb#	$NetBSD: Makefile,v 1.35 2008/10/25 22:27:37 apb Exp $
21.1Scgd
31.3Scgd# Makefile for i386 tags file and boot blocks
41.16Sperry
51.16SperryTI386=	${SYSDIR}/arch/i386/tags
61.31SdyoungSI386=	${SYSDIR}/arch/i386/acpi/*.[ch] \
71.31Sdyoung	${SYSDIR}/arch/i386/eisa/*.[ch] \
81.31Sdyoung	${SYSDIR}/arch/i386/i386/*.[ch] \
91.31Sdyoung	${SYSDIR}/arch/i386/include/*.h \
101.31Sdyoung	${SYSDIR}/arch/i386/isa/*.[ch] \
111.32Sdyoung	${SYSDIR}/arch/i386/mca/*.[ch] \
121.22Sdyoung	${SYSDIR}/arch/i386/pci/*.[ch] \
131.31Sdyoung	${SYSDIR}/arch/i386/pnpbios/*.[ch] \
141.28Sdyoung	${SYSDIR}/contrib/dev/ath/*.[ch] \
151.28Sdyoung	${SYSDIR}/contrib/dev/ath/netbsd/*.[ch] \
161.28Sdyoung	${SYSDIR}/contrib/dev/ath/public/*.[ch]
171.34SdyoungSI386+=	${SYSDIR}/arch/x86/x86/*.[ch] \
181.34Sdyoung	${SYSDIR}/arch/x86/acpi/*.[ch] \
191.34Sdyoung	${SYSDIR}/arch/x86/include/*.h \
201.27Sdyoung	${SYSDIR}/arch/x86/isa/*.[ch] \
211.27Sdyoung	${SYSDIR}/arch/x86/pci/*.[ch]
221.28SdyoungAI386=	${SYSDIR}/arch/i386/i386/*.[sS]
231.1Scgd
241.13Smycroft# Directories in which to place tags links
251.16SperryDI386=	i386 eisa isa include pci
261.11Smycroft
271.11Smycroft.include "../../kern/Make.tags.inc"
281.1Scgd
291.1Scgdtags:
301.28Sdyoung	-rm -f ${TI386}
311.29Sdyoung	-echo ${SI386} | xargs ctags -wadtf ${TI386}
321.29Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TI386}
331.1Scgd	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
341.35Sapb	    ${TOOL_SED} -e \
351.35Sapb	"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
361.1Scgd		>> ${TI386}
371.1Scgd	sort -o ${TI386} ${TI386}
381.1Scgd
391.1Scgdlinks:
401.1Scgd	-for i in ${DI386}; do \
411.16Sperry	    (cd $$i && rm -f tags; ln -s ../tags tags); done
421.13Smycroft
431.13Smycroft
441.33SbouyerSUBDIR=	compile include stand ../x86/include ../xen/include
451.3Scgd
461.11Smycroft.include <bsd.subdir.mk>
47