summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-05-06 00:56:41 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-05-06 00:56:41 +0000
commite55a4154889f050f10fbafc86636c6b9d1afdff4 (patch)
tree58a00f5bcfd291811074aa8afe0e968f286ad488
parent9b00d653e584c7c2291c166d721ed904af4c6370 (diff)
Add tags to amd64.
<miod> commit your stuff. <miod> make tags work.
-rw-r--r--sys/arch/amd64/Makefile27
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>