1# $FreeBSD$ 2# @(#)Makefile 8.1 (Berkeley) 6/11/93 3 4# Makefile for amd64 links, tags file 5 6# SYS is normally set in Make.tags.inc 7SYS=/sys 8 9TAGDIR= amd64 10 11.include "../kern/Make.tags.inc" 12 13all: 14 @echo "make links or tags only" 15 16# Directories in which to place amd64 tags links 17DAMD64= acpica amd64 ia32 include linux linux32 pci vmm 18 19links:: 20 -for i in ${COMMDIR1}; do \ 21 (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done 22 -for i in ${COMMDIR2}; do \ 23 (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done 24 -for i in ${DAMD64}; do \ 25 (cd $$i && { rm -f tags; ln -s ../tags tags; }) done 26 27SAMD64= ${SYS}/amd64/acpica/*.[ch] \ 28 ${SYS}/amd64/amd64/*.[ch] ${SYS}/amd64/ia32/*.[ch] \ 29 ${SYS}/amd64/include/*.[ch] ${SYS}/amd64/linux/*.[ch] \ 30 ${SYS}/amd64/linux32/*.[ch] ${SYS}/amd64/pci/*.[ch] \ 31 ${SYS}/amd64/vmm/*.[ch] 32AAMD64= ${SYS}/amd64/amd64/*.S 33 34tags:: 35 -ctags -wdt ${COMM} ${SAMD64} 36 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \ 37 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 38 >> tags 39 sort -o tags tags 40 chmod 444 tags 41