11.43Sdyoung#	$NetBSD: Makefile,v 1.43 2012/10/23 16:08:12 dyoung 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.37Sdyoung	${SYSDIR}/external/isc/atheros_hal/dist/*.[ch] \
151.37Sdyoung	${SYSDIR}/external/isc/atheros_hal/dist/*/*.[ch] \
161.38Sdyoung	${SYSDIR}/external/isc/atheros_hal/ic/*.[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.42Sdyoung	${SYSDIR}/arch/x86/pci/*.[ch] \
221.40Sdyoung	${SYSDIR}/arch/xen/include/*.h \
231.40Sdyoung	${SYSDIR}/arch/xen/i386/*.[ch] \
241.40Sdyoung	${SYSDIR}/arch/xen/x86/*.[ch] \
251.40Sdyoung	${SYSDIR}/arch/xen/xen/*.[ch] \
261.42Sdyoung	${SYSDIR}/arch/xen/xenbus/*.[ch]
271.41SdyoungAI386=	${SYSDIR}/arch/i386/i386/*.S \
281.41Sdyoung	${SYSDIR}/../common/lib/libc/arch/i386/*/*.S
291.1Scgd
301.13Smycroft# Directories in which to place tags links
311.16SperryDI386=	i386 eisa isa include pci
321.11Smycroft
331.11Smycroft.include "../../kern/Make.tags.inc"
341.1Scgd
351.1Scgdtags:
361.28Sdyoung	-rm -f ${TI386}
371.43Sdyoung	-echo ${SI386} | xargs $(TOOL_CTAGS) -wadtf ${TI386}
381.40Sdyoung	-find -H ${SYSDIR}/external/bsd/acpica/dist/ -name '*.[ch]' | \
391.43Sdyoung	    sort -t / -u | xargs $(TOOL_CTAGS) -wadtf ${TI386}
401.43Sdyoung	-${FINDCOMM} | xargs $(TOOL_CTAGS) -wadtf ${TI386}
411.1Scgd	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
421.35Sapb	    ${TOOL_SED} -e \
431.35Sapb	"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
441.1Scgd		>> ${TI386}
451.1Scgd	sort -o ${TI386} ${TI386}
461.1Scgd
471.1Scgdlinks:
481.1Scgd	-for i in ${DI386}; do \
491.16Sperry	    (cd $$i && rm -f tags; ln -s ../tags tags); done
501.13Smycroft
511.13Smycroft
521.33SbouyerSUBDIR=	compile include stand ../x86/include ../xen/include
531.3Scgd
541.11Smycroft.include <bsd.subdir.mk>
55