summaryrefslogtreecommitdiff
path: root/sys/arch/cobalt/Makefile
blob: 24ef9ea97f7bd20edb2e6ec6bf2104a4e7001b01 (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
36
#	$NetBSD: Makefile,v 1.6 2011/04/04 19:45:00 dyoung Exp $

# Makefile for cobalt tags file

# Find where mips source files are for inclusion in tags
.include <../mips/Makefile.inc>

TCOBALT=	${SYSDIR}/arch/cobalt/tags
SCOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.[ch] \
		${SYSDIR}/arch/cobalt/include/*.h \
		${SYSDIR}/arch/cobalt/dev/*.[ch] \
		${SYSDIR}/arch/cobalt/pci/*.[ch]
ACOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.S

# Directories in which to place tags links
DCOBALT=	pci include

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

tags:
	-rm -f ${TCOBALT}
	-echo ${SCOBALT} ${SMIPS} | xargs ctags -wadtf ${TCOBALT}
	-${FINDCOMM} | xargs ctags -wadtf ${TCOBALT}
	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACOBALT} ${AMIPS} | \
	    ${TOOL_SED} -e \
		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
		>> ${TCOBALT}
	sort -o ${TCOBALT} ${TCOBALT}

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

SUBDIR=	compile include stand

.include <bsd.subdir.mk>