xref: /netbsd/sys/arch/algor/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.1 2001/05/28 16:22:13 thorpej 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= ../algor/tags
9SALGOR= ../algor/algor/*.[ch] ../algor/include/*.h ../algor/isa/*.[ch] \
10	../algor/pci/*.[ch]
11AALGOR= ../algor/algor/*.S
12
13# Directories in which to place tags links
14DALGOR= algor include isa pci
15
16.include "../../kern/Make.tags.inc"
17
18tags:
19	-ctags -wdtf ${TALGOR} ${SALGOR} ${SMIPS} ${COMM}
20	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
21	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
22	    >> ${TARC}
23	sort -o ${TALGOR} ${TALGOR}
24
25links:
26	-for i in ${DALGOR}; do \
27	    cd $$i && rm -f tags; ln -s ../tags tags; done
28
29
30SUBDIR=	include
31
32.include <bsd.subdir.mk>
33