1 1.27 dyoung # $NetBSD: Makefile,v 1.27 2006/02/26 03:08:02 dyoung Exp $ 2 1.1 cgd 3 1.3 cgd # Makefile for i386 tags file and boot blocks 4 1.16 perry 5 1.16 perry TI386= ${SYSDIR}/arch/i386/tags 6 1.16 perry SI386= ${SYSDIR}/arch/i386/i386/*.[ch] ${SYSDIR}/arch/i386/include/*.h \ 7 1.16 perry ${SYSDIR}/arch/i386/eisa/*.[ch] ${SYSDIR}/arch/i386/isa/*.[ch] \ 8 1.22 dyoung ${SYSDIR}/arch/i386/pci/*.[ch] \ 9 1.25 dyoung ${SYSDIR}/contrib/arch/i386/dev/*.[ch] \ 10 1.25 dyoung ${SYSDIR}/contrib/dev/ic/*.[ch] 11 1.27 dyoung SI386+= ${SYSDIR}/arch/x86/x86/*.[ch] ${SYSDIR}/arch/x86/include/*.h \ 12 1.27 dyoung ${SYSDIR}/arch/x86/isa/*.[ch] \ 13 1.27 dyoung ${SYSDIR}/arch/x86/pci/*.[ch] 14 1.23 dyoung AI386= ${SYSDIR}/arch/i386/i386/*.[sS] ${SYSDIR}/arch/i386/isa/*.[sS] 15 1.1 cgd 16 1.13 mycroft # Directories in which to place tags links 17 1.16 perry DI386= i386 eisa isa include pci 18 1.11 mycroft 19 1.11 mycroft .include "../../kern/Make.tags.inc" 20 1.1 cgd 21 1.1 cgd tags: 22 1.18 lukem rm -f ${TI386} 23 1.18 lukem -echo ${SI386} ${COMM} | xargs ctags -wadtf ${TI386} 24 1.1 cgd egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \ 25 1.24 dyoung sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 26 1.1 cgd >> ${TI386} 27 1.1 cgd sort -o ${TI386} ${TI386} 28 1.1 cgd 29 1.1 cgd links: 30 1.1 cgd -for i in ${DI386}; do \ 31 1.16 perry (cd $$i && rm -f tags; ln -s ../tags tags); done 32 1.13 mycroft 33 1.13 mycroft 34 1.21 fvdl SUBDIR= compile include stand ../x86/include 35 1.3 cgd 36 1.11 mycroft .include <bsd.subdir.mk> 37