Home | History | Annotate | Line # | Download | only in sparc64
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 1999/05/09 19:24:19 eeh Exp $
      2 
      3 # Makefile for sparc64 tags file and boot blocks
      4 
      5 TSPARC64=	../sparc64/tags
      6 SSPARC64=	../sparc64/dev/*.[ch] ../sparc64/fpu/*.[ch] \
      7 	../sparc64/include/*.[ch] ../sparc64/sparc64/*.[ch]
      8 ASPARC64=	../sparc64/sparc64/*.s
      9 # CSPARC64=	../../compat/*/*.[ch]
     10 
     11 # Directories in which to place tags links
     12 DSPARC64=	conf dev fpu include sparc64
     13 
     14 SYSDIR=		../../
     15 .include "../../kern/Make.tags.inc"
     16 
     17 tags:
     18 	-ctags -wdtf ${TSPARC64} ${SSPARC64} ${COMM}
     19 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC64} | \
     20 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     21 	    >> tags
     22 	sort -o ${TSPARC64} ${TSPARC64}
     23 
     24 .ifmake TAGS
     25 COMM!=  find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print 
     26 .endif
     27 
     28 TAGS:
     29 	etags  ${SSPARC64} ${COMM} ${CSPARC64} "--regex=/ENTRY(.*)/" \
     30 		"--regex=/FUNC(.*)/" "--regex=/SYSCALL(.*)/" ${ASPARC64}
     31 
     32 links:
     33 	-for i in ${DSPARC64}; do \
     34 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     35 
     36 
     37 SUBDIR= include stand
     38 
     39 .include <bsd.subdir.mk>
     40