1# $NetBSD: Makefile,v 1.10 1998/06/12 23:22:43 cgd Exp $ 2 3# Makefile for pmax tags file and boot blocks 4 5# Find where mips source files are for inclusion in tags 6.include <../mips/Makefile.inc> 7 8TPMAX= ../pmax/tags 9SPMAX= ../pmax/pmax/*.[ch] ../pmax/include/*.h \ 10 ../pmax/dev/*.[ch] ../pmax/tc/*.[ch] 11APMAX= ../pmax/pmax/*.S 12 13# Directories in which to place tags links 14DPMAX= dev tc include 15 16.include "../../kern/Make.tags.inc" 17 18tags: 19 -ctags -wdtf ${TPMAX} ${SPMAX} ${SMIPS} ${COMM} 20 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \ 21 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 22 >> ${TPMAX} 23 sort -o ${TPMAX} ${TPMAX} 24 25links: 26 -for i in ${DPMAX}; do \ 27 cd $$i && rm -f tags; ln -s ../tags tags; done 28 29 30SUBDIR= include stand 31 32.include <bsd.subdir.mk> 33