1 1.8 maxv # $NetBSD: Makefile,v 1.8 2017/12/22 07:19:02 maxv Exp $ 2 1.1 fvdl 3 1.2 fvdl # Makefile for amd64 tags file and boot blocks 4 1.1 fvdl 5 1.2 fvdl TAMD64= ${SYSDIR}/arch/amd64/tags 6 1.2 fvdl SAMD64= ${SYSDIR}/arch/amd64/amd64/*.[ch] \ 7 1.7 dyoung ${SYSDIR}/arch/amd64/include/*.h \ 8 1.7 dyoung ${SYSDIR}/external/isc/atheros_hal/dist/*.[ch] \ 9 1.7 dyoung ${SYSDIR}/external/isc/atheros_hal/dist/*/*.[ch] \ 10 1.7 dyoung ${SYSDIR}/external/isc/atheros_hal/ic/*.[ch] 11 1.7 dyoung SAMD64+= ${SYSDIR}/arch/x86/x86/*.[ch] \ 12 1.7 dyoung ${SYSDIR}/arch/x86/acpi/*.[ch] \ 13 1.7 dyoung ${SYSDIR}/arch/x86/include/*.h \ 14 1.7 dyoung ${SYSDIR}/arch/x86/isa/*.[ch] \ 15 1.7 dyoung ${SYSDIR}/arch/x86/pci/*.[ch] 16 1.7 dyoung AAMD64= ${SYSDIR}/arch/amd64/amd64/*.S \ 17 1.7 dyoung ${SYSDIR}/arch/amd64/acpi/*.S 18 1.1 fvdl # Directories in which to place tags links 19 1.2 fvdl DAMD64= amd64 isa include pci 20 1.1 fvdl 21 1.1 fvdl .include "../../kern/Make.tags.inc" 22 1.1 fvdl 23 1.1 fvdl tags: 24 1.6 dyoung -rm -f ${TAMD64} 25 1.6 dyoung -echo ${SAMD64} | xargs ctags -wadtf ${TAMD64} 26 1.6 dyoung -find -H ${SYSDIR}/external/intel-public/acpica/dist/ -name '*.[ch]' | \ 27 1.6 dyoung sort -t / -u | xargs ctags -wadtf ${TAMD64} 28 1.6 dyoung -${FINDCOMM} | xargs ctags -wadtf ${TAMD64} 29 1.2 fvdl egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \ 30 1.4 apb ${TOOL_SED} -e \ 31 1.7 dyoung "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 32 1.2 fvdl >> ${TAMD64} 33 1.2 fvdl sort -o ${TAMD64} ${TAMD64} 34 1.1 fvdl 35 1.1 fvdl links: 36 1.2 fvdl -for i in ${DAMD64}; do \ 37 1.1 fvdl (cd $$i && rm -f tags; ln -s ../tags tags); done 38 1.1 fvdl 39 1.1 fvdl 40 1.5 mrg SUBDIR= compile include ../x86/include ../xen/include \ 41 1.8 maxv ../i386/include ../i386/stand stand 42 1.1 fvdl 43 1.1 fvdl .include <bsd.subdir.mk> 44