1#	$NetBSD: Makefile,v 1.2 2003/01/06 17:40:28 lukem Exp $
2
3.include <../powerpc/Makefile.inc>
4
5TPREP=	${SYSDIR}/arch/prep/tags
6SPREP=	${SYSDIR}/arch/prep/prep/*.[ch] \
7	${SYSDIR}/arch/prep/isa/*.[ch] \
8	${SYSDIR}/arch/prep/pci/*.[ch] \
9	${SYSDIR}/arch/prep/include/*.h
10APREP=	${SYSDIR}/arch/prep/prep/*.S
11
12DPREP=	include
13
14.include "../../kern/Make.tags.inc"
15
16tags:
17	-rm -f ${TPREP}
18	-echo ${SPREP} ${SPPC} | xargs ctags -wadtf ${TPREP}
19	-${FINDCOMM} | xargs ctags -wadtf ${TPREP}
20	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APREP} ${APPC} | \
21	    ${TOOL_SED} -e \
22		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
23	    >> ${TPREP}
24	sort -o ${TPREP} ${TPREP}
25
26links:
27	-for i in ${DPREP}; do \
28	    cd $$i && rm -f tags; ln -s ../tags tags; done
29
30
31SUBDIR=	compile include stand
32
33.include <bsd.subdir.mk>
34