1 # $NetBSD: Makefile,v 1.8 2011/04/04 19:46:40 dyoung Exp $ 2 3 # Makefile for evbmips tags file and boot blocks 4 5 # Find where mips source files are for inclusion in tags 6 .include <../mips/Makefile.inc> 7 8 # XXX ! fix this 9 TEVBMIPS= ${SYSDIR}/arch/evbmips/tags 10 SEVBMIPS= ${SYSDIR}/arch/evbmips/adm5120/*.[ch] 11 SEVBMIPS+= ${SYSDIR}/arch/evbmips/alchemy/*.[ch] 12 SEVBMIPS+= ${SYSDIR}/arch/evbmips/atheros/*.[ch] 13 SEVBMIPS+= ${SYSDIR}/arch/evbmips/evbmips/*.[ch] 14 SEVBMIPS+= ${SYSDIR}/arch/evbmips/gdium/*.[ch] 15 SEVBMIPS+= ${SYSDIR}/arch/evbmips/include/*.h 16 SEVBMIPS+= ${SYSDIR}/arch/evbmips/isa/*.[ch] 17 SEVBMIPS+= ${SYSDIR}/arch/evbmips/malta/*.[ch] 18 SEVBMIPS+= ${SYSDIR}/arch/evbmips/rmixl/*.[ch] 19 AEVBMIPS= ${SYSDIR}/arch/evbmips/evbmips/*.S 20 21 # Directories in which to place tags links 22 DEVBMIPS= evbmips include isa pci 23 24 .include "../../kern/Make.tags.inc" 25 26 tags: 27 -rm -f ${TEVBMIPS} 28 -echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS} 29 -${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS} 30 egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \ 31 ${TOOL_SED} -e \ 32 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 33 >> ${TEVBMIPS} 34 sort -o ${TEVBMIPS} ${TEVBMIPS} 35 36 links: 37 -for i in ${DEVBMIPS}; do \ 38 cd $$i && rm -f tags; ln -s ../tags tags; done 39 40 41 SUBDIR= compile include 42 43 .include <bsd.subdir.mk> 44