Home | History | Annotate | Line # | Download | only in amd64
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 2008/02/17 16:23:12 bouyer Exp $
      2 
      3 # Makefile for amd64 tags file and boot blocks
      4 
      5 TAMD64=		${SYSDIR}/arch/amd64/tags
      6 SAMD64=		${SYSDIR}/arch/amd64/amd64/*.[ch] \
      7 		${SYSDIR}/arch/amd64/include/*.h \
      8 		${SYSDIR}/arch/amd64/isa/*.[ch] \
      9 		${SYSDIR}/arch/amd64/pci/*.[ch]
     10 AAMD64=		${SYSDIR}/arch/amd64/amd64/*.s ${SYSDIR}/arch/amd64/isa/*.s
     11 
     12 # Directories in which to place tags links
     13 DAMD64=		amd64 isa include pci
     14 
     15 .include "../../kern/Make.tags.inc"
     16 
     17 tags:
     18 	rm -f ${TAMD64}
     19 	-echo ${SAMD64} ${COMM} | xargs ctags -wadtf ${TAMD64}
     20 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \
     21 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     22 		>> ${TAMD64}
     23 	sort -o ${TAMD64} ${TAMD64}
     24 
     25 links:
     26 	-for i in ${DAMD64}; do \
     27 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     28 
     29 
     30 SUBDIR=	compile include ../x86/include ../xen/include ../i386/stand
     31 
     32 .include <bsd.subdir.mk>
     33