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