summaryrefslogtreecommitdiff
path: root/sys/arch/arc/Makefile
blob: 6bf5aeaf8161c2ed2a16977fb239c607dc8fd6dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#	$OpenBSD: Makefile,v 1.6 2000/03/03 00:54:45 todd Exp $
#	from: @(#)Makefile	8.1 (Berkeley) 6/16/93

# Makefile for arc links, tags file

.include "../../kern/Make.tags.inc"

SUBDIR=	stand

NOPROG=	noprog
NOOBJ=	noman

TARC=	../arc/tags
SARC=	../arc/arc/*.[ch] ../arc/dev/*.[ch] ../arc/dti/*.[ch] \
	../arc/include/*.h ../arc/isa/*.[ch] ../arc/pci/*.[ch] \
	../arc/pica/*.[ch]
AARC=	../arc/arc/*.S

DARC=	arc dev dti include isa pci pica

tags:
	-ctags -wdtf ${TARC} ${COMM} ${SARC}
	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AARC} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
		>> ${TARC}
	sort -o ${TARC} ${TARC}

links:
	-for i in ${DARC}; do \
	    cd $$i && rm -f tags; ln -s ../tags tags; done


obj:	_SUBDIRUSE

.include <bsd.prog.mk>