1#         $NetBSD: Makefile,v 1.4 2011/04/06 01:24:43 dyoung Exp $
2
3# Makefile for algor tags file and boot blocks
4
5# Find where mips source files are for inclusion in tags
6.include <../mips/Makefile.inc>
7
8TALGOR=             ${SYSDIR}/arch/algor/tags
9SALGOR=             ${SYSDIR}/arch/algor/algor/*.[ch]
10SALGOR+=  ${SYSDIR}/arch/algor/dev/*.[ch]
11SALGOR+=  ${SYSDIR}/arch/algor/include/*.h
12SALGOR+=  ${SYSDIR}/arch/algor/isa/*.[ch]
13SALGOR+=  ${SYSDIR}/arch/algor/pci/*.[ch]
14
15AALGOR=             ${SYSDIR}/arch/algor/algor/*.S
16# Directories in which to place tags links
17DALGOR= algor include isa pci
18
19.include "../../kern/Make.tags.inc"
20
21tags:
22          -rm -f ${TALGOR}
23          -echo ${SALGOR} ${SMIPS} | xargs ctags -wadtf ${TALGOR}
24          -${FINDCOMM} | xargs ctags -wadtf ${TALGOR}
25          egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
26              ${TOOL_SED} -e \
27                    "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3       \1        /^\2(\3\4$$/;" \
28              >> ${TALGOR}
29          sort -o ${TALGOR} ${TALGOR}
30
31links:
32          -for i in ${DALGOR}; do \
33              cd $$i && rm -f tags; ln -s ../tags tags; done
34
35
36SUBDIR=   compile include
37
38.include <bsd.subdir.mk>
39