xref: /original-bsd/sys/kern/Makefile (revision a5a45b47)
1#	@(#)Makefile	7.15 (Berkeley) 03/18/92
2
3# Makefile for kernel tags files, init_sysent, etc.
4
5ARCH=	vax tahoe hp300 i386 pmax
6
7all:
8	@echo "make tags, make links or init_sysent.c only"
9
10init_sysent.c syscalls.c ../sys/syscall.h: makesyscalls.sh syscalls.master
11	-mv -f init_sysent.c init_sysent.c.bak
12	-mv -f syscalls.c syscalls.c.bak
13	-mv -f ../sys/syscall.h ../sys/syscall.h.bak
14	sh makesyscalls.sh syscalls.master
15
16# Kernel tags:
17# Tags files are built in the top-level directory for each architecture,
18# with a makefile listing the architecture-dependent files, etc.
19# The list of common files is in ./Make.tags.inc.  Links to the
20# correct tags file are placed in each source directory.
21# We need to have links to tags files from the generic directories
22# that are relative to the machine type, even via remote mounts;
23# therefore we use symlinks to $SYSTAGS, which points at
24# ${SYSDIR}/${MACHINE}/tags.
25
26SYSTAGS=/var/db/sys_tags
27SYSDIR=/sys
28
29# Directories in which to place tags links (other than machine-dependent)
30DGEN=	kern sys net netimp netinet netns netccitt nfs ufs vm
31
32tags: FRC
33	-for i in ${ARCH}; do \
34	    cd ../$$i && make ${MFLAGS} tags; done
35
36links: ${SYSTAGS}
37	-for i in ${DGEN}; do \
38	    cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; } done
39	-for i in ${ARCH}; do \
40	    cd ../$$i && make ${MFLAGS} links; done
41
42${SYSTAGS}:
43	ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS}
44
45FRC:
46