diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 02:52:46 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 02:52:46 +0000 |
commit | d6abf2819a7066134d35b1a819f9463a172acadf (patch) | |
tree | 3809e6afd4ac0591137b7ba423895abcfa99760b | |
parent | c69fb102008affe66194ac388af12070a1be2784 (diff) |
Add tags to m68k.
<miod> commit your stuff.
<miod> make tags work.
-rw-r--r-- | sys/arch/m68k/Makefile | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/sys/arch/m68k/Makefile b/sys/arch/m68k/Makefile index 26c618370da..55cacfc2b08 100644 --- a/sys/arch/m68k/Makefile +++ b/sys/arch/m68k/Makefile @@ -1,7 +1,34 @@ -# $OpenBSD: Makefile,v 1.7 2000/05/25 21:55:02 deraadt Exp $ +# $OpenBSD: Makefile,v 1.8 2005/05/06 02:52:45 marco Exp $ + +S=${.CURDIR}/../.. +.include "$S/kern/Make.tags.inc" .if ${MACHINE_ARCH} == "m68k" SUBDIR+= 060sp fpsp .endif +TM68K= $S/arch/m68k/tags +SM68K= $S/arch/m68k/m68k/*.[ch] \ + $S/arch/m68k/include/*.h +AM68K= $S/arch/m68k/m68k/*.[sS] \ + $S/lib/libkern/arch/m68k/*.[sS] \ + $S/arch/m68k/fpsp/*.sa \ + $S/arch/m68k/060sp/*.[sS] \ + $S/arch/m68k/060sp/*.sa \ + +# Directories in which to place m68k tags links +DM68K= conf m68k include pci + +tags: + -ctags -wdtf ${TM68K} ${COMM} ${SM68K} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AM68K} | \ + sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ + >> ${TM68K} + sort -o ${TM68K} ${TM68K} + +links: + -for i in ${DM68K}; do \ + cd $$i && rm -f tags; ln -s ${TM68K} tags; done + + .include <bsd.subdir.mk> |