Home | History | Annotate | Line # | Download | only in amd64
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2008/10/26 02:14:59 mrg 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 	    ${TOOL_SED} -e \
     22 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     23 		>> ${TAMD64}
     24 	sort -o ${TAMD64} ${TAMD64}
     25 
     26 links:
     27 	-for i in ${DAMD64}; do \
     28 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     29 
     30 
     31 SUBDIR=	compile include ../x86/include ../xen/include \
     32 	../i386/include ../i386/stand
     33 
     34 .include <bsd.subdir.mk>
     35