xref: /netbsd-src/sys/arch/arc/Makefile (revision 5e4c038a45edbc7d63b7c2daa76e29f88b64a4e3)
1#	$NetBSD: Makefile,v 1.7 2000/12/24 09:25:24 ur Exp $
2#	$OpenBSD: Makefile,v 1.5 1997/05/19 10:34:53 pefo Exp $
3#	from: @(#)Makefile	8.1 (Berkeley) 6/16/93
4
5# Makefile for arc tags file and boot blocks
6
7# Find where mips source files are for inclusion in tags
8.include <../mips/Makefile.inc>
9
10TARC=	../arc/tags
11SARC=	../arc/algor/*.[ch] ../arc/arc/*.[ch] ../arc/dev/*.[ch] \
12	../arc/dti/*.[ch] ../arc/include/*.h ../arc/isa/*.[ch] \
13	../arc/pci/*.[ch] ../arc/jazz/*.[ch]
14AARC=	../arc/arc/*.S
15
16# Directories in which to place tags links
17DARC=	algor arc dev dti include isa pci jazz
18
19.include "../../kern/Make.tags.inc"
20
21tags:
22	-ctags -wdtf ${TARC} ${SARC} ${SMIPS} ${COMM}
23	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AARC} ${AMIPS} | \
24	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
25	    >> ${TARC}
26	sort -o ${TARC} ${TARC}
27
28links:
29	-for i in ${DARC}; do \
30	    cd $$i && rm -f tags; ln -s ../tags tags; done
31
32
33SUBDIR=	include stand
34
35.include <bsd.subdir.mk>
36