parameterize max proc id
[unix-history] / usr / src / sys / kern / Makefile
CommitLineData
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#
d452baa8 17# @(#)Makefile 7.8 (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
23COMM= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \
24 ../kern/*.[ch] ../ufs/*.[ch] ../nfs/*.[ch]
25HDR= ../sys/*.h
3d62d981 26TVAX= ../vax/tags
04944f75 27SVAX= ../vaxif/*.[ch] ../vaxmba/*.[ch] ../vaxuba/*.[ch] ../vax/*.[ch]
3d62d981
KB
28AVAX= ../vax/*.s
29
30TTAHOE= ../tahoe/tags
04944f75 31STAHOE= ../tahoeif/*.[ch] ../tahoevba/*.[ch] ../tahoe/*.[ch]
3d62d981
KB
32ATAHOE= ../tahoe/*.s
33
d452baa8
MK
34THP300= ../hp300/tags
35SHP300= ../hpux/*.[ch]../hpdev/*.[ch] ../hp300/*.[ch]
36AHP300= ../hp300/*.s
37
04944f75
KB
38# Directories in which to place tags links (other than primary T$MACH)
39DGEN= kern sys net netimp netinet netns ufs
3d62d981
KB
40DVAX= vaxif vaxmba vaxuba
41DTAHOE= tahoeif tahoevba
d452baa8 42DHP300= hpdev hpux
7ba7528e
KM
43
44all:
45 @echo "make tags or links only"
46
d452baa8 47tags: tahoetags vaxtags hp300tags
04944f75
KB
48
49tahoetags:
50 -ctags -dtf ${TTAHOE} ${COMM} ${STAHOE} ${HDR}
16b746e7
KB
51 egrep "^SCBVEC(.*)" ${ATAHOE} | \
52sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
56f0eb50 53 >> ${TTAHOE}
16b746e7
KB
54 egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${ATAHOE} | \
55sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
3d62d981 56 >> ${TTAHOE}
16b746e7 57 sort -o ${TTAHOE} ${TTAHOE}
04944f75
KB
58
59vaxtags:
60 -ctags -dtf ${TVAX} ${COMM} ${SVAX} ${HDR}
61 egrep "^SCBVEC(.*)" ${AVAX} | \
62sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
63 >> ${TVAX}
64 egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${AVAX} | \
65sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
66 >> ${TVAX}
67 sort -o ${TVAX} ${TVAX}
7ba7528e 68
d452baa8
MK
69hp300tags:
70 -ctags -dtf ${THP300} ${COMM} ${SHP300} ${HDR}
71 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHP300} | \
72sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
73 >> ${THP300}
74 sort -o ${THP300} ${THP300}
75
7ba7528e 76links:
04944f75
KB
77 -for i in ${DVAX}; do \
78 rm -f ../$$i/tags; ln -s ../vax/tags ../$$i/tags; done
79 -for i in ${DTAHOE}; do \
80 rm -f ../$$i/tags; ln -s ../tahoe/tags ../$$i/tags; done
d452baa8
MK
81 -for i in ${DHP300}; do \
82 rm -f ../$$i/tags; ln -s ../tahoe/tags ../$$i/tags; done
04944f75
KB
83 -for i in ${DGEN}; do \
84 rm -f ../$$i/tags; \
d452baa8 85 ln -s ../machine/tags ../$$i/tags; done
7ba7528e 86
d452baa8
MK
87init_sysent.c syscalls.c ../sys/syscall.h: makesyscalls.sh syscalls.master
88 -mv -f init_sysent.c init_sysent.c.bak
89 -mv -f syscalls.c syscalls.c.bak
90 -mv -f ../sys/syscall.h ../sys/syscall.h.bak
04944f75 91 sh makesyscalls.sh syscalls.master