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