Makefile revision 1.5
1#	$NetBSD: Makefile,v 1.5 2008/01/10 07:34:02 dyoung Exp $
2
3# Makefile for evbarm tags file and boot blocks
4
5TEVBARM=	${SYSDIR}/arch/evbarm/tags
6SEVBARM=	${SYSDIR}/arch/arm/xscale/*.[ch] \
7		${SYSDIR}/arch/evbarm/dev/*.[ch] \
8		${SYSDIR}/arch/evbarm/ifpga/*.[ch] \
9		${SYSDIR}/arch/evbarm/include/*.h \
10		${SYSDIR}/arch/evbarm/integrator/*.[ch] \
11		${SYSDIR}/arch/evbarm/iq31244/*.[ch] \
12		${SYSDIR}/arch/evbarm/iq80310/*.[ch] \
13		${SYSDIR}/arch/evbarm/iq80321/*.[ch]
14AEVBARM=	${SYSDIR}/arch/evbarm/integrator/*.S
15
16# Directories in which to place tags links
17DEVBARM=	include
18
19.include "../../kern/Make.tags.inc"
20
21tags:
22	-rm -f ${TEVBARM}
23	-echo ${SEVBARM} | xargs ctags -wadtf ${TEVBARM}
24	-${FINDCOMM} | xargs ctags -wadtf ${TEVBARM}
25	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBARM} | \
26	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
27	    >> ${TEVBARM}
28	sort -o ${TEVBARM} ${TEVBARM}
29
30links:
31	-for i in ${DEVBARM}; do \
32	    cd $$i && rm -f tags; ln -s ../tags tags; done
33
34
35SUBDIR=	compile include stand
36
37.include <bsd.subdir.mk>
38