Home | History | Annotate | Line # | Download | only in algor
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2003/01/06 17:40:21 lukem Exp $
      2 
      3 # Makefile for algor tags file and boot blocks
      4 
      5 # Find where mips source files are for inclusion in tags
      6 .include <../mips/Makefile.inc>
      7 
      8 TALGOR= ../algor/tags
      9 SALGOR= ../algor/algor/*.[ch] ../algor/include/*.h ../algor/isa/*.[ch] \
     10 	../algor/pci/*.[ch]
     11 AALGOR= ../algor/algor/*.S
     12 
     13 # Directories in which to place tags links
     14 DALGOR= algor include isa pci
     15 
     16 .include "../../kern/Make.tags.inc"
     17 
     18 tags:
     19 	-ctags -wdtf ${TALGOR} ${SALGOR} ${SMIPS} ${COMM}
     20 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
     21 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     22 	    >> ${TARC}
     23 	sort -o ${TALGOR} ${TALGOR}
     24 
     25 links:
     26 	-for i in ${DALGOR}; do \
     27 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     28 
     29 
     30 SUBDIR=	compile include
     31 
     32 .include <bsd.subdir.mk>
     33