1# @(#)Makefile 7.14 (Berkeley) 09/06/91 2 3# Makefile for kernel tags files, init_systent, 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# We need to have links to tags files from the generic directories 18# that are relative to the machine type, even via remote mounts; 19# therefore we use symlinks to $SYSTAGS, which points at 20# ${SYSDIR}/${MACHINE}/tags. 21 22SYSTAGS=/var/db/sys_tags 23SYSDIR=/sys 24 25# Put the ../sys stuff near the end so that subroutine definitions win when 26# there is a struct tag with the same name (eg., vmmeter). The real 27# solution would probably be for ctags to generate "struct vmmeter" tags. 28 29COMM= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \ 30 ../netiso/*.[ch] ../netccitt/*.[ch] \ 31 ../kern/*.c ../ufs/*.[ch] ../nfs/*.[ch] ../vm/*.[ch] ../sys/*.h 32 33# Directories in which to place tags links (other than machine-dependent) 34DGEN= kern sys net netimp netinet netns netccitt nfs ufs vm 35 36tags: FRC 37 -for i in ${ARCH}; do \ 38 cd ../$$i && make ${MFLAGS} tags; done 39 40links: ${SYSTAGS} 41 -for i in ${DGEN}; do \ 42 cd $$i && rm -f tags; ln -s ${SYSTAGS} tags; done 43 -for i in ${ARCH}; do \ 44 cd ../$$i && make ${MFLAGS} links; done 45 46${SYSTAGS}: 47 ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} 48 49FRC: 50