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