Home | History | Annotate | Line # | Download | only in shark
Makefile revision 1.3.38.1
      1  1.3.38.1      tls #	$NetBSD: Makefile,v 1.3.38.1 2014/08/20 00:03:23 tls Exp $
      2       1.1  thorpej 
      3       1.1  thorpej # Makefile for shark tags file and boot blocks
      4       1.1  thorpej 
      5       1.1  thorpej TSHARK=	../shark/tags
      6       1.1  thorpej SSHARK=	../shark/shark/*.[ch] ../shark/include/*.h \
      7       1.1  thorpej 	../shark/isa/*.[ch] ../shark/ofw/*.[ch]
      8       1.1  thorpej ASHARK=	../shark/isa/*.S ../shark/shark/*.S
      9       1.1  thorpej 
     10       1.1  thorpej # Directories in which to place tags links
     11       1.1  thorpej DSHARK=	isa include ofw
     12       1.1  thorpej 
     13       1.1  thorpej .include "../../kern/Make.tags.inc"
     14       1.1  thorpej 
     15       1.1  thorpej tags:
     16       1.1  thorpej 	-ctags -wdtf ${TSHARK} ${SSHARK} ${COMM}
     17       1.1  thorpej 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASHARK} | \
     18       1.3      apb 	    ${TOOL_SED} -e \
     19       1.3      apb 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     20       1.1  thorpej 	    >> ${TSHARK}
     21       1.1  thorpej 	sort -o ${TSHARK} ${TSHARK}
     22       1.1  thorpej 
     23       1.1  thorpej links:
     24       1.1  thorpej 	-for i in ${DSHARK}; do \
     25       1.1  thorpej 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     26       1.1  thorpej 
     27       1.1  thorpej 
     28  1.3.38.1      tls SUBDIR=	compile include
     29  1.3.38.1      tls #SUBDIR+=	stand
     30       1.1  thorpej 
     31       1.1  thorpej .include <bsd.subdir.mk>
     32