Home | History | Annotate | Line # | Download | only in arc
      1 #	$NetBSD: Makefile,v 1.12 2011/04/03 23:14:12 dyoung Exp $
      2 #	$OpenBSD: Makefile,v 1.5 1997/05/19 10:34:53 pefo Exp $
      3 #	from: @(#)Makefile	8.1 (Berkeley) 6/16/93
      4 
      5 # Makefile for arc tags file and boot blocks
      6 
      7 # Find where mips source files are for inclusion in tags
      8 .include <../mips/Makefile.inc>
      9 
     10 TARC=	${SYSDIR}/arch/arc/tags
     11 SARC=	${SYSDIR}/arch/arc/arc/*.[ch] ${SYSDIR}/arch/arc/dev/*.[ch] \
     12 	${SYSDIR}/arch/arc/dti/*.[ch] ${SYSDIR}/arch/arc/include/*.h \
     13 	${SYSDIR}/arch/arc/isa/*.[ch] \
     14 	${SYSDIR}/arch/arc/pci/*.[ch] ${SYSDIR}/arch/arc/jazz/*.[ch]
     15 AARC=	${SYSDIR}/arch/arc/arc/*.S
     16 
     17 # Directories in which to place tags links
     18 DARC=	arc dev dti include isa pci jazz
     19 
     20 .include "../../kern/Make.tags.inc"
     21 
     22 tags:
     23 	-rm -f ${TARC}
     24 	-echo ${SARC} ${SMIPS} | xargs ctags -wadtf ${TARC}
     25 	-${FINDCOMM} | xargs ctags -wadtf ${TARC}
     26 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AARC} ${AMIPS} | \
     27 	    ${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     28 	    >> ${TARC}
     29 	sort -o ${TARC} ${TARC}
     30 
     31 links:
     32 	-for i in ${DARC}; do \
     33 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     34 
     35 
     36 SUBDIR=	compile include stand
     37 
     38 .include <bsd.subdir.mk>
     39