15c837953SKen Smith# Makefile for amd64 links, tags file 20ee81fe5SKirk McKusick 30ee81fe5SKirk McKusick# SYS is normally set in Make.tags.inc 45c837953SKen SmithSYS=/sys 50ee81fe5SKirk McKusick 65c837953SKen SmithTAGDIR= amd64 70ee81fe5SKirk McKusick 80ee81fe5SKirk McKusick.include "../kern/Make.tags.inc" 95b81b6b3SRodney W. Grimes 105b81b6b3SRodney W. Grimesall: 110ee81fe5SKirk McKusick @echo "make links or tags only" 125b81b6b3SRodney W. Grimes 135c837953SKen Smith# Directories in which to place amd64 tags links 14*1c8d670cSKirk McKusickDAMD64= acpica amd64 ia32 include linux linux32 pci sgx vmm 155b81b6b3SRodney W. Grimes 160ee81fe5SKirk McKusicklinks:: 170ee81fe5SKirk McKusick -for i in ${COMMDIR1}; do \ 180ee81fe5SKirk McKusick (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done 190ee81fe5SKirk McKusick -for i in ${COMMDIR2}; do \ 200ee81fe5SKirk McKusick (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done 215c837953SKen Smith -for i in ${DAMD64}; do \ 22*1c8d670cSKirk McKusick (cd ${SYS}/amd64/$$i && { rm -f tags; ln -s ../tags tags; }) done 230ee81fe5SKirk McKusick 245c837953SKen SmithSAMD64= ${SYS}/amd64/acpica/*.[ch] \ 255c837953SKen Smith ${SYS}/amd64/amd64/*.[ch] ${SYS}/amd64/ia32/*.[ch] \ 26a57418a7SKirk McKusick ${SYS}/amd64/include/*.[ch] ${SYS}/amd64/linux/*.[ch] \ 27a57418a7SKirk McKusick ${SYS}/amd64/linux32/*.[ch] ${SYS}/amd64/pci/*.[ch] \ 28*1c8d670cSKirk McKusick ${SYS}/amd64/sgx/*.[ch] ${SYS}/amd64/vmm/*.[ch] 295c837953SKen SmithAAMD64= ${SYS}/amd64/amd64/*.S 300ee81fe5SKirk McKusick 310ee81fe5SKirk McKusicktags:: 325c837953SKen Smith -ctags -wdt ${COMM} ${SAMD64} 335c837953SKen Smith egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \ 345b81b6b3SRodney W. Grimes sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 350ee81fe5SKirk McKusick >> tags 360ee81fe5SKirk McKusick sort -o tags tags 370ee81fe5SKirk McKusick chmod 444 tags 38*1c8d670cSKirk McKusick rm -f ${SYS}/amd64/tags 39*1c8d670cSKirk McKusick mv tags ${SYS}/amd64/tags 40