Home | History | Annotate | Line # | Download | only in sparc64
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 2001/09/13 23:19:59 eeh Exp $
      2 
      3 # Makefile for sparc64 tags file and boot blocks
      4 
      5 TSPARC64=	../sparc64/tags
      6 SSPARC64=	../sparc64/dev/*.[ch] ../sparc/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 .include "../../kern/Make.tags.inc"
     15 
     16 tags:
     17 	-ctags -wdtf ${TSPARC64} ${SSPARC64} ${COMM}
     18 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC64} | \
     19 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     20 	    >> tags
     21 	sort -o ${TSPARC64} ${TSPARC64}
     22 
     23 SYSDIR?= ../..
     24 .ifmake TAGS
     25 COMM!=  find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print 
     26 .endif
     27 
     28 TAGS: ${SSPARC64} ${COMM} ${CSPARC64} ${ASPARC64}
     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