|
|
1.1 ! root 1: # @(#)Makefile 7.13 (Berkeley) 5/9/91 ! 2: ! 3: # Makefile for kernel tags files, init_systent, etc. ! 4: ! 5: ARCH= vax tahoe hp300 i386 ! 6: ! 7: all: ! 8: @echo "make tags, make links or init_sysent.c only" ! 9: ! 10: init_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: ! 22: SYSTAGS=/var/db/sys_tags ! 23: SYSDIR=/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: ! 29: COMM= ../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) ! 34: DGEN= kern sys net netimp netinet netns netccitt nfs ufs vm ! 35: ! 36: tags: FRC ! 37: -for i in ${ARCH}; do \ ! 38: cd ../$$i && make ${MFLAGS} tags; done ! 39: ! 40: links: ${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: ! 49: FRC:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.