summaryrefslogtreecommitdiff
path: root/sys/arch/netwinder/Makefile
blob: e8de4fef16e4de29af9402ece34da629e75cdb11 (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
#	$NetBSD: Makefile,v 1.4 2011/04/04 19:47:00 dyoung Exp $

# Makefile for netwinder tags file and boot blocks

.include <../arm/Makefile.inc>

TNETWINDER=	${SYSDIR}/arch/netwinder/tags
SNETWINDER=	${SYSDIR}/arch/netwinder/netwinder/*.[ch] \
		${SYSDIR}/arch/netwinder/include/*.h \
		${SYSDIR}/arch/netwinder/pci/*.[ch]
ANETWINDER=	${SYSDIR}/arch/netwinder/netwinder/*.S

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

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

tags:
	-rm -f ${TNETWINDER}
	-echo ${SNETWINDER} ${SARM} | xargs ctags -wadtf ${TNETWINDER}
	-${FINDCOMM} | xargs ctags -wadtf ${TNETWINDER}
	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANETWINDER} ${AARM} | \
	    ${TOOL_SED} -e \
		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
	    >> ${TNETWINDER}
	sort -o ${TNETWINDER} ${TNETWINDER}

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


SUBDIR=	compile include

.include <bsd.subdir.mk>