diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2010-02-13 18:23:43 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2010-02-13 18:23:43 +0000 |
commit | 85eccd7adbe9c553a804906d854129d072ea77eb (patch) | |
tree | a7757a8e640b3b105babc7aacee1d2e4e1ca9ad7 /sys/arch | |
parent | 532cac76428d599046b455b05472bad65500bfb0 (diff) |
port 'Makefile', builds tags.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/beagle/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/arch/beagle/Makefile b/sys/arch/beagle/Makefile new file mode 100644 index 00000000000..31ca4118a6d --- /dev/null +++ b/sys/arch/beagle/Makefile @@ -0,0 +1,38 @@ +# $OpenBSD: Makefile,v 1.1 2010/02/13 18:23:42 drahn Exp $ +# $NetBSD: Makefile,v 1.1 2001/06/12 08:32:46 chris Exp $ + +# Makefile for beagle tags file and boot blocks + +S=${.CURDIR}/../.. +.include "$S/kern/Make.tags.inc" + +#SUBDIR= stand + +NOPROG= noprog +NOMAN= noman + +TBEAGLE= $S/arch/beagle/tags + +SBEAGLE= $S/arch/beagle/dev/*.[ch] $S/arch/beagle/include/*.h \ + $S/arch/beagle/beagle/*.[ch] $S/arch/arm/arm/*.[ch] \ + $S/arch/arm/include/*.h $S/arch/arm/mainbus/*.[ch] +ABEAGLE= $S/arch/beagle/beagle/*.S $S/arch/arm/arm/*.S \ + $S/arch/arm/mainbus/*.S + +# Directories in which to place tags links +DBEAGLE= dev include beagle + +tags: + -ctags -wdtf ${TBEAGLE} ${SBEAGLE} ${COMM} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ABEAGLE} | \ + sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ + >> ${TBEAGLE} + sort -o ${TBEAGLE} ${TBEAGLE} + +links: + -for i in ${DBEAGLE}; do \ + (cd $$i && { rm -f tags; ln -s ${TBEAGLE} tags; }) done + +obj: _SUBDIRUSE + +.include <bsd.prog.mk> |