1# 2# Copyright (c) 1986 The Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 7.6 (Berkeley) 10/24/88 18# 19# Put the ../h stuff near the end so that subroutine definitions win when 20# there is a struct tag with the same name (eg., vmmeter). The real 21# solution would probably be for ctags to generate "struct vmmeter" tags. 22 23TVAX= ../vax/tags 24SVAX= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \ 25 ../sys/*.[ch] ../vaxif/*.[ch] ../vaxmba/*.[ch] ../vaxuba/*.[ch] \ 26 ../vax/*.[ch] ../h/*.h 27AVAX= ../vax/*.s 28 29TTAHOE= ../tahoe/tags 30STAHOE= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \ 31 ../sys/*.[ch] ../tahoeif/*.[ch] ../tahoevba/*.[ch] ../tahoe/*.[ch] \ 32 ../h/*.h 33ATAHOE= ../tahoe/*.s 34 35DGEN= h sys net netimp netinet netns 36DVAX= vaxif vaxmba vaxuba 37DTAHOE= tahoeif tahoevba 38 39all: 40 @echo "make tags or links only" 41 42tags: FRC 43 -mv ${TVAX} ${TVAX}.old 44 ctags -dtf ${TVAX} ${SVAX} 45 egrep "^SCBVEC(.*)" ${AVAX} | \ 46sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \ 47 >> ${TVAX} 48 egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${AVAX} | \ 49sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 50 >> ${TVAX} 51 sort -o ${TVAX} ${TVAX} 52 rm -f ${TVAX}.old 53 -mv ${TTAHOE} ${TTAHOE}.old 54 ctags -dtf ${TTAHOE} ${STAHOE} 55 egrep "^SCBVEC(.*)" ${ATAHOE} | \ 56sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \ 57 >> ${TTAHOE} 58 egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${ATAHOE} | \ 59sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 60 >> ${TTAHOE} 61 sort -o ${TTAHOE} ${TTAHOE} 62 rm -f ${TTAHOE}.old 63 64links: 65 -for i in ${DVAX}; do rm -f ../$$i/tags; \ 66 ln -s ../vax/tags ../$$i/tags; done 67 -for i in ${DTAHOE}; do rm -f ../$$i/tags; \ 68 ln -s ../tahoe/tags ../$$i/tags; done 69 -for i in ${DGEN}; do rm -f ../$$i/tags; \ 70 ln -s ../machine/tags ../$$i/tags; done 71 72FRC: 73