1 # $NetBSD: Makefile,v 1.5 1996/09/29 23:55:05 jonathan Exp $ 2 # @(#)Makefile 7.3 (Berkeley) 6/9/91 3 4 # Makefile for pmax tags file and boot blocks 5 6 NOPROG= noprog 7 NOMAN= noman 8 9 # Find where mips source fils are for inclusion in tags 10 .include <../mips/Makefile.inc> 11 12 SUBDIR= stand 13 14 TPMAX= ../pmax/tags 15 SPMAX= ../pmax/pmax/*.[ch] ../pmax/include/*.h \ 16 ../pmax/dev/*.[ch] ../pmax/tc/*.[ch] 17 APMAX= ../pmax/pmax/*.S 18 19 # Directories in which to place pmax (mips) tags links 20 DPMAX= dev tc include 21 22 tags: ${COMM} ${SPMAX} ${SMIPS} ${APMAX} ${AMIPS} 23 -ctags -dtf ${TPMAX} ${COMM} ${SPMAX} ${SMIPS} 24 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \ 25 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 26 >> ${TPMAX} 27 sort -o ${TPMAX} ${TPMAX} 28 29 links: 30 -for i in ${DPMAX}; do \ 31 cd $$i && rm -f tags; ln -s ../tags tags; done 32 33 obj: _SUBDIRUSE 34 35 .include <bsd.prog.mk> 36