1# $NetBSD: Makefile,v 1.40 2011/04/04 19:46:40 dyoung Exp $ 2 3# Makefile for i386 tags file and boot blocks 4 5TI386= ${SYSDIR}/arch/i386/tags 6SI386= ${SYSDIR}/arch/i386/acpi/*.[ch] \ 7 ${SYSDIR}/arch/i386/eisa/*.[ch] \ 8 ${SYSDIR}/arch/i386/i386/*.[ch] \ 9 ${SYSDIR}/arch/i386/include/*.h \ 10 ${SYSDIR}/arch/i386/isa/*.[ch] \ 11 ${SYSDIR}/arch/i386/mca/*.[ch] \ 12 ${SYSDIR}/arch/i386/pci/*.[ch] \ 13 ${SYSDIR}/arch/i386/pnpbios/*.[ch] \ 14 ${SYSDIR}/external/isc/atheros_hal/dist/*.[ch] \ 15 ${SYSDIR}/external/isc/atheros_hal/dist/*/*.[ch] \ 16 ${SYSDIR}/external/isc/atheros_hal/ic/*.[ch] 17SI386+= ${SYSDIR}/arch/x86/x86/*.[ch] \ 18 ${SYSDIR}/arch/x86/acpi/*.[ch] \ 19 ${SYSDIR}/arch/x86/include/*.h \ 20 ${SYSDIR}/arch/x86/isa/*.[ch] \ 21 ${SYSDIR}/arch/xen/include/*.h \ 22 ${SYSDIR}/arch/xen/i386/*.[ch] \ 23 ${SYSDIR}/arch/xen/x86/*.[ch] \ 24 ${SYSDIR}/arch/xen/xen/*.[ch] \ 25 ${SYSDIR}/arch/xen/xenbus/*.[ch] \ 26 ${SYSDIR}/arch/x86/pci/*.[ch] 27AI386= ${SYSDIR}/arch/i386/i386/*.S 28 29# Directories in which to place tags links 30DI386= i386 eisa isa include pci 31 32.include "../../kern/Make.tags.inc" 33 34tags: 35 -rm -f ${TI386} 36 -echo ${SI386} | xargs ctags -wadtf ${TI386} 37 -find -H ${SYSDIR}/external/bsd/acpica/dist/ -name '*.[ch]' | \ 38 sort -t / -u | xargs ctags -wadtf ${TI386} 39 -${FINDCOMM} | xargs ctags -wadtf ${TI386} 40 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \ 41 ${TOOL_SED} -e \ 42 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 43 >> ${TI386} 44 sort -o ${TI386} ${TI386} 45 46links: 47 -for i in ${DI386}; do \ 48 (cd $$i && rm -f tags; ln -s ../tags tags); done 49 50 51SUBDIR= compile include stand ../x86/include ../xen/include 52 53.include <bsd.subdir.mk> 54