Home | History | Annotate | Line # | Download | only in i386
Makefile revision 1.31
      1 #	$NetBSD: Makefile,v 1.31 2008/01/10 07:35:09 dyoung Exp $
      2 
      3 # Makefile for i386 tags file and boot blocks
      4 
      5 TI386=	${SYSDIR}/arch/i386/tags
      6 SI386=	${SYSDIR}/arch/i386/acpi/*.[ch] \
      7 	${SYSDIR}/arch/i386/eisa/*.[ch] \
      8 	${SYSDIR}/arch/i386/i386/*.[ch] \
      9 	${SYSDIR}/arch/i386/include/*.h \
     10 	${SYSDIR}/arch/i386/isa/*.[ch] \
     11 	${SYSDIR}/arch/i386/pci/*.[ch] \
     12 	${SYSDIR}/arch/i386/pnpbios/*.[ch] \
     13 	${SYSDIR}/contrib/dev/ath/*.[ch] \
     14 	${SYSDIR}/contrib/dev/ath/netbsd/*.[ch] \
     15 	${SYSDIR}/contrib/dev/ath/public/*.[ch]
     16 SI386+=	${SYSDIR}/arch/x86/x86/*.[ch] ${SYSDIR}/arch/x86/include/*.h \
     17 	${SYSDIR}/arch/x86/isa/*.[ch] \
     18 	${SYSDIR}/arch/x86/pci/*.[ch]
     19 AI386=	${SYSDIR}/arch/i386/i386/*.[sS]
     20 
     21 # Directories in which to place tags links
     22 DI386=	i386 eisa isa include pci
     23 
     24 .include "../../kern/Make.tags.inc"
     25 
     26 tags:
     27 	-rm -f ${TI386}
     28 	-echo ${SI386} | xargs ctags -wadtf ${TI386}
     29 	-${FINDCOMM} | xargs ctags -wadtf ${TI386}
     30 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
     31 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
     32 		>> ${TI386}
     33 	sort -o ${TI386} ${TI386}
     34 
     35 links:
     36 	-for i in ${DI386}; do \
     37 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     38 
     39 
     40 SUBDIR=	compile include stand ../x86/include
     41 
     42 .include <bsd.subdir.mk>
     43