Makefile revision 1.7
11.7Sapb# $NetBSD: Makefile,v 1.7 2008/10/25 22:27:37 apb Exp $ 21.1Ssimonb 31.1Ssimonb# Makefile for evbmips tags file and boot blocks 41.1Ssimonb 51.1Ssimonb# Find where mips source files are for inclusion in tags 61.1Ssimonb.include <../mips/Makefile.inc> 71.1Ssimonb 81.1Ssimonb# XXX ! fix this 91.3SdyoungTEVBMIPS= ${SYSDIR}/arch/evbmips/tags 101.3SdyoungSEVBMIPS= ${SYSDIR}/arch/evbmips/evbmips/*.[ch] \ 111.3Sdyoung ${SYSDIR}/arch/evbmips/include/*.h \ 121.3Sdyoung ${SYSDIR}/arch/evbmips/isa/*.[ch] 131.3SdyoungAEVBMIPS= ${SYSDIR}/arch/evbmips/evbmips/*.S 141.1Ssimonb 151.1Ssimonb# Directories in which to place tags links 161.1SsimonbDEVBMIPS= evbmips include isa pci 171.1Ssimonb 181.1Ssimonb.include "../../kern/Make.tags.inc" 191.1Ssimonb 201.1Ssimonbtags: 211.5Sdyoung -rm -f ${TEVBMIPS} 221.5Sdyoung -echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS} 231.5Sdyoung -${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS} 241.1Ssimonb egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \ 251.7Sapb ${TOOL_SED} -e \ 261.7Sapb "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 271.3Sdyoung >> ${TEVBMIPS} 281.1Ssimonb sort -o ${TEVBMIPS} ${TEVBMIPS} 291.1Ssimonb 301.1Ssimonblinks: 311.1Ssimonb -for i in ${DEVBMIPS}; do \ 321.1Ssimonb cd $$i && rm -f tags; ln -s ../tags tags; done 331.1Ssimonb 341.1Ssimonb 351.2SlukemSUBDIR= compile include 361.1Ssimonb 371.1Ssimonb.include <bsd.subdir.mk> 38