1 1.2.16.1 rmind # $NetBSD: Makefile,v 1.2.16.1 2011/04/21 01:41:08 rmind Exp $ 2 1.1 uwe 3 1.1 uwe # Makefile for landisk tags file and boot blocks 4 1.1 uwe 5 1.2.16.1 rmind # Find where SH3 source files are for inclusion in tags 6 1.2.16.1 rmind .include <../sh3/Makefile.inc> 7 1.2.16.1 rmind 8 1.2.16.1 rmind TLANDISK= ${SYSDIR}/arch/landisk/tags 9 1.2.16.1 rmind SLANDISK= ${SYSDIR}/arch/landisk/landisk/*.[ch] 10 1.2.16.1 rmind SLANDISK+= ${SYSDIR}/arch/landisk/include/*.h 11 1.2.16.1 rmind SLANDISK+= ${SYSDIR}/arch/landisk/dev/*.[ch] 12 1.2.16.1 rmind 13 1.2.16.1 rmind ALANDISK= ${SYSDIR}/arch/landisk/landisk/*.S 14 1.1 uwe 15 1.1 uwe # Directories in which to place tags links 16 1.1 uwe DLANDISK= landisk include 17 1.1 uwe 18 1.1 uwe .include "../../kern/Make.tags.inc" 19 1.1 uwe 20 1.1 uwe tags: 21 1.2.16.1 rmind -rm -f ${TLANDISK} 22 1.2.16.1 rmind -echo ${SLANDISK} ${SSH3} | xargs ctags -wadtf ${TLANDISK} 23 1.2.16.1 rmind -${FINDCOMM} | xargs ctags -wadtf ${TLANDISK} 24 1.2.16.1 rmind egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} ${ASH3} | \ 25 1.2 apb ${TOOL_SED} -e \ 26 1.2.16.1 rmind "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 27 1.2.16.1 rmind >> ${TLANDISK} 28 1.1 uwe sort -o ${TLANDISK} ${TLANDISK} 29 1.1 uwe 30 1.1 uwe links: 31 1.1 uwe -for i in ${DLANDISK}; do \ 32 1.2.16.1 rmind cd $$i && rm -f tags; ln -s ../tags tags; done 33 1.2.16.1 rmind 34 1.1 uwe 35 1.2.16.1 rmind SUBDIR= compile include stand 36 1.1 uwe 37 1.1 uwe .include <bsd.subdir.mk> 38