summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/loongson/Makefile')
-rw-r--r--sys/arch/loongson/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/arch/loongson/Makefile b/sys/arch/loongson/Makefile
new file mode 100644
index 00000000000..698ee4de761
--- /dev/null
+++ b/sys/arch/loongson/Makefile
@@ -0,0 +1,37 @@
+# $OpenBSD: Makefile,v 1.1 2010/02/14 22:39:31 miod Exp $
+
+# Makefile for loongson tags file and boot blocks
+
+S=${.CURDIR}/../..
+.include "$S/kern/Make.tags.inc"
+
+SUBDIR= stand
+
+NOPROG= noprog
+NOMAN= noman
+
+TLOONGSON= $S/arch/loongson/tags
+
+SLOONGSON= $S/arch/loongson/dev/*.[ch] $S/arch/loongson/include/*.h \
+ $S/arch/loongson/loongson/*.[ch] \
+ $S/arch/mips64/dev/*.[ch] $S/arch/mips64/include/*.h \
+ $S/arch/mips64/mips64/*.[ch]
+ALOONGSON= $S/arch/loongson/loongson/*.S $S/arch/mips64/mips64/*.S
+
+# Directories in which to place tags links
+DLOONGSON= dev include loongson
+
+tags:
+ -ctags -wdtf ${TLOONGSON} ${SLOONGSON} ${COMM}
+ egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALOONGSON} | \
+ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+ >> ${TLOONGSON}
+ sort -o ${TLOONGSON} ${TLOONGSON}
+
+links:
+ -for i in ${DLOONGSON}; do \
+ (cd $$i && { rm -f tags; ln -s ${TLOONGSON} tags; }) done
+
+obj: _SUBDIRUSE
+
+.include <bsd.prog.mk>