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