Makefile revision 1.7
11.7Smycroft#	$NetBSD: Makefile,v 1.7 1997/10/11 08:42:09 mycroft Exp $
21.7Smycroft
31.7SmycroftNOOBJ=
41.4Scgd
51.5Sjonathan# Makefile for pmax tags file and boot blocks
61.1Sderaadt
71.7SmycroftSUBDIR=	stand
81.1Sderaadt
91.5Sjonathan# Find where mips source fils are for inclusion in tags
101.5Sjonathan.include <../mips/Makefile.inc>
111.1Sderaadt
121.5SjonathanTPMAX=	../pmax/tags
131.5SjonathanSPMAX=	../pmax/pmax/*.[ch] ../pmax/include/*.h \
141.5Sjonathan	../pmax/dev/*.[ch] ../pmax/tc/*.[ch]
151.5SjonathanAPMAX=	../pmax/pmax/*.S
161.2Sglass
171.5Sjonathan# Directories in which to place pmax (mips) tags links
181.5SjonathanDPMAX=	dev tc include
191.2Sglass
201.7Smycroft.include "../../kern/Make.tags.inc"
211.7Smycroft
221.7Smycrofttags:
231.7Smycroft	-ctags -wdtf ${TPMAX} ${SPMAX} ${SMIPS} ${COMM}
241.5Sjonathan	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \
251.5Sjonathan	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
261.7Smycroft	    >> ${TPMAX}
271.5Sjonathan	sort -o ${TPMAX} ${TPMAX}
281.5Sjonathan
291.5Sjonathanlinks:
301.5Sjonathan	-for i in ${DPMAX}; do \
311.5Sjonathan	    cd $$i && rm -f tags; ln -s ../tags tags; done
321.5Sjonathan
331.7Smycroft.include <bsd.subdir.mk>
34