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