xref: /netbsd/sys/arch/x68k/Makefile (revision cf598012)
1#	$NetBSD: Makefile,v 1.10 2008/12/20 13:20:58 isaki Exp $
2
3# Makefile for x68k tags file and boot blocks
4
5# Find where m68k source files are for inclusion in tags
6.include <../m68k/Makefile.inc>
7
8TX68K=	../x68k/tags
9SX68K=	../x68k/x68k/*.[ch] ../x68k/include/*.h \
10	../x68k/dev/*.[ch]
11AX68K=	../x68k/x68k/*.s
12
13# Directories in which to place tags links
14DX68K=	x68k dev include
15
16.include "../../kern/Make.tags.inc"
17
18tags:
19	-ctags -wdtf ${TX68K} ${SX68K} ${SM68K} ${COMM}
20	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AX68K} ${AM68K} | \
21	    ${TOOL_SED} -e \
22		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
23	    >> ${TX68K}
24	sort -o ${TX68K} ${TX68K}
25
26links:
27	-for i in ${DX68K}; do \
28	    cd $$i && rm -f tags; ln -s ../tags tags; done
29
30
31SUBDIR=	compile include usr.bin stand
32
33.include <bsd.subdir.mk>
34