This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / sys / kern / Makefile
CommitLineData
600f7f07
RG
1# from: @(#)Makefile 7.13 (Berkeley) 5/9/91
2# $Id$
4f1093c3
NW
3
4# Makefile for kernel tags files, init_systent, etc.
5
6ARCH= i386
7
8all:
9 @echo "make tags, make links or init_sysent.c only"
10
11init_sysent.c syscalls.c ../sys/syscall.h: makesyscalls.sh syscalls.master
12 -mv -f init_sysent.c init_sysent.c.bak
13 -mv -f syscalls.c syscalls.c.bak
14 -mv -f ../sys/syscall.h ../sys/syscall.h.bak
15 sh makesyscalls.sh syscalls.master
16
17# Kernel tags:
18# We need to have links to tags files from the generic directories
19# that are relative to the machine type, even via remote mounts;
20# therefore we use symlinks to $SYSTAGS, which points at
21# ${SYSDIR}/${MACHINE}/tags.
22
23SYSTAGS=/var/db/sys_tags
24SYSDIR=/sys
25
26# Put the ../sys stuff near the end so that subroutine definitions win when
27# there is a struct tag with the same name (eg., vmmeter). The real
28# solution would probably be for ctags to generate "struct vmmeter" tags.
29
30COMM= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \
31 ../netiso/*.[ch] ../netccitt/*.[ch] \
32 ../kern/*.c ../ufs/*.[ch] ../nfs/*.[ch] ../vm/*.[ch] ../sys/*.h
33
34# Directories in which to place tags links (other than machine-dependent)
35DGEN= kern sys net netimp netinet netns netccitt nfs ufs vm
36
37tags: FRC
38 -for i in ${ARCH}; do \
39 cd ../$$i && make ${MFLAGS} tags; done
40
41links: ${SYSTAGS}
42 -for i in ${DGEN}; do \
43 cd $$i && rm -f tags; ln -s ${SYSTAGS} tags; done
44 -for i in ${ARCH}; do \
45 cd ../$$i && make ${MFLAGS} links; done
46
47${SYSTAGS}:
48 ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS}
49
50FRC: