1# $OpenBSD: Makefile,v 1.5 2006/09/27 09:13:31 grange Exp $ 2 3S=${.CURDIR}/../.. 4.include "$S/kern/Make.tags.inc" 5 6NOPROG= noprog 7NOMAN= noman 8 9SUBDIR= stand 10 11TAMD64= $S/arch/amd64/tags 12SAMD64= $S/arch/amd64/amd64/*.[ch] \ 13 $S/arch/amd64/include/*.h \ 14 $S/arch/amd64/isa/*.[ch] $S/arch/amd64/pci/*.[ch] 15AAMD64= $S/arch/amd64/amd64/*.[sS] $S/lib/libkern/arch/amd64/*.[sS] 16 17# Directories in which to place amd64 tags links 18DAMD64= conf amd64 include isa pci 19 20tags: 21 -ctags -wdtf ${TAMD64} ${COMM} ${SAMD64} 22 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \ 23 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 24 >> ${TAMD64} 25 sort -o ${TAMD64} ${TAMD64} 26 27links: 28 -for i in ${DAMD64}; do \ 29 (cd $$i && rm -f tags; ln -s ${TAMD64} tags); done 30 31obj: _SUBDIRUSE 32 33.include <bsd.prog.mk> 34