diff --git a/sys/arch/arm32/Makefile b/sys/arch/arm32/Makefile index 4cad06639f5f..06ed8f300c05 100644 --- a/sys/arch/arm32/Makefile +++ b/sys/arch/arm32/Makefile @@ -1,30 +1,29 @@ -# $NetBSD: Makefile,v 1.3 1997/07/16 02:46:37 mark Exp $ -# @(#)Makefile 7.3 (Berkeley) 6/9/91 +# $NetBSD: Makefile,v 1.4 1997/10/11 09:10:25 mycroft Exp $ # Makefile for arm32 tags file and boot blocks -NOPROG= noprog -NOMAN= noman - -#SUBDIR= - TARM32= ../arm32/tags -SARM32= ../arm32/arm32/*.[ch] ../arm32/include/*.h ../arm32/dev/*.[ch] \ - ../arm32/podulebus/*.[ch] ../arm32/mainbus/*.[ch] +SARM32= ../arm32/arm32/*.[ch] ../arm32/include/*.h \ + ../arm32/dev/*.[ch] ../arm32/podulebus/*.[ch] ../arm32/mainbus/*.[ch] AARM32= ../arm32/arm32/*.s -# Directories in which to place arm32 tags links +# Directories in which to place tags links DARM32= dev mainbus podulebus include +.include "../../kern/Make.tags.inc" + tags: - -ctags -dtf ${TARM32} ${COMM} ${SARM32} + -ctags -wdtf ${TARM32} ${SARM32} ${COMM} egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AARM32} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> ${TARM32} + >> ${TARM32} sort -o ${TARM32} ${TARM32} links: -for i in ${DARM32}; do \ cd $$i && rm -f tags; ln -s ../tags tags; done -.include + +SUBDIR= + +.include diff --git a/sys/arch/atari/Makefile b/sys/arch/atari/Makefile index a67184171e5c..8a4fa2930a86 100644 --- a/sys/arch/atari/Makefile +++ b/sys/arch/atari/Makefile @@ -1,44 +1,32 @@ -# $NetBSD: Makefile,v 1.2 1996/03/18 21:08:36 leo Exp $ -# -# from: @(#)Makefile 7.3 (Berkeley) 6/9/91 -# -S=${BSDSRCDIR}/sys -COMM= $S/vm/*.[ch] $S/ufs/*.[ch] $S/sys/*.h $S/compat/sunos/*.[ch] \ - $S/nfs/*.[ch] $S/netns/*.[ch] $S/netiso/*.[ch] \ - $S/netiso/xebec/*.[ch] $S/netinet/*.[ch] $S/netccitt/*.[ch] \ - $S/net/*.[ch] $S/miscfs/*/*.[ch] $S/kern/*.[ch] $S/dev/*.[ch] \ - $S/scsi/*.[ch] $S/lib/libkern/m68k/*.[ch] $S/lib/libkern/*.[ch] +# $NetBSD: Makefile,v 1.3 1997/10/11 09:10:26 mycroft Exp $ -SUBDIR= stand +# Makefile for atari tags file and boot blocks -# Makefile for atari tags file +# Find where m68k source files are for inclusion in tags +.include <../m68k/Makefile.inc> -TATARI= $S/arch/atari/tags -SATARI= $S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \ - $S/arch/atari/atari/*.[ch] $S/arch/atari/include/*.h \ - $S/arch/atari/dev/*.[ch] -AATARI= $S/arch/m68k/m68k/*.s $S/arch/atari/atari/*.s +TATARI= ../atari/tags +SATARI= ../atari/atari/*.[ch] ../atari/include/*.h \ + ../atari/dev/*.[ch] +AATARI= ../atari/atari/*.s -# Directories in which to place atari tags links +# Directories in which to place tags links DATARI= atari dev include -TAGS: - -etags -dt ${COMM} ${SATARI} ${AATARI} - egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} | \ - sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> ${TATARI}/tags +.include "../../kern/Make.tags.inc" tags: - -ctags -dtf ${TATARI} ${COMM} ${SATARI} - egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} | \ + -ctags -wdtf ${TATARI} ${SATARI} ${SM68K} ${COMM} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} ${AM68K} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ >> ${TATARI} sort -o ${TATARI} ${TATARI} links: -for i in ${DATARI}; do \ - rm -f $$i/tags; rm -f $$i/TAGS ; \ - ln -s ../tags $$i/tags; ln -s ../TAGS $$i/TAGS; done + cd $$i && rm -f tags; ln -s ../tags tags; done + + +SUBDIR= stand .include - diff --git a/sys/arch/mac68k/Makefile b/sys/arch/mac68k/Makefile index 37f084e42df8..58c0096d5dc7 100644 --- a/sys/arch/mac68k/Makefile +++ b/sys/arch/mac68k/Makefile @@ -1,24 +1,24 @@ -# $NetBSD: Makefile,v 1.3 1996/03/27 03:56:22 scottr Exp $ +# $NetBSD: Makefile,v 1.4 1997/10/11 09:10:28 mycroft Exp $ -# @(#)Makefile 7.3 (Berkeley) 6/9/91 +# Makefile for mac68k tags file and boot blocks -# Makefile for mac68k tags file +# Find where m68k source files are for inclusion in tags +.include <../m68k/Makefile.inc> -NOPROG= noprog -NOMAN= noman +TMAC68K=../mac68k/tags +SMAC68K=../m68k/m68k/*.c ../m68k/include/*.h \ + ../mac68k/mac68k/*.[ch] ../mac68k/include/*.h \ + ../mac68k/dev/*.[ch] +AMAC68K=../mac68k/mac68k/*.s -TMAC68K= ../mac68k/tags -SMAC68K= ../m68k/m68k/*.c ../m68k/include/*.h \ - ../mac68k/mac68k/*.[ch] ../mac68k/include/*.h \ - ../mac68k/dev/*.[ch] -AMAC68K= ../m68k/m68k/*.s ../mac68k/mac68k/*.s +# Directories in which to place tags links +DMAC68K=mac68k dev include -# Directories in which to place mac68k tags links -DMAC68K= mac68k dev include +.include "../../kern/Make.tags.inc" tags: - -ctags -dtf ${TMAC68K} ${COMM} ${SMAC68K} - egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} | \ + -ctags -wdtf ${TMAC68K} ${SMAC68K} ${SM68K} ${COMM} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} ${AM68K} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ >> ${TMAC68K} sort -o ${TMAC68K} ${TMAC68K} @@ -27,5 +27,7 @@ links: -for i in ${DMAC68K}; do \ cd $$i && rm -f tags; ln -s ../tags tags; done -.include +SUBDIR= + +.include diff --git a/sys/arch/pica/Makefile b/sys/arch/pica/Makefile index f18105545f4a..689cf21713be 100644 --- a/sys/arch/pica/Makefile +++ b/sys/arch/pica/Makefile @@ -1,28 +1,32 @@ -# $NetBSD: Makefile,v 1.2 1996/07/16 23:23:55 thorpej Exp $ -# from: @(#)Makefile 8.1 (Berkeley) 6/16/93 +# $NetBSD: Makefile,v 1.3 1997/10/11 09:10:29 mycroft Exp $ -# Makefile for pica links, tags file +# Makefile for pica tags file and boot blocks + +# Find where mips source files are for inclusion in tags +.include <../mips/Makefile.inc> + +TPICA= ../pica/tags +SPICA= ../pica/pica/*.[ch] ../pica/include/*.[ch] \ + ../pica/dev/*.[ch] ../pica/ultrix/*.[ch] +APICA= ../pica/pica/*.s + +# Directories in which to place tags links +DPICA= dev dist include pica .include "../kern/Make.tags.inc" -all: - @echo "make links or tags only" - -DIRS= conf dev dist include pica - -links:: - -for i in ${DIRS}; do \ - (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done - -PICA= /sys/pica/dev/*.[ch] /sys/pica/include/*.[ch] \ - /sys/pica/pica/*.[ch] /sys/pica/ultrix/*.[ch] -APICA= /sys/pica/pica/*.s - -tags:: - -ctags -wdt ${COMM} ${PICA} - egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${APICA} | \ +tags: + -ctags -wdtf ${TPICA} ${SPICA} ${SMIPS} ${COMM} + egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${APICA} ${AMIPS} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> tags - sort -o tags tags - chown bin.wsrc tags - chmod 444 tags + >> ${TPICA} + sort -o ${TPICA} ${TPICA} + +links: + -for i in ${DPICA}; do \ + cd $$i && rm -f tags; ln -s ../tags tags; done + + +SUBDIR= + +.include diff --git a/sys/arch/sparc/Makefile b/sys/arch/sparc/Makefile index 0f4d6a8f3800..d6145dc9853b 100644 --- a/sys/arch/sparc/Makefile +++ b/sys/arch/sparc/Makefile @@ -1,31 +1,27 @@ -# $NetBSD: Makefile,v 1.5 1996/05/24 23:18:23 pk Exp $ +# $NetBSD: Makefile,v 1.6 1997/10/11 09:10:31 mycroft Exp $ + +# Makefile for sparc tags file and boot blocks + +TSPARC= ../sparc/tags +SSPARC= ../sparc/dev/*.[ch] ../sparc/fpu/*.[ch] \ + ../sparc/include/*.[ch] ../sparc/sparc/*.[ch] +ASPARC= ../sparc/sparc/*.s + +# Directories in which to place tags links +DSPARC= conf dev fpu include sparc + +tags: + -ctags -wdtf ${TSPARC} ${SSPARC} ${COMM} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \ + sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ + >> tags + sort -o ${TSPARC} ${TSPARC} + +links: + -for i in ${DSPARC}; do \ + cd $$i && rm -f tags; ln -s ../tags tags; done -# from: @(#)Makefile 8.1 (Berkeley) 6/11/93 -# -# Makefile for sparc links, tags file SUBDIR= stand -NOPROG= noprog -NOMAN= noman -NOOBJ= noobj - -DIRS= conf dev fpu include sparc - -links:: - -for i in ${DIRS}; do \ - (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done - -SPARC= /sys/arch/sparc/dev/*.[ch] /sys/arch/sparc/fpu/*.[ch] \ - /sys/arch/sparc/include/*.[ch] /sys/arch/sparc/sparc/*.[ch] -ASPARC= /sys/arch/sparc/sparc/*.s - -tags: - -ctags -wdt ${COMM} ${SPARC} - egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \ - sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> tags - sort -o tags tags - -.include .include