Home | History | Annotate | Line # | Download | only in xen
Makefile revision 1.8.2.1
      1  1.8.2.1  uebayasi #	$NetBSD: Makefile,v 1.8.2.1 2010/04/30 14:40:00 uebayasi Exp $
      2      1.7    dyoung 
      3      1.7    dyoung .include <bsd.own.mk>
      4      1.1        cl 
      5      1.1        cl # Makefile for xen tags file
      6      1.1        cl 
      7      1.1        cl .include "../../kern/Make.tags.inc"
      8      1.1        cl 
      9      1.1        cl .ifmake tags
     10      1.1        cl .include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc"
     11      1.1        cl .endif
     12      1.1        cl 
     13      1.1        cl TXEN=	${SYSDIR}/arch/xen/tags
     14      1.1        cl 
     15      1.8    dyoung SXEN!=	${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
     16      1.1        cl 		${SYSDIR}/arch/xen/conf/files.xen
     17      1.8    dyoung SXEN+=	${SYSDIR}/arch/xen/include/*.h
     18      1.8    dyoung SXEN+=	${SYSDIR}/arch/xen/include/*/*.h
     19      1.8    dyoung SXEN+=	${SYSDIR}/arch/xen/include/*/*/*.h
     20  1.8.2.1  uebayasi SXEN+=	${SYSDIR}/arch/x86/x86/*.[ch] \
     21  1.8.2.1  uebayasi 	${SYSDIR}/arch/x86/acpi/*.[ch] \
     22  1.8.2.1  uebayasi 	${SYSDIR}/arch/x86/include/*.h \
     23  1.8.2.1  uebayasi 	${SYSDIR}/arch/x86/isa/*.[ch] \
     24  1.8.2.1  uebayasi 	${SYSDIR}/arch/x86/pci/*.[ch]
     25      1.8    dyoung AXEN!=	${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
     26      1.1        cl 		${SYSDIR}/arch/xen/conf/files.xen
     27  1.8.2.1  uebayasi #AXEN+=	${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
     28      1.1        cl 
     29      1.1        cl # Directories in which to place tags links
     30      1.1        cl DXEN=	xen ${XEN_MACHINE_ARCHS} include
     31      1.1        cl 
     32      1.1        cl tags:
     33      1.6    dyoung 	-rm -f ${TXEN}
     34      1.6    dyoung 	-echo ${SXEN} | xargs ctags -wadtf ${TXEN}
     35      1.6    dyoung 	${FINDCOMM} | xargs ctags -wadtf ${TXEN}
     36      1.1        cl 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
     37      1.7    dyoung 	    ${TOOL_SED} -e \
     38      1.8    dyoung 	"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
     39      1.1        cl 		>> ${TXEN}
     40      1.1        cl 	sort -o ${TXEN} ${TXEN}
     41      1.1        cl 
     42      1.1        cl links:
     43      1.1        cl 	-for i in ${DXEN}; do \
     44      1.1        cl 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     45      1.1        cl 
     46      1.1        cl 
     47      1.2    bouyer SUBDIR=	compile include
     48      1.1        cl 
     49      1.1        cl .include <bsd.subdir.mk>
     50