Home | History | Annotate | Line # | Download | only in pmax
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 1997/10/11 08:42:09 mycroft Exp $
      2 
      3 NOOBJ=
      4 
      5 # Makefile for pmax tags file and boot blocks
      6 
      7 SUBDIR=	stand
      8 
      9 # Find where mips source fils are for inclusion in tags
     10 .include <../mips/Makefile.inc>
     11 
     12 TPMAX=	../pmax/tags
     13 SPMAX=	../pmax/pmax/*.[ch] ../pmax/include/*.h \
     14 	../pmax/dev/*.[ch] ../pmax/tc/*.[ch]
     15 APMAX=	../pmax/pmax/*.S
     16 
     17 # Directories in which to place pmax (mips) tags links
     18 DPMAX=	dev tc include
     19 
     20 .include "../../kern/Make.tags.inc"
     21 
     22 tags:
     23 	-ctags -wdtf ${TPMAX} ${SPMAX} ${SMIPS} ${COMM}
     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 .include <bsd.subdir.mk>
     34