summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/beagle/Makefile38
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>