Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / next68k / Makefile
blobf8b33645a457c97a2cc2657908b1aeaf393d4f48
1 # $NetBSD: Makefile,v 1.6 2003/01/06 17:40:42 lukem Exp $
3 # Makefile for next68k tags file and boot blocks
5 # Find where m68k source files are for inclusion in tags
6 .include <../m68k/Makefile.inc>
8 ENEXT68K= ../next68k/TAGS
9 TNEXT68K= ../next68k/tags
10 SNEXT68K= ../next68k/next68k/*.[ch] ../next68k/include/*.h \
11 ../next68k/dev/*.[ch]
12 ANEXT68K= ../next68k/next68k/*.s
14 # Directories in which to place tags links
15 DNEXT68K= dev next68k include
17 .include "../../kern/Make.tags.inc"
19 tags:
20 -ctags -wdtf ${TNEXT68K} ${SNEXT68K} ${SM68K} ${COMM}
21 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEXT68K} ${AM68K} | \
22 ${TOOL_SED} -e \
23 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
24 >> ${TNEXT68K}
25 sort -o ${TNEXT68K} ${TNEXT68K}
27 .ifmake TAGS
28 COMM!= find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print
29 .endif
31 TAGS:
32 emacs-etags -o ${ENEXT68K} ${SNEXT68K} ${SM68K} ${COMM}
33 emacs-etags -a -l none \
34 --regex='/^\(ALT\)?ENTRY\(_NOPROFILE\)?(\([a-zA-Z0-9_]*\))\|^GLOBAL(\([a-zA-Z0-9_]*\))/\3\4/' \
35 -o ${ENEXT68K} ${ANEXT68K} ${AM68K}
37 links:
38 -for i in ${DNEXT68K}; do \
39 cd $$i && rm -f tags; ln -s ../tags tags; done
42 SUBDIR= compile include stand
44 .include <bsd.subdir.mk>