summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-05-10 21:04:20 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-05-10 21:04:20 +0000
commitf5983777b2e4222203436f8df3bd5b8592631ddc (patch)
treee03ce4c34658a7bad44b8e07e240309ae79ec718
parent7f9dbd748ec12cb4eba5af7b569b32fa00ab107b (diff)
More OpenBSD/socppc parts.
-rw-r--r--sys/arch/socppc/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/arch/socppc/Makefile b/sys/arch/socppc/Makefile
new file mode 100644
index 00000000000..653ed0e172c
--- /dev/null
+++ b/sys/arch/socppc/Makefile
@@ -0,0 +1,37 @@
+# $OpenBSD: Makefile,v 1.1 2008/05/10 21:04:19 kettenis Exp $
+
+S=${.CURDIR}/../..
+.include "$S/kern/Make.tags.inc"
+
+NOPROG= noprog
+NOMAN= noman
+
+.if ${MACHINE} == "docppc"
+SUBDIR= stand
+.endif
+
+TSOCPPC= $S/arch/socppc/tags
+SSOCPPC= $S/arch/socppc/socppc/*.[ch] \
+ $S/arch/socppc/include/*.h \
+ $S/arch/socppc/dev/*.[ch] \
+ $S/arch/powerpc/include/*.h
+ASOCPPC= $S/arch/socppc/socppc/*.[sS]
+
+# Directories in which to place socppc tags links
+DSOCPPC= conf socppc include
+
+tags:
+ -ctags -wdtf ${TSOCPPC} ${COMM} ${SSOCPPC}
+ egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASOCPPC} | \
+ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+ >> ${TSOCPPC}
+ sort -o ${TSOCPPC} ${TSOCPPC}
+
+links:
+ -for i in ${DSOCPPC}; do \
+ cd $$i && rm -f tags; ln -s ${TSOCPPC} tags; done
+
+
+obj: _SUBDIRUSE
+
+.include <bsd.prog.mk>