# Copyright (c) 1986 The Regents of the University of California.
# 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.7 (Berkeley) %G%
# 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
= ..
/net
/*.
[ch
] ..
/netimp
/*.
[ch
] ..
/netinet
/*.
[ch
] ..
/netns
/*.
[ch
] \
..
/kern
/*.
[ch
] ..
/ufs
/*.
[ch
] ..
/nfs
/*.
[ch
]
SVAX
= ..
/vaxif
/*.
[ch
] ..
/vaxmba
/*.
[ch
] ..
/vaxuba
/*.
[ch
] ..
/vax
/*.
[ch
]
STAHOE
= ..
/tahoeif
/*.
[ch
] ..
/tahoevba
/*.
[ch
] ..
/tahoe
/*.
[ch
]
# Directories in which to place tags links (other than primary T$MACH)
DGEN
= kern sys net netimp netinet netns ufs
DVAX
= vaxif vaxmba vaxuba
@echo
"make tags or links only"
-ctags
-dtf
${TTAHOE} ${COMM} ${STAHOE} ${HDR}
egrep
"^SCBVEC(.*)" ${ATAHOE} | \
sed
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
egrep
"^ENTRY(.*)|^JSBENTRY(.*)" ${ATAHOE} | \
sed
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
sort -o
${TTAHOE} ${TTAHOE}
-ctags
-dtf
${TVAX} ${COMM} ${SVAX} ${HDR}
egrep
"^SCBVEC(.*)" ${AVAX} | \
sed
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
egrep
"^ENTRY(.*)|^JSBENTRY(.*)" ${AVAX} | \
sed
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
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
ln
-s ..
/tahoe
/tags ..
/$$i/tags; done
init_sysent.c syscalls.c ..
/sys
/syscall.h
: syscalls.master
-mv init_sysent.c init_sysent.c.bak
-mv syscalls.c syscalls.c.bak
-mv ..
/sys
/syscall.h ..
/sys
/syscall.h.bak
sh makesyscalls.sh syscalls.master