summaryrefslogtreecommitdiff
path: root/sys/arch/moko/Makefile
blob: 7b72f4313d1f193982bf92f6c1a26fe75e1e3a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 	$OpenBSD: Makefile,v 1.2 2008/11/27 20:50:35 miod 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/include/*.h \
	$S/arch/moko/moko/*.[ch] $S/arch/arm/arm/*.[ch] \
	$S/arch/arm/include/*.h $S/arch/arm/mainbus/*.[ch] \
	$S/arch/arm/s3c2xx0/*.h $S/arch/arm/xscale/*.[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=	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>