summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/Makefile
blob: e985931ee82fe536ca0377dfe370de7716d4616a (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
#	$OpenBSD: Makefile,v 1.9 2005/05/06 11:16:47 pedro Exp $

S=${.CURDIR}/../..
.include "$S/kern/Make.tags.inc"

.if ${MACHINE_ARCH} == "m68k"
SUBDIR+= 060sp fpsp
.endif

TM68K=	$S/arch/m68k/tags
SM68K=	$S/arch/m68k/m68k/*.[ch] \
	$S/arch/m68k/include/*.h
AM68K=	$S/arch/m68k/m68k/*.[sS]  \
	$S/lib/libkern/arch/m68k/*.[sS] \
	$S/arch/m68k/fpsp/*.sa    \
	$S/arch/m68k/060sp/*.[sS] \
	$S/arch/m68k/060sp/*.sa   \

# Directories in which to place m68k tags links
DM68K=	conf m68k include pci

tags:
	-ctags -wdtf ${TM68K} ${COMM} ${SM68K}
	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AM68K} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
		>> ${TM68K}
	sort -o ${TM68K} ${TM68K}

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


.include <bsd.subdir.mk>