diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 00:56:41 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 00:56:41 +0000 |
commit | e55a4154889f050f10fbafc86636c6b9d1afdff4 (patch) | |
tree | 58a00f5bcfd291811074aa8afe0e968f286ad488 | |
parent | 9b00d653e584c7c2291c166d721ed904af4c6370 (diff) |
Add tags to amd64.
<miod> commit your stuff.
<miod> make tags work.
-rw-r--r-- | sys/arch/amd64/Makefile | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/sys/arch/amd64/Makefile b/sys/arch/amd64/Makefile index 8cc23453486..4b29d3dea4b 100644 --- a/sys/arch/amd64/Makefile +++ b/sys/arch/amd64/Makefile @@ -1,10 +1,35 @@ -# $OpenBSD: Makefile,v 1.1 2004/01/28 01:39:38 mickey Exp $ +# $OpenBSD: Makefile,v 1.2 2005/05/06 00:56:40 marco Exp $ + +S=${.CURDIR}/../.. +.include "$S/kern/Make.tags.inc" NOPROG= noprog NOMAN= noman SUBDIR= stand +TAMD64= $S/arch/amd64/tags +SAMD64= $S/arch/amd64/amd64/*.[ch] \ + $S/arch/amd64/include/*.h \ + $S/arch/amd64/isa/*.[ch] $S/arch/amd64/pci/*.[ch] +AAMD64= $S/arch/amd64/amd64/*.[sS] $S/arch/amd64/isa/*.[sS] \ + $S/lib/libkern/arch/amd64/*.[sS] + +# Directories in which to place amd64 tags links +DAMD64= conf amd64 include isa pci + +tags: + -ctags -wdtf ${TAMD64} ${COMM} ${SAMD64} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \ + sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ + >> ${TAMD64} + sort -o ${TAMD64} ${TAMD64} + +links: + -for i in ${DAMD64}; do \ + cd $$i && rm -f tags; ln -s ${TAMD64} tags; done + + obj: _SUBDIRUSE .include <bsd.prog.mk> |