Commit | Line | Data |
---|---|---|
7ba7528e | 1 | # |
e950748b KB |
2 | # Copyright (c) 1986 The Regents of the University of California. |
3 | # All rights reserved. | |
7ba7528e | 4 | # |
e950748b KB |
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 | |
04944f75 | 15 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
e950748b | 16 | # |
04944f75 | 17 | # @(#)Makefile 7.7 (Berkeley) %G% |
7ba7528e | 18 | # |
04944f75 | 19 | # Put the ../sys stuff near the end so that subroutine definitions win when |
7ba7528e KM |
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. | |
7ba7528e | 22 | |
04944f75 KB |
23 | COMM= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \ |
24 | ../kern/*.[ch] ../ufs/*.[ch] ../nfs/*.[ch] | |
25 | HDR= ../sys/*.h | |
3d62d981 | 26 | TVAX= ../vax/tags |
04944f75 | 27 | SVAX= ../vaxif/*.[ch] ../vaxmba/*.[ch] ../vaxuba/*.[ch] ../vax/*.[ch] |
3d62d981 KB |
28 | AVAX= ../vax/*.s |
29 | ||
30 | TTAHOE= ../tahoe/tags | |
04944f75 | 31 | STAHOE= ../tahoeif/*.[ch] ../tahoevba/*.[ch] ../tahoe/*.[ch] |
3d62d981 KB |
32 | ATAHOE= ../tahoe/*.s |
33 | ||
04944f75 KB |
34 | # Directories in which to place tags links (other than primary T$MACH) |
35 | DGEN= kern sys net netimp netinet netns ufs | |
3d62d981 KB |
36 | DVAX= vaxif vaxmba vaxuba |
37 | DTAHOE= tahoeif tahoevba | |
7ba7528e KM |
38 | |
39 | all: | |
40 | @echo "make tags or links only" | |
41 | ||
04944f75 KB |
42 | tags: tahoetags vaxtags |
43 | ||
44 | tahoetags: | |
45 | -ctags -dtf ${TTAHOE} ${COMM} ${STAHOE} ${HDR} | |
16b746e7 KB |
46 | egrep "^SCBVEC(.*)" ${ATAHOE} | \ |
47 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \ | |
56f0eb50 | 48 | >> ${TTAHOE} |
16b746e7 KB |
49 | egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${ATAHOE} | \ |
50 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ | |
3d62d981 | 51 | >> ${TTAHOE} |
16b746e7 | 52 | sort -o ${TTAHOE} ${TTAHOE} |
04944f75 KB |
53 | |
54 | vaxtags: | |
55 | -ctags -dtf ${TVAX} ${COMM} ${SVAX} ${HDR} | |
56 | egrep "^SCBVEC(.*)" ${AVAX} | \ | |
57 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \ | |
58 | >> ${TVAX} | |
59 | egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${AVAX} | \ | |
60 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ | |
61 | >> ${TVAX} | |
62 | sort -o ${TVAX} ${TVAX} | |
7ba7528e KM |
63 | |
64 | links: | |
04944f75 KB |
65 | -for i in ${DVAX}; do \ |
66 | rm -f ../$$i/tags; ln -s ../vax/tags ../$$i/tags; done | |
67 | -for i in ${DTAHOE}; do \ | |
68 | rm -f ../$$i/tags; ln -s ../tahoe/tags ../$$i/tags; done | |
69 | -for i in ${DGEN}; do \ | |
70 | rm -f ../$$i/tags; \ | |
71 | ln -s ../tahoe/tags ../$$i/tags; done | |
7ba7528e | 72 | |
04944f75 KB |
73 | init_sysent.c syscalls.c ../sys/syscall.h: syscalls.master |
74 | -mv init_sysent.c init_sysent.c.bak | |
75 | -mv syscalls.c syscalls.c.bak | |
76 | -mv ../sys/syscall.h ../sys/syscall.h.bak | |
77 | sh makesyscalls.sh syscalls.master |