1 # $NetBSD: Makefile,v 1.5 2008/01/10 07:34:02 dyoung Exp $ 2 3 # Makefile for evbarm tags file and boot blocks 4 5 TEVBARM= ${SYSDIR}/arch/evbarm/tags 6 SEVBARM= ${SYSDIR}/arch/arm/xscale/*.[ch] \ 7 ${SYSDIR}/arch/evbarm/dev/*.[ch] \ 8 ${SYSDIR}/arch/evbarm/ifpga/*.[ch] \ 9 ${SYSDIR}/arch/evbarm/include/*.h \ 10 ${SYSDIR}/arch/evbarm/integrator/*.[ch] \ 11 ${SYSDIR}/arch/evbarm/iq31244/*.[ch] \ 12 ${SYSDIR}/arch/evbarm/iq80310/*.[ch] \ 13 ${SYSDIR}/arch/evbarm/iq80321/*.[ch] 14 AEVBARM= ${SYSDIR}/arch/evbarm/integrator/*.S 15 16 # Directories in which to place tags links 17 DEVBARM= include 18 19 .include "../../kern/Make.tags.inc" 20 21 tags: 22 -rm -f ${TEVBARM} 23 -echo ${SEVBARM} | xargs ctags -wadtf ${TEVBARM} 24 -${FINDCOMM} | xargs ctags -wadtf ${TEVBARM} 25 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBARM} | \ 26 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 27 >> ${TEVBARM} 28 sort -o ${TEVBARM} ${TEVBARM} 29 30 links: 31 -for i in ${DEVBARM}; do \ 32 cd $$i && rm -f tags; ln -s ../tags tags; done 33 34 35 SUBDIR= compile include stand 36 37 .include <bsd.subdir.mk> 38