Home | History | Annotate | Line # | Download | only in mac68k
Makefile revision 1.8
      1  1.8    lukem #	$NetBSD: Makefile,v 1.8 2003/01/06 17:40:36 lukem Exp $
      2  1.2      cgd 
      3  1.4  mycroft # Makefile for mac68k tags file and boot blocks
      4  1.1   briggs 
      5  1.4  mycroft # Find where m68k source files are for inclusion in tags
      6  1.4  mycroft .include <../m68k/Makefile.inc>
      7  1.1   briggs 
      8  1.6    perry TMAC68K=${SYSDIR}/arch/mac68k/tags
      9  1.6    perry SMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.[ch] ${SYSDIR}/arch/mac68k/include/*.h \
     10  1.6    perry 	${SYSDIR}/arch/mac68k/nubus/*.[ch] ${SYSDIR}/arch/mac68k/obio/*.[ch] \
     11  1.6    perry 	${SYSDIR}/arch/mac68k/dev/*.[ch]
     12  1.6    perry AMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.s ${SYSDIR}/arch/mac68k/dev/*.s
     13  1.1   briggs 
     14  1.4  mycroft # Directories in which to place tags links
     15  1.6    perry DMAC68K=mac68k dev include nubus obio
     16  1.1   briggs 
     17  1.4  mycroft .include "../../kern/Make.tags.inc"
     18  1.1   briggs 
     19  1.1   briggs tags:
     20  1.4  mycroft 	-ctags -wdtf ${TMAC68K} ${SMAC68K} ${SM68K} ${COMM}
     21  1.4  mycroft 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} ${AM68K} | \
     22  1.1   briggs 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     23  1.1   briggs 	    >> ${TMAC68K}
     24  1.1   briggs 	sort -o ${TMAC68K} ${TMAC68K}
     25  1.1   briggs 
     26  1.1   briggs links:
     27  1.1   briggs 	-for i in ${DMAC68K}; do \
     28  1.6    perry 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     29  1.1   briggs 
     30  1.1   briggs 
     31  1.8    lukem SUBDIR=	compile include
     32  1.4  mycroft 
     33  1.4  mycroft .include <bsd.subdir.mk>
     34