1 1.1 pooka # $NetBSD: Makefile,v 1.1 2011/01/26 01:18:49 pooka Exp $ 2 1.1 pooka 3 1.1 pooka # Makefile for emips tags file and boot blocks 4 1.1 pooka 5 1.1 pooka # Find where mips source files are for inclusion in tags 6 1.1 pooka .include <../mips/Makefile.inc> 7 1.1 pooka 8 1.1 pooka TEMIPS= ../emips/tags 9 1.1 pooka SEMIPS= ../emips/emips/*.[ch] ../emips/include/*.h \ 10 1.1 pooka ../emips/dev/*.[ch] ../emips/tc/*.[ch] 11 1.1 pooka AEMIPS= ../emips/emips/*.S 12 1.1 pooka 13 1.1 pooka # Directories in which to place tags links 14 1.1 pooka DEMIPS= dev tc include 15 1.1 pooka 16 1.1 pooka .include "../../kern/Make.tags.inc" 17 1.1 pooka 18 1.1 pooka tags: 19 1.1 pooka -ctags -wdtf ${TEMIPS} ${SEMIPS} ${SMIPS} ${COMM} 20 1.1 pooka egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEMIPS} ${AMIPS} | \ 21 1.1 pooka sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 22 1.1 pooka >> ${TEMIPS} 23 1.1 pooka sort -o ${TEMIPS} ${TEMIPS} 24 1.1 pooka 25 1.1 pooka links: 26 1.1 pooka -for i in ${DEMIPS}; do \ 27 1.1 pooka cd $$i && rm -f tags; ln -s ../tags tags; done 28 1.1 pooka 29 1.1 pooka 30 1.1 pooka SUBDIR= compile include stand 31 1.1 pooka 32 1.1 pooka .include <bsd.subdir.mk> 33