summaryrefslogtreecommitdiff
path: root/sys/arch/moko/Makefile
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2008-11-26 14:47:51 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2008-11-26 14:47:51 +0000
commit8c0bacb71bee1ba1a169af8ebda59567a87ef88f (patch)
treeca1be99d32f89df936b5892e92ad6376c513e755 /sys/arch/moko/Makefile
parentc6d65e6e11637f113bb9637929b7a7ba1382553e (diff)
Start at the port of OpenBSD to the OpenMoko hardware. Work in progress.
Diffstat (limited to 'sys/arch/moko/Makefile')
-rw-r--r--sys/arch/moko/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/arch/moko/Makefile b/sys/arch/moko/Makefile
new file mode 100644
index 00000000000..d9ff48db4cc
--- /dev/null
+++ b/sys/arch/moko/Makefile
@@ -0,0 +1,38 @@
+# $OpenBSD: Makefile,v 1.1 2008/11/26 14:47:50 drahn Exp $
+# $NetBSD: Makefile,v 1.1 2001/06/12 08:32:46 chris Exp $
+
+# Makefile for moko tags file and boot blocks
+
+S=${.CURDIR}/../..
+.include "$S/kern/Make.tags.inc"
+
+SUBDIR= stand
+
+NOPROG= noprog
+NOMAN= noman
+
+TMOKO= $S/arch/moko/tags
+
+SMOKO= $S/arch/moko/dev/*.[ch] $S/arch/moko/include/*.h \
+ $S/arch/moko/moko/*.[ch] $S/arch/arm/arm/*.[ch] \
+ $S/arch/arm/include/*.h $S/arch/arm/mainbus/*.[ch] \
+AMOKO= $S/arch/moko/moko/*.S $S/arch/arm/arm/*.S \
+ $S/arch/arm/mainbus/*.S
+
+# Directories in which to place tags links
+DMOKO= dev include moko
+
+tags:
+ -ctags -wdtf ${TMOKO} ${SMOKO} ${COMM}
+ egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMOKO} | \
+ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+ >> ${TMOKO}
+ sort -o ${TMOKO} ${TMOKO}
+
+links:
+ -for i in ${DMOKO}; do \
+ (cd $$i && { rm -f tags; ln -s ${TMOKO} tags; }) done
+
+obj: _SUBDIRUSE
+
+.include <bsd.prog.mk>