head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	94.02.27.12.47.16;	author md;	state Exp;
branches;
next	1.2;

1.2
date	94.02.27.12.36.59;	author md;	state Exp;
branches;
next	1.1;

1.1
date	90.06.22.05.23.07;	author md;	state Exp;
branches;
next	;


desc
@checkpoint -md
@


1.3
log
@change relative pathname to absolute so that nvi can find the files.
@
text
@#
# Copyright (c) 1986 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley.  The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#	@@(#)Makefile	7.8 (Berkeley) 6/21/90
#
# Put the ../sys stuff near the end so that subroutine definitions win when
# there is a struct tag with the same name (eg., vmmeter).  The real
# solution would probably be for ctags to generate "struct vmmeter" tags.

COMM=	/sys/net/*.[ch] /sys/netimp/*.[ch] /sys/netinet/*.[ch] \
	/sys/netns/*.[ch] /sys/netccitt/*.[ch] /sys/netiso/*.[ch] \
	/sys/netrmp/*.[ch] /sys/kern/*.[ch] /sys/ufs/*.[ch] /sys/nfs/*.[ch] \
	/sys/isofs/*.[ch] /sys/msdosfs/*.[ch] /sys/miscfs/kernfs/*.[ch]
HDR=	/sys/sys/*.h
TVAX=	/sys/vax/tags
SVAX=	/sys/vaxif/*.[ch]  /sys/vaxmba/*.[ch] /sys/vaxuba/*.[ch] /sys/vax/*.[ch]
AVAX=	/sys/vax/*.s

TTAHOE=	/sys/tahoe/tags
STAHOE=	/sys/tahoeif/*.[ch] /sys/tahoevba/*.[ch] /sys/tahoe/*.[ch]
ATAHOE=	/sys/tahoe/*.s

THP300=	/sys/hp300/tags
SHP300=	/sys/hpux/*.[ch] /sys/hpdev/*.[ch] /sys/hp300/*.[ch]
AHP300=	/sys/hp300/*.s

TRT=	/sys/rt/tags
SRT=	/sys/rtif/*.[ch] /sys/rtio/*.[ch] /sys/rtcons/*.[ch]
ART=	/sys/rt/*.s

# Directories in which to place tags links (other than primary T$MACH)
DGEN=	kern sys net netimp netinet netns ufs
DVAX=	vaxif vaxmba vaxuba
DTAHOE=	tahoeif tahoevba
DHP300=	hpdev hpux
DRT=	rtif rtio rtcons

all:
	@@echo "make tags or links only"

tags: tahoetags vaxtags hp300tags rttags

tahoetags:
	-ctags -dtf ${TTAHOE} ${COMM} ${STAHOE} ${HDR}
	egrep "^SCBVEC(.*)" ${ATAHOE} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
		>> ${TTAHOE}
	egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${ATAHOE} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
		>> ${TTAHOE}
	sort -o ${TTAHOE} ${TTAHOE}

vaxtags:
	-ctags -dtf ${TVAX} ${COMM} ${SVAX} ${HDR}
	egrep "^SCBVEC(.*)" ${AVAX} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
		>> ${TVAX}
	egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${AVAX} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
		>> ${TVAX}
	sort -o ${TVAX} ${TVAX}

hp300tags:
	-ctags -dtf ${THP300} ${COMM} ${SHP300} ${HDR}
	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHP300} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
		>> ${THP300}
	sort -o ${THP300} ${THP300}

rttags:
	-ctags -dtf ${TRT} ${COMM} ${SRT} ${HDR}
	egrep "^eye_profil(.*)" ${ART} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
		>> ${TRT}
	sort -o ${TRT} ${TRT}

links:
	-for i in ${DVAX}; do \
	    rm -f ../$$i/tags; ln -s ../vax/tags ../i/tags; done
	-for i in ${DTAHOE}; do \
	    rm -f ../$$i/tags; ln -s ../tahoe/tags ../i/tags; done
	-for i in ${DHP300}; do \
	    rm -f ../$$i/tags; ln -s ../tahoe/tags ../$$i/tags; done
	-for i in ${DRT}; do \
	    rm -f ../$$i/tags; ln -s ../rt/tags ../$$i/tags; done
	-for i in ${DGEN}; do \
	    rm -f ../$$i/tags; \
	    ln -s ../machine/tags ../$$i/tags; done

init_sysent.c syscalls.c ../sys/syscall.h: makesyscalls.sh syscalls.master
	-mv -f init_sysent.c init_sysent.c.bak
	-mv -f syscalls.c syscalls.c.bak
	-mv -f ../sys/syscall.h ../sys/syscall.h.bak
	sh makesyscalls.sh syscalls.master
@


1.2
log
@add tags processing for rt specific files
@
text
@d23 8
a30 8
COMM=	../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \
	../netccitt/*.[ch] ../netiso/*.[ch] ../netrmp/*.[ch] \
	../kern/*.[ch] ../ufs/*.[ch] ../nfs/*.[ch] ../isofs/*.[ch] \
	../msdosfs/*.[ch] ../miscfs/kernfs/*.[ch]
HDR=	../sys/*.h
TVAX=	../vax/tags
SVAX=	../vaxif/*.[ch]  ../vaxmba/*.[ch] ../vaxuba/*.[ch] ../vax/*.[ch]
AVAX=	../vax/*.s
d32 3
a34 3
TTAHOE=	../tahoe/tags
STAHOE=	../tahoeif/*.[ch]  ../tahoevba/*.[ch] ../tahoe/*.[ch]
ATAHOE=	../tahoe/*.s
d36 3
a38 3
THP300=	../hp300/tags
SHP300=	../hpux/*.[ch] ../hpdev/*.[ch] ../hp300/*.[ch]
AHP300=	../hp300/*.s
d40 3
a42 3
TRT=	../rt/tags
SRT=	../rtif/*.[ch] ../rtio/*.[ch] ../rtcons/*.[ch]
ART=	../rt/*.s
d92 1
a92 1
	    rm -f ../$$i/tags; ln -s ../vax/tags ../$$i/tags; done
d94 1
a94 1
	    rm -f ../$$i/tags; ln -s ../tahoe/tags ../$$i/tags; done
@


1.1
log
@Initial revision
@
text
@d24 3
a26 1
	../kern/*.[ch] ../ufs/*.[ch] ../nfs/*.[ch]
d37 1
a37 1
SHP300=	 ../hpux/*.[ch]../hpdev/*.[ch] ../hp300/*.[ch]
d40 4
d49 1
d54 1
a54 1
tags: tahoetags vaxtags hp300tags
d83 7
d97 2
@
