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