Makefile revision 1.4
11.4Sdyoung#	$NetBSD: Makefile,v 1.4 2011/04/06 01:24:43 dyoung Exp $
21.1Sthorpej
31.1Sthorpej# Makefile for algor tags file and boot blocks
41.1Sthorpej
51.1Sthorpej# Find where mips source files are for inclusion in tags
61.1Sthorpej.include <../mips/Makefile.inc>
71.1Sthorpej
81.4SdyoungTALGOR=		${SYSDIR}/arch/algor/tags
91.4SdyoungSALGOR=		${SYSDIR}/arch/algor/algor/*.[ch]
101.4SdyoungSALGOR+=	${SYSDIR}/arch/algor/dev/*.[ch]
111.4SdyoungSALGOR+=	${SYSDIR}/arch/algor/include/*.h
121.4SdyoungSALGOR+=	${SYSDIR}/arch/algor/isa/*.[ch]
131.4SdyoungSALGOR+=	${SYSDIR}/arch/algor/pci/*.[ch]
141.1Sthorpej
151.4SdyoungAALGOR=		${SYSDIR}/arch/algor/algor/*.S
161.1Sthorpej# Directories in which to place tags links
171.1SthorpejDALGOR= algor include isa pci
181.1Sthorpej
191.1Sthorpej.include "../../kern/Make.tags.inc"
201.1Sthorpej
211.1Sthorpejtags:
221.4Sdyoung	-rm -f ${TALGOR}
231.4Sdyoung	-echo ${SALGOR} ${SMIPS} | xargs ctags -wadtf ${TALGOR}
241.4Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TALGOR}
251.1Sthorpej	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
261.4Sdyoung	    ${TOOL_SED} -e \
271.4Sdyoung		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
281.4Sdyoung	    >> ${TALGOR}
291.1Sthorpej	sort -o ${TALGOR} ${TALGOR}
301.1Sthorpej
311.1Sthorpejlinks:
321.1Sthorpej	-for i in ${DALGOR}; do \
331.1Sthorpej	    cd $$i && rm -f tags; ln -s ../tags tags; done
341.1Sthorpej
351.1Sthorpej
361.2SlukemSUBDIR=	compile include
371.1Sthorpej
381.1Sthorpej.include <bsd.subdir.mk>
39